mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 04:08:02 -06:00
FIX: translation for cut
Change-Id: I31f755b857f07e920fe6e50d48f4aa34a53e07da
This commit is contained in:
parent
292f7e2c21
commit
e031708043
24 changed files with 3079 additions and 539 deletions
|
@ -1607,18 +1607,18 @@ void GLGizmoAdvancedCut::render_connectors_input_window(float x, float y, float
|
|||
void GLGizmoAdvancedCut::render_input_window_warning() const
|
||||
{
|
||||
if (m_has_invalid_connector) {
|
||||
wxString out = /*wxString(ImGui::WarningMarkerSmall)*/ "Warning: " + _L("Invalid connectors detected") + ":";
|
||||
wxString out = /*wxString(ImGui::WarningMarkerSmall)*/ _L("Warning") + ": " + _L("Invalid connectors detected") + ":";
|
||||
if (m_info_stats.outside_cut_contour > size_t(0))
|
||||
out += "\n - " + std::to_string(m_info_stats.outside_cut_contour) +
|
||||
(m_info_stats.outside_cut_contour == 1 ? L("connector is out of cut contour") : L("connectors are out of cut contour"));
|
||||
(m_info_stats.outside_cut_contour == 1 ? _L("connector is out of cut contour") : _L("connectors are out of cut contour"));
|
||||
if (m_info_stats.outside_bb > size_t(0))
|
||||
out += "\n - " + std::to_string(m_info_stats.outside_bb) +
|
||||
(m_info_stats.outside_bb == 1 ? L("connector is out of object") : L("connectors is out of object"));
|
||||
(m_info_stats.outside_bb == 1 ? _L("connector is out of object") : _L("connectors is out of object"));
|
||||
if (m_info_stats.is_overlap)
|
||||
out += "\n - " + _L("Some connectors are overlapped");
|
||||
m_imgui->text(out);
|
||||
}
|
||||
if (!m_keep_upper && !m_keep_lower) m_imgui->text(/*wxString(ImGui::WarningMarkerSmall)*/"Warning: " + _L("Invalid state. \nNo one part is selected for keep after cut"));
|
||||
if (!m_keep_upper && !m_keep_lower) m_imgui->text(/*wxString(ImGui::WarningMarkerSmall)*/_L("Warning") + ": " + _L("Invalid state. \nNo one part is selected for keep after cut"));
|
||||
}
|
||||
|
||||
bool GLGizmoAdvancedCut::render_reset_button(const std::string &label_id, const std::string &tooltip) const
|
||||
|
@ -1651,10 +1651,10 @@ bool GLGizmoAdvancedCut::render_connect_type_radio_button(CutConnectorType type)
|
|||
wxString radio_name;
|
||||
switch (type) {
|
||||
case CutConnectorType::Plug:
|
||||
radio_name = L("Plug");
|
||||
radio_name = _L("Plug");
|
||||
break;
|
||||
case CutConnectorType::Dowel:
|
||||
radio_name = L("Dowel");
|
||||
radio_name = _L("Dowel");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue