Some more localization improvements.

This commit is contained in:
bubnikv 2019-05-09 19:24:21 +02:00
parent b6837112df
commit b7361200bf
8 changed files with 1796 additions and 1576 deletions

View file

@ -798,8 +798,8 @@ bool GUI_App::check_unsaved_changes()
return true;
// Ask the user.
wxMessageDialog dialog(mainframe,
_(L("You have unsaved changes ")) + dirty + _(L(". Discard changes and continue anyway?")),
_(L("Unsaved Presets")),
_(L("The following presets were modified: ")) + dirty + "\n" + _(L("Discard changes and continue anyway?")),
wxString(SLIC3R_APP_NAME) + " - " + _(L("Unsaved Presets")),
wxICON_QUESTION | wxYES_NO | wxNO_DEFAULT);
return dialog.ShowModal() == wxID_YES;
}
@ -819,7 +819,7 @@ void GUI_App::load_current_presets()
this->plater()->set_printer_technology(printer_technology);
for (Tab *tab : tabs_list)
if (tab->supports_printer_technology(printer_technology)) {
if (tab->name() == "printer")
if (tab->type() == Preset::TYPE_PRINTER)
static_cast<TabPrinter*>(tab)->update_pages();
tab->load_current_preset();
}