mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
FIX:add multilingual translation
Change-Id: I2227bd55a48c7ce136f97893bd797a161459007e
This commit is contained in:
parent
121dccc59c
commit
a3fbcf2963
22 changed files with 192 additions and 111 deletions
|
@ -4385,7 +4385,7 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
|
|||
{
|
||||
case EViewType::FeatureType:
|
||||
{
|
||||
append_headers({_u8L("Line type"), _u8L("Time"), _u8L("Percent"), "", _u8L("Display")}, offsets);
|
||||
append_headers({_u8L("Line Type"), _u8L("Time"), _u8L("Percent"), "", _u8L("Display")}, offsets);
|
||||
break;
|
||||
}
|
||||
case EViewType::Height: { imgui.title(_u8L("Layer Height (mm)")); break; }
|
||||
|
|
|
@ -2762,24 +2762,24 @@ void ObjectTablePanel::load_data()
|
|||
#if HAS_COL_HEADER
|
||||
m_object_grid->SetColLabelAlignment(wxALIGN_LEFT, wxALIGN_CENTER);
|
||||
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_printable, L("Printable"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_printable, _L("Printable"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_printable_reset, "");
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_plate_index, L("Plate"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_plate_index, _L("Plate"));
|
||||
/*m_object_grid->SetColLabelValue(ObjectGridTable::col_assemble_name, L("Module"));*/
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_name, L("Name"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_filaments, L("Filament"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_name, _L("Name"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_filaments, _L("Filament"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_filaments_reset, "");
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_layer_height, L("Layer height"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_layer_height, _L("Layer height"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_layer_height_reset, "");
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_wall_loops, L("Wall loops"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_wall_loops, _L("Wall loops"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_wall_loops_reset, "");
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_fill_density, L("Infill density(%)"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_fill_density, _L("Infill density(%)"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_fill_density_reset, "");
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_enable_support, L("Support"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_enable_support, _L("Support"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_enable_support_reset, "");
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_brim_type, L("Brim"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_brim_type, _L("Brim"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_brim_type_reset, "");
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_speed_perimeter, L("Inner wall speed"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_speed_perimeter, _L("Inner wall speed"));
|
||||
m_object_grid->SetColLabelValue(ObjectGridTable::col_speed_perimeter_reset, "");
|
||||
m_object_grid->SetLabelFont(Label::Head_13);
|
||||
m_object_grid->SetLabelTextColour(wxColour(0x30,0x3a,0x3c));
|
||||
|
|
|
@ -114,7 +114,7 @@ SavePresetDialog::Item::Item(Preset::Type type, const std::string &suffix, wxBox
|
|||
|
||||
m_sizer_left->Add(0, 0, 0, wxLEFT, 10);
|
||||
|
||||
auto m_left_text = new wxStaticText(parent, wxID_ANY, L("User Preset"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
auto m_left_text = new wxStaticText(parent, wxID_ANY, _L("User Preset"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_left_text->Wrap(-1);
|
||||
m_left_text->SetFont(::Label::Body_13);
|
||||
m_left_text->SetForegroundColour(wxColour(107,107,107));
|
||||
|
@ -133,7 +133,7 @@ SavePresetDialog::Item::Item(Preset::Type type, const std::string &suffix, wxBox
|
|||
|
||||
m_sizer_right->Add(0, 0, 0, wxLEFT, 10);
|
||||
|
||||
auto m_right_text = new wxStaticText(parent, wxID_ANY, L("Project Inside Preset"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
auto m_right_text = new wxStaticText(parent, wxID_ANY, _L("Project Inside Preset"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_right_text->SetForegroundColour(wxColour(107,107,107));
|
||||
m_right_text->SetFont(::Label::Body_13);
|
||||
m_right_text->Wrap(-1);
|
||||
|
|
|
@ -411,7 +411,7 @@ wxBoxSizer *StatusBasePanel::create_project_task_page(wxWindow *parent)
|
|||
});
|
||||
|
||||
m_button_abort = new ScalableButton(m_panel_progress, wxID_ANY, "print_control_stop", wxEmptyString, wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER, true);
|
||||
m_button_abort->SetToolTip(_L("Abort"));
|
||||
m_button_abort->SetToolTip(_L("Stop"));
|
||||
|
||||
m_button_abort->Bind(wxEVT_ENTER_WINDOW, [this](auto &e) {
|
||||
m_button_abort->SetBitmap_("print_control_stop_hover");
|
||||
|
|
|
@ -1822,7 +1822,7 @@ DiffPresetDialog::DiffPresetDialog(MainFrame* mainframe)
|
|||
});
|
||||
}
|
||||
|
||||
m_show_all_presets = new wxCheckBox(this, wxID_ANY, "Show all presets (including incompatible)");
|
||||
m_show_all_presets = new wxCheckBox(this, wxID_ANY, _L("Show all presets (including incompatible)"));
|
||||
m_show_all_presets->Bind(wxEVT_CHECKBOX, [this](wxCommandEvent&) {
|
||||
bool show_all = m_show_all_presets->GetValue();
|
||||
for (auto preset_combos : m_preset_combos) {
|
||||
|
@ -1883,7 +1883,7 @@ void DiffPresetDialog::update_bundles_from_app()
|
|||
|
||||
void DiffPresetDialog::show(Preset::Type type /* = Preset::TYPE_INVALID*/)
|
||||
{
|
||||
this->SetTitle("Compare Presets");
|
||||
this->SetTitle(_L("Compare presets"));
|
||||
m_view_type = type;
|
||||
|
||||
update_bundles_from_app();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue