From 137fffa85723b7a0b86d24ed74871c313ed19b01 Mon Sep 17 00:00:00 2001 From: "xun.zhang" Date: Fri, 14 Feb 2025 20:33:14 +0800 Subject: [PATCH] ENH: update translations jira:NONE Signed-off-by: xun.zhang Change-Id: I0a7f24dd1538f4baf1b2b56f35233de5937a6d30 (cherry picked from commit 4747cbc53a5e5e8457f03914755d192421ea1d57) --- localization/i18n/list.txt | 1 + src/libslic3r/GCode/ToolOrdering.cpp | 2 +- src/libslic3r/Print.cpp | 2 +- src/libslic3r/PrintConfig.cpp | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/localization/i18n/list.txt b/localization/i18n/list.txt index ef3ce5874b..cc067c63ec 100644 --- a/localization/i18n/list.txt +++ b/localization/i18n/list.txt @@ -133,6 +133,7 @@ src/slic3r/Utils/Http.cpp src/slic3r/Utils/Process.cpp src/slic3r/GUI/Jobs/PrintJob.cpp src/libslic3r/GCode.cpp +src/libslic3r/GCode/ToolOrdering.cpp src/libslic3r/ExtrusionEntity.cpp src/libslic3r/Flow.cpp src/libslic3r/Format/AMF.cpp diff --git a/src/libslic3r/GCode/ToolOrdering.cpp b/src/libslic3r/GCode/ToolOrdering.cpp index 289e1f02e1..f8af9fc9da 100644 --- a/src/libslic3r/GCode/ToolOrdering.cpp +++ b/src/libslic3r/GCode/ToolOrdering.cpp @@ -1178,7 +1178,7 @@ void ToolOrdering::reorder_extruders_for_minimum_flush_volume(bool reorder_first if (nozzle_nums > 1 && !check_tpu_group(used_filaments, filament_maps, print_config)) { int master_extruder_id = print_config->master_extruder_id.value - 1; // to 0 based std::string nozzle_name = master_extruder_id == 0 ? "left" : "right"; - std::string exception_str = _L(std::string("TPU is incompatible with AMS and must be printed seperately in the ") + nozzle_name + " nozzle.\nPlease adjust the filament group accordingly."); + std::string exception_str = _L("TPU is incompatible with AMS and must be printed seperately in the ") + nozzle_name + _L(" nozzle.\nPlease adjust the filament group accordingly."); throw Slic3r::RuntimeError(exception_str); } } diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index cb183f66e2..fbd8ca6d95 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -2172,7 +2172,7 @@ void Print::process(long long *time_cost_with_cache, bool use_cache) if (!ToolOrdering::check_tpu_group(used_filaments, filament_maps, &m_config)) { int master_extruder_id = m_config.master_extruder_id.value - 1; // to 0 based std::string nozzle_name = master_extruder_id == 0 ? "left" : "right"; - std::string exception_str = L(std::string("TPU is incompatible with AMS and must be printed seperately in the ") + nozzle_name + " nozzle.\nPlease adjust the filament group accordingly."); + std::string exception_str = L("TPU is incompatible with AMS and must be printed seperately in the ") + nozzle_name + L(" nozzle.\nPlease adjust the filament group accordingly."); throw Slic3r::RuntimeError(exception_str); } diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 491432f246..aac69feaf1 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -5892,7 +5892,7 @@ void PrintConfigDef::init_fff_params() def = this->add("prime_tower_enable_framework", coBool); def->label = L("Internal ribs"); - def->tooltip = L(""); + def->tooltip = L("Enable internal ribs to increase the stability of the prime tower."); def->mode = comSimple; def->set_default_value(new ConfigOptionBool(false));