Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

Part under the cursor: status lines through tr() (es, zh-TW, zh-CN); zh-CN UI test step

islandmedb3afb84507a8
diff --git a/src/app/I18nSimplifiedChinese.cpp b/src/app/I18nSimplifiedChinese.cpp
index 3d3b160d..29c52c6f 100644
--- a/src/app/I18nSimplifiedChinese.cpp
+++ b/src/app/I18nSimplifiedChinese.cpp
@@ -877,6 +877,8 @@ constexpr Entry kSimplifiedChinese[] = {
"将微细分层级转为新部件中的普通网格(用于导出或需要真实几何的工具)。"},
{"Write the micro level as a 32-bit EXR displacement map over the base UVs (next to the project).",
"将微细分层级写成基底 UV 上的 32 位 EXR 位移贴图(放在项目旁)。"},
+ {"Sculpting: %s", "正在雕刻:%s"},
+ {"No Part under the cursor", "光标下没有部件"},
{"Sculpt the Part under the cursor", "雕刻光标下的部件"},
{"Make the Part under the pointer the one you sculpt, without moving the view (each Part keeps its mask). "
"The same key as Blender's; Preferences > Hotkeys changes it.",
diff --git a/src/app/I18nSpanish.cpp b/src/app/I18nSpanish.cpp
index 422ddd08..f274ac7b 100644
--- a/src/app/I18nSpanish.cpp
+++ b/src/app/I18nSpanish.cpp
@@ -1032,6 +1032,8 @@ constexpr Entry kSpanish[] = {
"necesitan geometría real)."},
{"Write the micro level as a 32-bit EXR displacement map over the base UVs (next to the project).",
"Escribe el nivel micro como mapa de desplazamiento EXR de 32 bits sobre las UV base (junto al proyecto)."},
+ {"Sculpting: %s", "Esculpiendo: %s"},
+ {"No Part under the cursor", "No hay ninguna Pieza bajo el cursor"},
{"Sculpt the Part under the cursor", "Esculpir la Pieza bajo el cursor"},
{"Make the Part under the pointer the one you sculpt, without moving the view (each Part keeps its mask). "
"The same key as Blender's; Preferences > Hotkeys changes it.",
diff --git a/src/app/I18nTraditionalChinese.cpp b/src/app/I18nTraditionalChinese.cpp
index 4d4a3727..344e169d 100644
--- a/src/app/I18nTraditionalChinese.cpp
+++ b/src/app/I18nTraditionalChinese.cpp
@@ -877,6 +877,8 @@ constexpr Entry kTraditionalChinese[] = {
"將微細分層級轉為新部件中的一般網格(用於匯出或需要真實幾何的工具)。"},
{"Write the micro level as a 32-bit EXR displacement map over the base UVs (next to the project).",
"將微細分層級寫成基底 UV 上的 32 位元 EXR 位移貼圖(放在專案旁)。"},
+ {"Sculpting: %s", "正在雕刻:%s"},
+ {"No Part under the cursor", "游標下沒有部件"},
{"Sculpt the Part under the cursor", "雕刻游標下的部件"},
{"Make the Part under the pointer the one you sculpt, without moving the view (each Part keeps its mask). "
"The same key as Blender's; Preferences > Hotkeys changes it.",
diff --git a/src/app/PanelParts.cpp b/src/app/PanelParts.cpp
index 8a51ecc7..b1adf941 100644
--- a/src/app/PanelParts.cpp
+++ b/src/app/PanelParts.cpp
@@ -154,14 +154,16 @@ void App::sculptPartUnderCursor() {
const bool overCanvas = !ImGui::GetIO().WantCaptureMouse && canvasRect().contains(mouseX_, mouseY_);
const int target = overCanvas ? pickPart(mouseX_, mouseY_) : -1;
if (target < 0) {
- status_ = "No Part under the cursor";
+ status_ = tr("No Part under the cursor");
return;
}
if (target != doc_.activePart) {
runCommand("part_select", {{"index", double(target)}});
if (!lastCommandOk_) return;
}
- status_ = "Sculpting: " + doc_.activePartInfo().name;
+ char line[256];
+ std::snprintf(line, sizeof line, tr("Sculpting: %s"), doc_.activePartInfo().name.c_str());
+ status_ = line;
}
App::JobPart::JobPart(App& a, int index) : app(a) {
diff --git a/tests/ui/part_under_cursor.sfui b/tests/ui/part_under_cursor.sfui
index 2fde26ee..3d7e5277 100644
--- a/tests/ui/part_under_cursor.sfui
+++ b/tests/ui/part_under_cursor.sfui
@@ -81,3 +81,17 @@ click_part Ball 0.5 0.5 0
key alt+q
expect_value active_part == 1
expect_status Sculpting: Ball
+
+# In Simplified Chinese the status line is translated (a format string, not glued English).
+click "Preferences##palette.preferences"
+click "Interface##preferences.interface"
+click "简体中文##language.zh-CN"
+key escape
+click_part Body 0.5 0.5 0
+key alt+q
+expect_value active_part == 0
+expect_status 正在雕刻:Body
+shot zh-cn-sculpting
+hover_window 0.5 0.06
+key alt+q
+expect_status 光标下没有部件