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.

UV Editor in Spanish and Chinese: modes, colours, image, section headers (ids kept), status line; coverage DYNAMIC list

islandmed6dba23710f1c
diff --git a/BRIEF.md b/BRIEF.md
new file mode 100644
index 00000000..fb4e3372
--- /dev/null
+++ b/BRIEF.md
@@ -0,0 +1,12 @@
+# Translation coverage: Spanish + Traditional Chinese — rides 0.11.2 if READY in time, else 0.11.3
+Read ~/Work/CLAUDE.md. pc.sh builds/tests; offscreen; look at screenshots; check_marks (ZERO third-party marks in any language).
+1. tools/i18n/coverage.py: list every translatable UI string (tr("...") and the other label paths I18n.h uses) and,
+ per language, which are missing from src/app/I18nSpanish.cpp / I18nTraditionalChinese.cpp. Print counts + percent.
+2. Fill the gaps in both tables, same style and terms as each table already uses (Spanish: neutral Latin American/
+ Spain-friendly; zh-TW: Taiwan terms, product names in English, see zh-hant REPORT). Keep printf conversions, "##"
+ ids, icon prefixes; length <= 1.6x. Don't change existing entries unless wrong.
+3. test_i18n: a test that fails when coverage for es or zh-TW drops below 100% of the strings (an allow-list file for
+ strings that should stay English: product names, units). So new features can't ship untranslated labels.
+4. UI shots in both languages of the newest panels (Quick Remesh, UV Editor Pack, VDM rotation, Preferences > Input,
+ Help menu): look for clipping/overflow and fix layout if needed.
+CHANGELOG Unreleased one line. T0 green, push, REPORT.md (before/after coverage %) READY <sha>, tell input + merge0109.
diff --git a/assets/fonts/NotoSansTC-UI.otf b/assets/fonts/NotoSansTC-UI.otf
index 4ef63742..d58342b8 100644
Binary files a/assets/fonts/NotoSansTC-UI.otf and b/assets/fonts/NotoSansTC-UI.otf differ
diff --git a/src/app/I18nSpanish.cpp b/src/app/I18nSpanish.cpp
index 13f830f8..aeab1a37 100644
--- a/src/app/I18nSpanish.cpp
+++ b/src/app/I18nSpanish.cpp
@@ -2785,7 +2785,7 @@ constexpr Entry kSpanish[] = {
"Dibuja costuras en el modelo: arrastra por las aristas que quieres cortar (cada tramo sigue el camino de "
"aristas más corto); Alt+arrastrar las quita. Las costuras se ven en rojo en el modelo mientras el Editor UV "
"está abierto."},
- {"Select in 3D", "Seleccionar en 3D"},
+ {"Select in 3D", "Elegir en 3D"},
{"Select on the model: click or drag over it to select faces, islands, vertices or edges (the UV Editor's mode); "
"Alt removes. The selection shows in both views.",
"Selecciona en el modelo: haz clic o arrastra sobre él para seleccionar caras, islas, vértices o aristas (el "
@@ -3478,6 +3478,23 @@ constexpr Entry kSpanish[] = {
{"Pen upper button", "Botón superior del lápiz"},
{"Pen third button", "Tercer botón del lápiz"},
{"Right mouse button", "Botón derecho del ratón"},
+ // --- PanelUvEditor.cpp (tools/i18n/coverage.py) ---
+ {" (folds)", " (pliegues)"},
+ {"%zu seam edges marked", "%zu aristas de costura marcadas"},
+ {"%u islands | %zu selected | stretch %.3f%s | %.0f tx/u at %dK | %s",
+ "%u islas | %zu seleccionadas | estiramiento %.3f%s | %.0f tx/u a %dK | %s"},
+ {"Density", "Densidad"},
+ {"Edge", "Arista"},
+ {"Face", "Cara"},
+ {"Island", "Isla"},
+ {"Islands", "Islas"},
+ {"No Image", "Sin imagen"},
+ {"Plain", "Simple"},
+ {"Selected", "Seleccionadas"},
+ {"Stretch", "Estiramiento"},
+ {"Texel Density", "Densidad de téxeles"},
+ {"Trim Sheet", "Trim sheet"},
+ {"Unwrap Selected", "Desenvolver selección"},
};
} // namespace
diff --git a/src/app/I18nTraditionalChinese.cpp b/src/app/I18nTraditionalChinese.cpp
index d1b3dafc..d7bc2fed 100644
--- a/src/app/I18nTraditionalChinese.cpp
+++ b/src/app/I18nTraditionalChinese.cpp
@@ -3011,6 +3011,23 @@ constexpr Entry kTraditionalChinese[] = {
{"Pen upper button", "繪圖筆上方按鈕"},
{"Pen third button", "繪圖筆第三個按鈕"},
{"Right mouse button", "滑鼠右鍵"},
+ // --- PanelUvEditor.cpp (tools/i18n/coverage.py) ---
+ {" (folds)", " (翻折)"},
+ {"%zu seam edges marked", "已標記 %zu 條接縫邊"},
+ {"%u islands | %zu selected | stretch %.3f%s | %.0f tx/u at %dK | %s",
+ "%u 個島 | 已選取 %zu | 拉伸 %.3f%s | %.0f tx/u(%dK) | %s"},
+ {"Density", "密度"},
+ {"Edge", "邊"},
+ {"Face", "面"},
+ {"Island", "島"},
+ {"Islands", "島"},
+ {"No Image", "無影像"},
+ {"Plain", "單色"},
+ {"Selected", "已選取"},
+ {"Stretch", "拉伸"},
+ {"Texel Density", "紋素密度"},
+ {"Trim Sheet", "裝飾貼圖"},
+ {"Unwrap Selected", "展開所選"},
};
} // namespace
diff --git a/src/app/PanelUvEditor.cpp b/src/app/PanelUvEditor.cpp
index ec1ab12c..79fc8973 100644
--- a/src/app/PanelUvEditor.cpp
+++ b/src/app/PanelUvEditor.cpp
@@ -1007,7 +1007,9 @@ void App::drawUvEditor() {
};
nextOnLine(130 * scale, 14 * scale);
ImGui::SetNextItemWidth(130 * scale);
- if (ImGui::Combo("##uvcolor", &s.color, kColorLabels, 4)) s.colorsDirty = true;
+ const char* colorLabels[4];
+ for (int i = 0; i < 4; ++i) colorLabels[i] = tr(kColorLabels[i]);
+ if (ImGui::Combo("##uvcolor", &s.color, colorLabels, 4)) s.colorsDirty = true;
ui::HelpText("Colours", nullptr,
"What the faces show, here and on the model: Islands (a colour each), Stretch (green: true to the surface; "
"yellow to red: stretched or squashed; magenta: folded over), Density (texel density; blue: fewer texels than the "
@@ -1015,7 +1017,9 @@ void App::drawUvEditor() {
kPath);
nextOnLine(110 * scale, style.ItemSpacing.x);
ImGui::SetNextItemWidth(110 * scale);
- ImGui::Combo("##uvimage", &s.image, kImageLabels, 3);
+ const char* imageLabels[3];
+ for (int i = 0; i < 3; ++i) imageLabels[i] = tr(kImageLabels[i]);
+ ImGui::Combo("##uvimage", &s.image, imageLabels, 3);
ui::HelpText("Image", nullptr, "Behind the layout: nothing, a checker, or the painted texture (tile 1001).", kPath);
nextOnLine(ImGui::CalcTextSize("Model").x + ImGui::GetFrameHeight() * 2, 14 * scale);
ImGui::AlignTextToFramePadding();
@@ -1257,11 +1261,11 @@ void App::drawUvEditor() {
for (size_t i = 0; i < s.tileList.size() && i < 6; ++i) tiles += (i ? ", " : "") + std::to_string(s.tileList[i]);
if (s.tileList.size() > 6) tiles += "...";
if (s.hasUvs)
- std::snprintf(line, sizeof line, "%u islands | %zu selected | stretch %.3f%s | %.0f tx/u at %dK | %s",
- s.topo.islandCount, nsel, double(s.meanStretch), s.flipped > 0.001f ? " (folds)" : "",
+ std::snprintf(line, sizeof line, tr("%u islands | %zu selected | stretch %.3f%s | %.0f tx/u at %dK | %s"),
+ s.topo.islandCount, nsel, double(s.meanStretch), s.flipped > 0.001f ? tr(" (folds)") : "",
double(s.meanDensity), u.resolution() / 1024, tiles.c_str());
else
- std::snprintf(line, sizeof line, "%zu seam edges marked", uvSeamCount(m));
+ std::snprintf(line, sizeof line, tr("%zu seam edges marked"), uvSeamCount(m));
ImGui::TextDisabled("%s", line);
}
@@ -1270,7 +1274,10 @@ void App::drawUvEditor() {
ImGui::BeginChild("##uvside", ImVec2(sideW, avail.y), false);
const float w = ImGui::GetContentRegionAvail().x;
const float halfW = (w - style.ItemSpacing.x) * 0.5f;
- auto section = [&](const char* title, bool open) { return ImGui::CollapsingHeader(title, open ? ImGuiTreeNodeFlags_DefaultOpen : 0); };
+ auto section = [&](const char* title, bool open) { // the id stays English, so the open state survives a language change
+ return ImGui::CollapsingHeader((std::string(tr(title)) + "###uvsection." + title).c_str(),
+ open ? ImGuiTreeNodeFlags_DefaultOpen : 0);
+ };
if (section("Unwrap", true)) {
const char* labels[6];
for (int i = 0; i < 6; ++i) labels[i] = uvUnwrapMethodLabel(kMethods[i]);
@@ -1293,7 +1300,7 @@ void App::drawUvEditor() {
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, theme::accentHover);
ImGui::PushStyleColor(ImGuiCol_Text, theme::textOnAccent);
ImGui::BeginDisabled(s.job != nullptr || m.triangleCount() == 0);
- if (ImGui::Button(sel ? "Unwrap Selected##uvunwrap" : "Unwrap##uvunwrap", ImVec2(w, 0))) u.unwrap();
+ if (ImGui::Button(tr(sel ? "Unwrap Selected##uvunwrap" : "Unwrap##uvunwrap"), ImVec2(w, 0))) u.unwrap();
ImGui::EndDisabled();
ImGui::PopStyleColor(3);
ui::HelpAction(*this, "uv.unwrap");
@@ -1353,7 +1360,7 @@ void App::drawUvEditor() {
}
ui::HelpText("Texture size", nullptr, "The texture size densities and margins are measured at (the Part's texture's when it has one).", kPath);
ImGui::SameLine();
- ImGui::TextDisabled("%s %.0f", s.selIslands ? "Selected" : "Mean", double(s.selDensity));
+ ImGui::TextDisabled("%s %.0f", tr(s.selIslands ? "Selected" : "Mean"), double(s.selDensity));
ImGui::SetNextItemWidth(halfW);
ImGui::InputFloat("##uvtarget", &s.targetDensity, 0.0f, 0.0f, "%.0f tx/u");
s.targetDensity = std::clamp(s.targetDensity, 1.0f, 65536.0f);
diff --git a/tests/ui/language_panels.sfui b/tests/ui/language_panels.sfui
index 0a8bad9a..af517fe1 100644
--- a/tests/ui/language_panels.sfui
+++ b/tests/ui/language_panels.sfui
@@ -33,7 +33,7 @@ run uv_unwrap
wait_idle 120
run uv_pack columns=4 rows=3 margin=6
expect_text "Columnas"
-expect_text "Densidad objetivo"
+expect_text "Densidad de téxeles"
shot es-uv-editor
key alt+u
expect_value uv_editor_open == 0
@@ -62,8 +62,9 @@ shot zh-remesh
click "重新網格化##tool.remesh"
key alt+u
expect_value uv_editor_open == 1
+run uv_pack columns=4 rows=3 margin=6
expect_text "欄數"
-expect_text "目標密度"
+expect_text "紋素密度"
shot zh-uv-editor
key alt+u
diff --git a/tools/i18n/coverage.py b/tools/i18n/coverage.py
index 4a3fb0e2..7ab5d452 100644
--- a/tools/i18n/coverage.py
+++ b/tools/i18n/coverage.py
@@ -47,6 +47,9 @@ DYNAMIC = {
"Input.cpp along-normal key": ["With Alt", "With Ctrl"],
"Tablet.cpp pressureStatus": ["Pressure: no pen seen yet", "Pressure: on", "Pressure: not detected",
"Pressure: touch the tablet to check"],
+ "PanelUvEditor.cpp mode, colour and image labels": ["Vertex", "Edge", "Face", "Island", "Islands", "Stretch",
+ "Density", "Plain", "No Image", "Checker", "Texture"],
+ "PanelUvEditor.cpp sections": ["Unwrap", "Pack", "Texel Density", "Trim Sheet", "Edit", "Display"],
"core/RadialMenu.cpp radialButtonLabel": ["None", "Middle mouse button", "Mouse back button", "Mouse forward button",
"Pen lower button", "Pen upper button", "Pen third button",
"Right mouse button"],