ENH: chinese translation

Change-Id: I6c072b36a14fed516a9cdcbd7c7ea2038ec29f3f
This commit is contained in:
tao.jin 2023-02-20 09:44:47 +08:00 committed by Lane.Wei
parent a981d3ac2c
commit c1cc270788
27 changed files with 1540 additions and 455 deletions

View file

@ -3924,7 +3924,7 @@ void GUI_App::set_skip_version(bool skip)
void GUI_App::show_check_privacy_dlg(wxCommandEvent& evt)
{
int online_login = evt.GetInt();
PrivacyUpdateDialog privacy_dlg(this->mainframe, wxID_ANY, _L("Privacy Policy"));
PrivacyUpdateDialog privacy_dlg(this->mainframe, wxID_ANY, _L("Privacy Policy Update"));
privacy_dlg.Bind(EVT_PRIVACY_UPDATE_CONFIRM, [this, online_login](wxCommandEvent &e) {
app_config->set("privacy_version", privacy_version_info.version_str);
app_config->set_bool("privacy_update_checked", true);

View file

@ -1557,7 +1557,7 @@ void MenuFactory::append_menu_item_set_printable(wxMenu* menu)
}
}
wxString menu_text = all_printable ? L("Set Unprintable") : _L("Set Printable");
wxString menu_text = all_printable ? _L("Set Unprintable") : _L("Set Printable");
append_menu_item(menu, wxID_ANY, menu_text, "", [this, all_printable](wxCommandEvent&) {
Selection& selection = plater()->canvas3D()->get_selection();
selection.set_printable(!all_printable);

View file

@ -1000,7 +1000,7 @@ bool MainFrame::preview_only_hint()
confirm_dlg.update_btn_label(_L("Yes"), _L("No"));
auto filename = m_plater->get_preview_only_filename();
confirm_dlg.update_text(filename + _L(" will be closed before creating a new model. Do you want to continue?"));
confirm_dlg.update_text(filename + " " + _L("will be closed before creating a new model. Do you want to continue?"));
confirm_dlg.on_show();
if (preview_only_to_editor) {
m_plater->new_project();

View file

@ -10,9 +10,6 @@
const wxColour text_color(107, 107, 107);
wxString hint1 = _L("Please home all axes (click ");
wxString hint2 = _L(") to locate the toolhead's position. This prevents device moving beyond the printable boundary and causing equipment wear.");
namespace Slic3r { namespace GUI {
RecenterDialog::RecenterDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)
: DPIDialog(parent, id, _L("Confirm"), pos, size, style)
@ -20,6 +17,9 @@ RecenterDialog::RecenterDialog(wxWindow* parent, wxWindowID id, const wxString&
std::string icon_path = (boost::format("%1%/images/BambuStudioTitle.ico") % resources_dir()).str();
SetIcon(wxIcon(encode_path(icon_path.c_str()), wxBITMAP_TYPE_ICO));
hint1 = _L("Please home all axes (click ");
hint2 = _L(") to locate the toolhead's position. This prevents device moving beyond the printable boundary and causing equipment wear.");
init_bitmap();
SetBackgroundColour(*wxWHITE);
@ -130,7 +130,7 @@ void RecenterDialog::render(wxDC& dc) {
break;
}
else {
fisrt_line = hint2.SubString(0, i);
fisrt_line = hint2.SubString(0, i - 1);
remaining_line = hint2.SubString(i, hint2.length());
break;
}

View file

@ -15,6 +15,8 @@ private:
Button* m_button_close;
wxStaticBitmap* m_bitmap_home;
ScalableBitmap m_home_bmp;
wxString hint1;
wxString hint2;
void init_bitmap();
void OnPaint(wxPaintEvent& event);