mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 02:37:04 +00:00
Remove markers from strings that don't need to be translated (#8842)
Remove markers from text that does not need to be translated
This commit is contained in:
committed by
GitHub
parent
75dd55fcf6
commit
3e48390cee
@@ -262,7 +262,7 @@ std::string GLGizmoCut3D::get_tooltip() const
|
||||
|
||||
if (tooltip.empty() && (m_hover_id == X || m_hover_id == Y || m_hover_id == CutPlaneZRotation)) {
|
||||
std::string axis = m_hover_id == X ? "X" : m_hover_id == Y ? "Y" : "Z";
|
||||
return axis + ": " + format(float(rad2deg(m_angle)), 1) + _u8L("°");
|
||||
return axis + ": " + format(float(rad2deg(m_angle)), 1) + "°";
|
||||
}
|
||||
|
||||
return tooltip;
|
||||
@@ -2541,7 +2541,7 @@ bool GLGizmoCut3D::render_angle_input(const std::string& label, float& in_val, c
|
||||
float val = rad2deg(in_val);
|
||||
const float old_val = val;
|
||||
|
||||
const std::string format = "%.0f " + _u8L("°");
|
||||
const std::string format = "%.0f°";
|
||||
m_imgui->bbl_slider_float_style("##angle_" + label, &val, min_val, max_val, format.c_str(), 1.f, true, from_u8(label));
|
||||
|
||||
ImGui::SameLine(left_width);
|
||||
|
||||
@@ -2108,7 +2108,7 @@ void GLGizmoMeasure::show_face_face_assembly_senior()
|
||||
m_buffered_around_center = 0;
|
||||
}
|
||||
ImGui::SameLine(rotate_around_center_size + m_space_size + m_input_size_max + m_space_size / 2.0f);
|
||||
m_imgui->text(_L("°"));
|
||||
m_imgui->text("°");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ void GLGizmoSimplify::on_render_input_window(float x, float y, float bottom_limi
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing,ImVec2(10,20));
|
||||
if (is_worker_running) { // apply or preview
|
||||
// draw progress bar
|
||||
std::string progress_text = GUI::format(_L("%1%"), std::to_string(progress)) + "%%";
|
||||
std::string progress_text = GUI::format("%1%", std::to_string(progress)) + "%%";
|
||||
ImVec2 progress_size(bottom_left_width - space_size, 0.0f);
|
||||
ImGui::BBLProgressBar2(progress / 100., progress_size);
|
||||
ImGui::SameLine();
|
||||
|
||||
@@ -972,7 +972,7 @@ void GLGizmoText::on_render_input_window(float x, float y, float bottom_limit)
|
||||
|
||||
//ImGui::SameLine();
|
||||
//ImGui::AlignTextToFramePadding();
|
||||
//m_imgui->text(_L("Status:"));
|
||||
//m_imgui->text(_L("Status") + ": ");
|
||||
//float status_cap = m_imgui->calc_text_size(_L("Status:")).x + space_size + ImGui::GetStyle().WindowPadding.x;
|
||||
//ImGui::SameLine();
|
||||
//m_imgui->text(m_is_modify ? _L("Modify") : _L("Add"));
|
||||
|
||||
@@ -1034,7 +1034,7 @@ void GizmoObjectManipulation::do_render_rotate_window(ImGuiWrapper *imgui_wrappe
|
||||
is_relative_input = true;
|
||||
}
|
||||
ImGui::SameLine(caption_max + (++index_unit) * unit_size + (++index) * space_size);
|
||||
imgui_wrapper->text(_L("°"));
|
||||
imgui_wrapper->text("°");
|
||||
m_buffered_rotation = rotation;
|
||||
if (is_relative_input) {
|
||||
m_last_rotate_type = RotateType::Relative;
|
||||
@@ -1091,7 +1091,7 @@ void GizmoObjectManipulation::do_render_rotate_window(ImGuiWrapper *imgui_wrappe
|
||||
is_absolute_input = true;
|
||||
}
|
||||
ImGui::SameLine(caption_max + (++index_unit) * unit_size + (++index) * space_size);
|
||||
imgui_wrapper->text(_L("°"));
|
||||
imgui_wrapper->text("°");
|
||||
m_buffered_absolute_rotation = absolute_rotation;
|
||||
if (is_absolute_input) {
|
||||
m_last_rotate_type = RotateType::Absolute;
|
||||
@@ -1247,7 +1247,7 @@ void GizmoObjectManipulation::do_render_scale_input_window(ImGuiWrapper* imgui_w
|
||||
ImGui::PushItemWidth(unit_size);
|
||||
ImGui::BBLInputDouble(label_scale_values[0][2], &scale[2], 0.0f, 0.0f, "%.2f");
|
||||
ImGui::SameLine(caption_max + (++index_unit) *unit_size + (++index) * space_size);
|
||||
imgui_wrapper->text(_L("%"));
|
||||
imgui_wrapper->text("%");
|
||||
if (scale.x() > 0 && scale.y() > 0 && scale.z() > 0) {
|
||||
m_buffered_scale = scale;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user