mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-13 02:28:10 +08:00
Several translation-related fixes
ConfigWizard name was missing translation macro in several places Few typos corrected Some string conversions fixed Two strings were not marked for translation
This commit is contained in:
parent
d5bffd2816
commit
15ea6f5609
@ -432,7 +432,7 @@ PageWelcome::PageWelcome(ConfigWizard *parent)
|
|||||||
, welcome_text(append_text(wxString::Format(
|
, welcome_text(append_text(wxString::Format(
|
||||||
_(L("Hello, welcome to %s! This %s helps you with the initial configuration; just a few settings and you will be ready to print.")),
|
_(L("Hello, welcome to %s! This %s helps you with the initial configuration; just a few settings and you will be ready to print.")),
|
||||||
SLIC3R_APP_NAME,
|
SLIC3R_APP_NAME,
|
||||||
ConfigWizard::name())
|
_(ConfigWizard::name()))
|
||||||
))
|
))
|
||||||
, cbox_reset(append(
|
, cbox_reset(append(
|
||||||
new wxCheckBox(this, wxID_ANY, _(L("Remove user profiles - install from scratch (a snapshot will be taken beforehand)")))
|
new wxCheckBox(this, wxID_ANY, _(L("Remove user profiles - install from scratch (a snapshot will be taken beforehand)")))
|
||||||
@ -1946,7 +1946,7 @@ bool ConfigWizard::priv::check_sla_selected()
|
|||||||
// Public
|
// Public
|
||||||
|
|
||||||
ConfigWizard::ConfigWizard(wxWindow *parent)
|
ConfigWizard::ConfigWizard(wxWindow *parent)
|
||||||
: DPIDialog(parent, wxID_ANY, wxString(SLIC3R_APP_NAME) + " - " + _(name().ToStdString()), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
|
: DPIDialog(parent, wxID_ANY, wxString(SLIC3R_APP_NAME) + " - " + _(name()), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
|
||||||
, p(new priv(this))
|
, p(new priv(this))
|
||||||
{
|
{
|
||||||
this->SetFont(wxGetApp().normal_font());
|
this->SetFont(wxGetApp().normal_font());
|
||||||
|
@ -793,7 +793,7 @@ void GUI_App::add_config_menu(wxMenuBar *menu)
|
|||||||
auto local_menu = new wxMenu();
|
auto local_menu = new wxMenu();
|
||||||
wxWindowID config_id_base = wxWindow::NewControlId(int(ConfigMenuCnt));
|
wxWindowID config_id_base = wxWindow::NewControlId(int(ConfigMenuCnt));
|
||||||
|
|
||||||
const auto config_wizard_name = _(ConfigWizard::name(true).wx_str());
|
const auto config_wizard_name = _(ConfigWizard::name(true));
|
||||||
const auto config_wizard_tooltip = wxString::Format(_(L("Run %s")), config_wizard_name);
|
const auto config_wizard_tooltip = wxString::Format(_(L("Run %s")), config_wizard_name);
|
||||||
// Cmd+, is standard on OS X - what about other operating systems?
|
// Cmd+, is standard on OS X - what about other operating systems?
|
||||||
local_menu->Append(config_id_base + ConfigMenuWizard, config_wizard_name + dots, config_wizard_tooltip);
|
local_menu->Append(config_id_base + ConfigMenuWizard, config_wizard_name + dots, config_wizard_tooltip);
|
||||||
|
@ -4743,8 +4743,8 @@ void Plater::set_number_of_copies(/*size_t num*/)
|
|||||||
|
|
||||||
ModelObject* model_object = p->model.objects[obj_idx];
|
ModelObject* model_object = p->model.objects[obj_idx];
|
||||||
|
|
||||||
const int num = wxGetNumberFromUser( " ", _("Enter the number of copies:"),
|
const int num = wxGetNumberFromUser( " ", _(L("Enter the number of copies:")),
|
||||||
_("Copies of the selected object"), model_object->instances.size(), 0, 1000, this );
|
_(L("Copies of the selected object")), model_object->instances.size(), 0, 1000, this );
|
||||||
if (num < 0)
|
if (num < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ MsgDataLegacy::MsgDataLegacy() :
|
|||||||
"Please proceed with the %s that follows to set up the new presets "
|
"Please proceed with the %s that follows to set up the new presets "
|
||||||
"and to choose whether to enable automatic preset updates."
|
"and to choose whether to enable automatic preset updates."
|
||||||
)),
|
)),
|
||||||
SLIC3R_APP_NAME, ConfigWizard::name()
|
SLIC3R_APP_NAME, _(ConfigWizard::name())
|
||||||
));
|
));
|
||||||
text->Wrap(CONTENT_WIDTH * wxGetApp().em_unit());
|
text->Wrap(CONTENT_WIDTH * wxGetApp().em_unit());
|
||||||
content_sizer->Add(text);
|
content_sizer->Add(text);
|
||||||
@ -300,14 +300,14 @@ MsgDataLegacy::~MsgDataLegacy() {}
|
|||||||
// MsgNoUpdate
|
// MsgNoUpdate
|
||||||
|
|
||||||
MsgNoUpdates::MsgNoUpdates() :
|
MsgNoUpdates::MsgNoUpdates() :
|
||||||
MsgDialog(nullptr, _(L("Configuration updates")), _(L("No updates aviable")))
|
MsgDialog(nullptr, _(L("Configuration updates")), _(L("No updates available")))
|
||||||
{
|
{
|
||||||
|
|
||||||
auto* text = new wxStaticText(this, wxID_ANY, wxString::Format(
|
auto* text = new wxStaticText(this, wxID_ANY, wxString::Format(
|
||||||
_(L(
|
_(L(
|
||||||
"%s has no configuration updates aviable."
|
"%s has no configuration updates available."
|
||||||
)),
|
)),
|
||||||
SLIC3R_APP_NAME, ConfigWizard::name()
|
SLIC3R_APP_NAME
|
||||||
));
|
));
|
||||||
text->Wrap(CONTENT_WIDTH * wxGetApp().em_unit());
|
text->Wrap(CONTENT_WIDTH * wxGetApp().em_unit());
|
||||||
content_sizer->Add(text);
|
content_sizer->Add(text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user