Localization, new POT

This commit is contained in:
YuSanka 2020-11-18 12:30:00 +01:00
parent a9f6e6da9d
commit 5be9d42519
5 changed files with 476 additions and 456 deletions

File diff suppressed because it is too large Load Diff

View File

@ -794,7 +794,7 @@ bool GUI_App::on_init_inner()
#ifndef __linux__ #ifndef __linux__
wxYield(); wxYield();
#endif #endif
scrn->SetText(_L("Loading configuration...")); scrn->SetText(_L("Loading configuration")+ dots);
} }
preset_bundle = new PresetBundle(); preset_bundle = new PresetBundle();
@ -852,7 +852,7 @@ bool GUI_App::on_init_inner()
// application frame // application frame
if (scrn && is_editor()) if (scrn && is_editor())
scrn->SetText(_L("Preparing settings tabs...")); scrn->SetText(_L("Preparing settings tabs") + dots);
mainframe = new MainFrame(); mainframe = new MainFrame();
// hide settings tabs after first Layout // hide settings tabs after first Layout

View File

@ -36,7 +36,7 @@ public:
"SL1 archive files (*.sl1, *.zip)|*.sl1;*.SL1;*.zip;*.ZIP", "SL1 archive files (*.sl1, *.zip)|*.sl1;*.SL1;*.zip;*.ZIP",
wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE | wxFD_OPEN | wxFD_FILE_MUST_EXIST); wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE | wxFD_OPEN | wxFD_FILE_MUST_EXIST);
szfilepck->Add(new wxStaticText(this, wxID_ANY, _(L("Import file: "))), 0, wxALIGN_CENTER); szfilepck->Add(new wxStaticText(this, wxID_ANY, _L("Import file") + ": "), 0, wxALIGN_CENTER);
szfilepck->Add(m_filepicker, 1); szfilepck->Add(m_filepicker, 1);
szvert->Add(szfilepck, 0, wxALL | wxEXPAND, 5); szvert->Add(szfilepck, 0, wxALL | wxEXPAND, 5);
@ -53,7 +53,7 @@ public:
inp_choices.size(), inp_choices.data(), wxCB_READONLY | wxCB_DROPDOWN); inp_choices.size(), inp_choices.data(), wxCB_READONLY | wxCB_DROPDOWN);
szchoices->Add(m_import_dropdown); szchoices->Add(m_import_dropdown);
szchoices->Add(new wxStaticText(this, wxID_ANY, _(L("Quality: "))), 0, wxALIGN_CENTER | wxALL, 5); szchoices->Add(new wxStaticText(this, wxID_ANY, _L("Quality") + ": "), 0, wxALIGN_CENTER | wxALL, 5);
static const std::vector<wxString> qual_choices = { static const std::vector<wxString> qual_choices = {
_(L("Accurate")), _(L("Accurate")),

View File

@ -162,8 +162,8 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S
#endif // ENABLE_GCODE_VIEWER #endif // ENABLE_GCODE_VIEWER
m_statusbar->embed(this); m_statusbar->embed(this);
m_statusbar->set_status_text(_L("Version") + " " + m_statusbar->set_status_text(_L("Version") + " " +
SLIC3R_VERSION + SLIC3R_VERSION + " - " +
_L(" - Remember to check for updates at https://github.com/prusa3d/PrusaSlicer/releases")); _L("Remember to check for updates at https://github.com/prusa3d/PrusaSlicer/releases"));
// initialize tabpanel and menubar // initialize tabpanel and menubar
init_tabpanel(); init_tabpanel();
@ -1582,7 +1582,7 @@ void MainFrame::quick_slice(const int qs)
m_progress_dialog->Destroy(); m_progress_dialog->Destroy();
m_progress_dialog = nullptr; m_progress_dialog = nullptr;
auto message = input_file_basename + _L(" was successfully sliced."); auto message = format(_L("%1% was successfully sliced."), input_file_basename);
// wxTheApp->notify(message); // wxTheApp->notify(message);
wxMessageDialog(this, message, _L("Slicing Done!"), wxOK | wxICON_INFORMATION).ShowModal(); wxMessageDialog(this, message, _L("Slicing Done!"), wxOK | wxICON_INFORMATION).ShowModal();
// }; // };

View File

@ -745,9 +745,9 @@ Sidebar::Sidebar(Plater *parent)
(*btn)->Hide(); (*btn)->Hide();
}; };
init_scalable_btn(&p->btn_send_gcode , "export_gcode", _L("Send to printer ") + GUI::shortkey_ctrl_prefix() + "Shift+G"); init_scalable_btn(&p->btn_send_gcode , "export_gcode", _L("Send to printer") + " " +GUI::shortkey_ctrl_prefix() + "Shift+G");
// init_scalable_btn(&p->btn_eject_device, "eject_sd" , _L("Remove device ") + GUI::shortkey_ctrl_prefix() + "T"); // init_scalable_btn(&p->btn_eject_device, "eject_sd" , _L("Remove device ") + GUI::shortkey_ctrl_prefix() + "T");
init_scalable_btn(&p->btn_export_gcode_removable, "export_to_sd", _L("Export to SD card / Flash drive ") + GUI::shortkey_ctrl_prefix() + "U"); init_scalable_btn(&p->btn_export_gcode_removable, "export_to_sd", _L("Export to SD card / Flash drive") + " " + GUI::shortkey_ctrl_prefix() + "U");
// regular buttons "Slice now" and "Export G-code" // regular buttons "Slice now" and "Export G-code"