mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-15 04:57:34 +00:00
Localizations refactor (#14254)
This commit is contained in:
@@ -667,7 +667,7 @@ void GLGizmoAdvancedCut::perform_cut(const Selection& selection)
|
||||
if (its_num_open_edges(new_objects[i]->volumes[j]->mesh().its) > 0) {
|
||||
if (!is_showed_dialog) {
|
||||
is_showed_dialog = true;
|
||||
MessageDialog dlg(nullptr, _L("Non-manifold edges be caused by cut tool, do you want to fix it now?"), "", wxYES | wxNO);
|
||||
MessageDialog dlg(nullptr, _L("Non-manifold edges be caused by cut tool: do you want to fix now\?"), "", wxYES | wxNO);
|
||||
int ret = dlg.ShowModal();
|
||||
if (ret == wxID_YES) {
|
||||
user_fix_model = true;
|
||||
|
||||
@@ -3582,7 +3582,7 @@ void GLGizmoCut3D::perform_cut(const Selection& selection)
|
||||
if (its_num_open_edges(new_objects[i]->volumes[j]->mesh().its) > 0) {
|
||||
if (!is_showed_dialog) {
|
||||
is_showed_dialog = true;
|
||||
MessageDialog dlg(nullptr, _L("Non-manifold edges be caused by cut tool, do you want to fix it now?"), "", wxYES | wxCANCEL);
|
||||
MessageDialog dlg(nullptr, _L("Non-manifold edges be caused by cut tool: do you want to fix now\?"), "", wxYES | wxCANCEL);
|
||||
int ret = dlg.ShowModal();
|
||||
if (ret == wxID_YES) {
|
||||
user_fix_model = true;
|
||||
|
||||
@@ -80,10 +80,10 @@ bool GLGizmoFdmSupports::on_init()
|
||||
// BBS
|
||||
m_shortcut_key = WXK_CONTROL_L;
|
||||
|
||||
m_desc["perform"] = _L("Perform");
|
||||
m_desc["perform"] = _L("Apply");
|
||||
m_desc["on_overhangs_only"] = _L("On highlighted overhangs only");
|
||||
m_desc["remove_all"] = _L("Erase all");
|
||||
m_desc["highlight_by_angle"] = _L("Highlight overhang areas");
|
||||
m_desc["highlight_by_angle"] = _L("Highlight overhangs");
|
||||
m_desc["tool_type"] = _L("Tool type");
|
||||
m_desc["gap_fill"] = _L("Gap fill");
|
||||
m_desc["reset_direction"] = _L("Reset direction");
|
||||
@@ -850,7 +850,7 @@ void GLGizmoFdmSupports::run_thread()
|
||||
if (!m_print_instance.print_object->support_layers().size())
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ",no support layer found, update status to 100%\n";
|
||||
print->set_status(100, L("Support Generated"));
|
||||
print->set_status(100, L("Support generated"));
|
||||
goto _finished;
|
||||
}
|
||||
GLModel::Geometry init_data;
|
||||
@@ -864,7 +864,7 @@ void GLGizmoFdmSupports::run_thread()
|
||||
}
|
||||
m_support_volume->model.init_from(std::move(init_data));
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ", finished extrusionentity_to_verts, update status to 100%";
|
||||
print->set_status(100, L("Support Generated"));
|
||||
print->set_status(100, L("Support generated"));
|
||||
|
||||
record_timestamp();
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ CommonGizmosDataID GLGizmoFlatten::on_get_requirements() const
|
||||
|
||||
std::string GLGizmoFlatten::on_get_name() const
|
||||
{
|
||||
return _u8L("Lay on face");
|
||||
return _u8L("Lay on Face");
|
||||
}
|
||||
|
||||
bool GLGizmoFlatten::on_is_activable() const
|
||||
|
||||
@@ -102,7 +102,7 @@ bool GLGizmoMmuSegmentation::on_init()
|
||||
m_desc["shortcut_key"] = _L("Choose filament");
|
||||
m_desc["edge_detection"] = _L("Edge detection");
|
||||
m_desc["gap_area"] = _L("Gap area");
|
||||
m_desc["perform"] = _L("Perform");
|
||||
m_desc["perform"] = _L("Apply");
|
||||
m_desc["remove_all"] = _L("Erase all");
|
||||
m_desc["circle"] = _L("Circle");
|
||||
m_desc["sphere"] = _L("Sphere");
|
||||
|
||||
@@ -28,7 +28,7 @@ protected:
|
||||
|
||||
wxString handle_snapshot_action_name(bool shift_down, Button button_down) const override;
|
||||
|
||||
std::string get_gizmo_entering_text() const override { return _u8L("Entering Seam painting"); }
|
||||
std::string get_gizmo_entering_text() const override { return _u8L("Entering seam painting"); }
|
||||
std::string get_gizmo_leaving_text() const override { return _u8L("Leaving Seam painting"); }
|
||||
std::string get_action_snapshot_name() const override { return _u8L("Paint-on seam editing"); }
|
||||
static const constexpr float CursorRadiusMin = 0.05f; // cannot be zero
|
||||
|
||||
@@ -367,7 +367,7 @@ void GLGizmoSimplify::on_render_input_window(float x, float y, float bottom_limi
|
||||
apply_simplify();
|
||||
}
|
||||
else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && is_worker_running) {
|
||||
ImGui::SetTooltip("%s", _u8L("Can't apply when processing preview.").c_str());
|
||||
ImGui::SetTooltip("%s", _u8L("Unable to apply when processing preview").c_str());
|
||||
}
|
||||
m_imgui->pop_confirm_button_style();
|
||||
m_imgui->disabled_end(); // state !settings
|
||||
|
||||
@@ -272,7 +272,7 @@ bool GLGizmoText::on_init()
|
||||
m_desc["thickness"] = _L("Thickness");
|
||||
m_desc["text_gap"] = _L("Text Gap");
|
||||
m_desc["angle"] = _L("Angle");
|
||||
m_desc["embeded_depth"] = _L("Embedded\ndepth");
|
||||
m_desc["embeded_depth"] = _L("Embedded depth");
|
||||
m_desc["input_text"] = _L("Input text");
|
||||
|
||||
m_desc["surface"] = _L("Surface");
|
||||
|
||||
@@ -138,7 +138,7 @@ void GizmoObjectManipulation::update_settings_value(const Selection &selection)
|
||||
|
||||
m_new_enabled = true;
|
||||
// BBS: change "Instance Operations" to "Object Operations"
|
||||
m_new_title_string = L("Object Operations");
|
||||
m_new_title_string = L("Object operations");
|
||||
}
|
||||
else if (selection.is_single_full_object() && obj_list->is_selected(itObject)) {
|
||||
const BoundingBoxf3& box = selection.get_bounding_box();
|
||||
@@ -147,7 +147,7 @@ void GizmoObjectManipulation::update_settings_value(const Selection &selection)
|
||||
m_new_size = selection.get_bounding_box_in_current_reference_system().first.size();
|
||||
m_new_scale_label_string = L("Scale");
|
||||
m_new_enabled = true;
|
||||
m_new_title_string = L("Object Operations");
|
||||
m_new_title_string = L("Object operations");
|
||||
} else if (selection.is_single_volume_or_modifier()) {
|
||||
const GLVolume *volume = selection.get_first_volume();
|
||||
auto rotation = volume->get_volume_transformation().get_rotation_by_quaternion();
|
||||
@@ -173,7 +173,7 @@ void GizmoObjectManipulation::update_settings_value(const Selection &selection)
|
||||
m_new_size = selection.get_bounding_box_in_current_reference_system().first.size();
|
||||
}
|
||||
m_new_enabled = true;
|
||||
m_new_title_string = L("Volume Operations");
|
||||
m_new_title_string = L("Volume operations");
|
||||
} else if (obj_list->is_connectors_item_selected() || obj_list->multiple_selection() || obj_list->is_selected(itInstanceRoot)) {
|
||||
reset_settings_value();
|
||||
m_new_move_label_string = L("Translate");
|
||||
@@ -181,7 +181,7 @@ void GizmoObjectManipulation::update_settings_value(const Selection &selection)
|
||||
m_unscale_size = selection.get_bounding_box_in_current_reference_system().first.size();
|
||||
m_new_size = selection.get_bounding_box_in_current_reference_system().first.size();
|
||||
m_new_enabled = true;
|
||||
m_new_title_string = L("Group Operations");
|
||||
m_new_title_string = L("Group operations");
|
||||
} else if (selection.is_wipe_tower()) {
|
||||
const BoundingBoxf3 &box = selection.get_bounding_box();
|
||||
m_new_position = box.center();
|
||||
@@ -361,7 +361,7 @@ void GizmoObjectManipulation::change_rotation_value(int axis, double value)
|
||||
|
||||
selection.setup_cache();
|
||||
selection.rotate((M_PI / 180.0) * (transformation_type.absolute() ? rotation : rotation - m_cache.rotation), transformation_type);
|
||||
wxGetApp().plater()->take_snapshot(_u8L("Set Orientation"), UndoRedo::SnapshotType::GizmoAction);
|
||||
wxGetApp().plater()->take_snapshot(_u8L("Set orientation"), UndoRedo::SnapshotType::GizmoAction);
|
||||
m_glcanvas.do_rotate("");
|
||||
|
||||
m_cache.rotation = rotation;
|
||||
@@ -469,7 +469,7 @@ void GizmoObjectManipulation::do_scale(int axis, const Vec3d &scale) const
|
||||
|
||||
selection.setup_cache();
|
||||
selection.scale(scaling_factor, transformation_type);
|
||||
m_glcanvas.do_scale(L("Set Scale"));
|
||||
m_glcanvas.do_scale(L("Set scale"));
|
||||
}
|
||||
|
||||
|
||||
@@ -549,7 +549,7 @@ void GizmoObjectManipulation::reset_position_value()
|
||||
return;
|
||||
|
||||
// Copy position values from GLVolumes into Model (ModelInstance / ModelVolume), trigger background processing.
|
||||
wxGetApp().plater()->take_snapshot(_u8L("Reset Position"), UndoRedo::SnapshotType::GizmoAction);
|
||||
wxGetApp().plater()->take_snapshot(_u8L("Reset position"), UndoRedo::SnapshotType::GizmoAction);
|
||||
m_glcanvas.do_move("");
|
||||
|
||||
UpdateAndShow(true);
|
||||
@@ -590,7 +590,7 @@ void GizmoObjectManipulation::reset_rotation_value(bool reset_relative)
|
||||
selection.synchronize_unselected_instances(Selection::SyncRotationType::RESET);
|
||||
selection.synchronize_unselected_volumes();
|
||||
// Copy rotation values from GLVolumes into Model (ModelInstance / ModelVolume), trigger background processing.
|
||||
m_glcanvas.do_rotate(L("Reset Rotation"));
|
||||
m_glcanvas.do_rotate(L("Reset rotation"));
|
||||
|
||||
UpdateAndShow(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user