mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-23 02:42:08 +00:00
Localizations refactor (#14254)
This commit is contained in:
@@ -295,7 +295,7 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(wxString title, wxS
|
||||
{
|
||||
//check if the project has changed
|
||||
if (wxGetApp().plater()->is_project_dirty()) {
|
||||
auto result = MessageDialog(static_cast<wxWindow*>(this), _L("The current project has unsaved changes, save it before continue?"),
|
||||
auto result = MessageDialog(static_cast<wxWindow*>(this), _L("The current project has unsaved changes. Would you like to save before continuing\?"),
|
||||
wxString(SLIC3R_APP_FULL_NAME) + " - " + _L("Save"), wxYES_NO | wxCANCEL | wxYES_DEFAULT | wxCENTRE).ShowModal();
|
||||
|
||||
if (result == wxID_YES) {
|
||||
@@ -307,7 +307,7 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(wxString title, wxS
|
||||
// the dialog needs to be destroyed before the call to switch_language()
|
||||
// or sometimes the application crashes into wxDialogBase() destructor
|
||||
// so we put it into an inner scope
|
||||
MessageDialog msg_wingow(nullptr, _L("Switching the language requires application restart.\n") + "\n" + _L("Do you want to continue?"),
|
||||
MessageDialog msg_wingow(nullptr, _L("Switching languages requires the application to restart.\n") + "\n" + _L("Do you want to continue?"),
|
||||
L("Language selection"), wxICON_QUESTION | wxOK | wxCANCEL);
|
||||
if (msg_wingow.ShowModal() == wxID_CANCEL) {
|
||||
combobox->SetSelection(m_current_language_selected);
|
||||
@@ -401,7 +401,7 @@ wxBoxSizer *PreferencesDialog::create_item_region_combobox(wxString title, wxStr
|
||||
NetworkAgent* agent = wxGetApp().getAgent();
|
||||
AppConfig* config = GUI::wxGetApp().app_config;
|
||||
if (agent) {
|
||||
MessageDialog msg_wingow(this, _L("Changing the region will log out your account.\n") + "\n" + _L("Do you want to continue?"), _L("Region selection"),
|
||||
MessageDialog msg_wingow(this, _L("Changing the region will log you out of your account.\n") + "\n" + _L("Do you want to continue?"), _L("Region selection"),
|
||||
wxICON_QUESTION | wxOK | wxCANCEL);
|
||||
if (msg_wingow.ShowModal() == wxID_CANCEL) {
|
||||
combobox->SetSelection(current_region);
|
||||
@@ -1366,7 +1366,7 @@ void PreferencesDialog::create_items()
|
||||
g_sizer->Add(item_default_page);
|
||||
|
||||
#ifdef _WIN32
|
||||
auto item_darkmode = create_item_darkmode(_L("Enable dark mode"), "", "dark_color_mode");
|
||||
auto item_darkmode = create_item_darkmode(_L("Enable dark Mode"), "", "dark_color_mode");
|
||||
g_sizer->Add(item_darkmode);
|
||||
#endif
|
||||
|
||||
@@ -1421,7 +1421,7 @@ void PreferencesDialog::create_items()
|
||||
auto item_step_dialog = create_item_checkbox(_L("Show options when importing STEP file"), _L("If enabled, a parameter settings dialog will appear during STEP file import."), "enable_step_mesh_setting");
|
||||
g_sizer->Add(item_step_dialog);
|
||||
|
||||
auto item_backup = create_item_backup(_L("Auto backup"), _L("Backup your project periodically for restoring from the occasional crash."));
|
||||
auto item_backup = create_item_backup(_L("Auto backup"), _L("Backup your project periodically to help with restoring from an occasional crash."));
|
||||
g_sizer->Add(item_backup);
|
||||
|
||||
//// GENERAL > Preset
|
||||
@@ -1708,7 +1708,7 @@ void PreferencesDialog::create_items()
|
||||
if (m_sync_user_preset_checkbox) m_sync_user_preset_checkbox->Enable(false);
|
||||
}
|
||||
|
||||
auto item_system_sync = create_item_checkbox(_L("Update built-in Presets automatically."), "", "sync_system_preset");
|
||||
auto item_system_sync = create_item_checkbox(_L("Update built-in presets automatically."), "", "sync_system_preset");
|
||||
g_sizer->Add(item_system_sync);
|
||||
|
||||
auto item_token_storage = create_item_checkbox(_L("Use encrypted file for token storage"),
|
||||
@@ -1874,16 +1874,16 @@ void PreferencesDialog::create_items()
|
||||
//// ASSOCIATE > Extensions
|
||||
g_sizer->Add(create_item_title(_L("Associate files to OrcaSlicer")), 1, wxEXPAND);
|
||||
|
||||
auto item_associate_3mf = create_item_checkbox(_L("Associate 3MF files to OrcaSlicer"), _L("If enabled, sets OrcaSlicer as default application to open 3MF files.") , "associate_3mf");
|
||||
auto item_associate_3mf = create_item_checkbox(_L("Associate 3MF files to OrcaSlicer"), _L("If enabled, this sets OrcaSlicer as the default application to open 3MF files.") , "associate_3mf");
|
||||
g_sizer->Add(item_associate_3mf);
|
||||
|
||||
auto item_associate_drc = create_item_checkbox(_L("Associate DRC files to OrcaSlicer"), _L("If enabled, sets OrcaSlicer as default application to open DRC files."), "associate_drc");
|
||||
g_sizer->Add(item_associate_drc);
|
||||
|
||||
auto item_associate_stl = create_item_checkbox(_L("Associate STL files to OrcaSlicer"), _L("If enabled, sets OrcaSlicer as default application to open STL files.") , "associate_stl");
|
||||
auto item_associate_stl = create_item_checkbox(_L("Associate STL files to OrcaSlicer"), _L("If enabled, this sets OrcaSlicer as the default application to open STL files.") , "associate_stl");
|
||||
g_sizer->Add(item_associate_stl);
|
||||
|
||||
auto item_associate_step = create_item_checkbox(_L("Associate STEP files to OrcaSlicer"), _L("If enabled, sets OrcaSlicer as default application to open STEP files."), "associate_step");
|
||||
auto item_associate_step = create_item_checkbox(_L("Associate STEP files to OrcaSlicer"), _L("If enabled, this sets OrcaSlicer as the default application to open STEP files."), "associate_step");
|
||||
g_sizer->Add(item_associate_step);
|
||||
|
||||
//// ASSOCIATE > WebLinks
|
||||
@@ -2012,7 +2012,7 @@ void PreferencesDialog::create_shortcuts_page()
|
||||
auto item_zoom_view = create_item_multiple_combobox(_L("Zoom view"), _L("Zoom view"), "rotate_view", keyboard_supported, mouse_supported);
|
||||
|
||||
auto title_other = create_item_title(_L("Other"));
|
||||
auto item_other = create_item_checkbox(_L("Mouse wheel reverses when zooming"), _L("Mouse wheel reverses when zooming"), "mouse_wheel");
|
||||
auto item_other = create_item_checkbox(_L("Reverse scroll direction while zooming"), _L("Reverse scroll direction while zooming"), "mouse_wheel");
|
||||
|
||||
sizer_page->Add(title_view_control, 0, wxTOP, 26);
|
||||
sizer_page->Add(item_rotate_view, 0, wxTOP, 8);
|
||||
@@ -2068,7 +2068,7 @@ wxBoxSizer* PreferencesDialog::create_debug_page()
|
||||
|
||||
debug_button->Bind(wxEVT_LEFT_DOWN, [this, radio_group](wxMouseEvent &e) {
|
||||
// success message box
|
||||
MessageDialog dialog(this, _L("Save debug settings"), _L("DEBUG settings have been saved successfully!"), wxNO_DEFAULT | wxYES_NO | wxICON_INFORMATION);
|
||||
MessageDialog dialog(this, _L("Save debug settings"), _L("Debug settings have been saved successfully!"), wxNO_DEFAULT | wxYES_NO | wxICON_INFORMATION);
|
||||
dialog.SetSize(400,-1);
|
||||
switch (dialog.ShowModal()) {
|
||||
case wxID_NO: {
|
||||
@@ -2129,7 +2129,7 @@ wxBoxSizer* PreferencesDialog::create_debug_page()
|
||||
agent->set_country_code(country_code);
|
||||
}
|
||||
ConfirmBeforeSendDialog confirm_dlg(this, wxID_ANY, _L("Warning"), ConfirmBeforeSendDialog::VisibleButtons::ONLY_CONFIRM); // ORCA VisibleButtons instead ButtonStyle
|
||||
confirm_dlg.update_text(_L("Cloud environment switched, please login again!"));
|
||||
confirm_dlg.update_text(_L("Cloud environment switched; please login again!"));
|
||||
confirm_dlg.on_show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user