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.

i18n: every ImGui label goes through tr(); Generate 3D translated; raw-label test has no backlog

islandmede15d3f9f93f9
diff --git a/assets/fonts/NotoSansSC-UI.otf b/assets/fonts/NotoSansSC-UI.otf
index 2037e887..ed716723 100644
Binary files a/assets/fonts/NotoSansSC-UI.otf and b/assets/fonts/NotoSansSC-UI.otf differ
diff --git a/assets/fonts/NotoSansTC-UI.otf b/assets/fonts/NotoSansTC-UI.otf
index 6b27f320..3905deef 100644
Binary files a/assets/fonts/NotoSansTC-UI.otf and b/assets/fonts/NotoSansTC-UI.otf differ
diff --git a/changes/fix-i18n-generate-panel.md b/changes/fix-i18n-generate-panel.md
new file mode 100644
index 00000000..e8c78589
--- /dev/null
+++ b/changes/fix-i18n-generate-panel.md
@@ -0,0 +1,12 @@
+---
+whats_new: **Español, 繁體中文 and 简体中文** now cover the whole interface: **Generate 3D** (tabs, services, hints, Quad Remesh, Generate 3D model, Quick shapes), the About box, Proof mode, the phone link, the brush gallery, Brush Lab, splat training and about 400 other labels that stayed in English.
+fixed: **Translations**: about 430 labels showed in English in Spanish, Traditional and Simplified Chinese, most visibly the
+ whole **Generate 3D** panel in zh-CN; they now go through the translator in every language. The i18n test now fails
+ on any label that skips it (only product names may), so this can't come back unnoticed.
+testers:
+ - Preferences > Interface > 简体中文, then drop a picture on the window: the Generate 3D panel is Chinese except model and
+ product names (Hunyuan3D, TRELLIS.2, ComfyUI, Rodin, Meshy). Same in Español and 繁體中文.
+ - Switch languages with Generate 3D, the About box and Proof mode open: nothing shows as "?" boxes.
+---
+Reviewers: tools/i18n/coverage.py --raw now also sees ternaries, Combo item arrays, ProgressBar/BeginCombo/modal titles
+and local show-as-is helpers (hint()); raw_allow.txt has no backlog and only takes names keep_english.txt keeps.
diff --git a/src/app/App.cpp b/src/app/App.cpp
index d07cbc89..c51813b0 100644
--- a/src/app/App.cpp
+++ b/src/app/App.cpp
@@ -2960,42 +2960,43 @@ void App::drawUi() {
if (showAbout_) {
ImGui::SetNextWindowSize(ImVec2(460 * uiScale_, 0), ImGuiCond_Always);
ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Appearing, ImVec2(0.5f, 0.5f));
- if (ImGui::Begin("About SculptForge", &showAbout_, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse)) {
+ if (ImGui::Begin(tr("About SculptForge"), &showAbout_, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse)) {
brand::bustItem(64.0f * uiScale_); // the bust; beside it the name, version and what it is
ImGui::SameLine(0.0f, 12.0f * uiScale_);
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + (64.0f * uiScale_ - 2.0f * ImGui::GetTextLineHeightWithSpacing()) * 0.5f);
ImGui::BeginGroup();
- ImGui::Text("SculptForge %s", appVersionLabel().c_str());
- ImGui::TextUnformatted("Free and open-source digital sculpting.");
+ ImGui::Text(tr("SculptForge %s"), appVersionLabel().c_str());
+ ImGui::TextUnformatted(tr("Free and open-source digital sculpting."));
ImGui::EndGroup();
ImGui::Spacing();
if (const StudioStart& studio = studioMode(); studio.active) { // a studio build: its logo and name
const StudioProfile& p = studio.profile;
if (!p.logo.empty())
if (const ImTextureID logo = thumbs_.file(p.logo)) ImGui::Image(logo, ImVec2(96 * uiScale_, 96 * uiScale_));
- ImGui::TextWrapped("%s", p.name.empty() ? "Studio mode" : ("Studio build for " + p.name).c_str());
+ if (p.name.empty()) ImGui::TextWrapped("%s", tr("Studio mode"));
+ else ImGui::TextWrapped(tr("Studio build for %s"), p.name.c_str());
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- ImGui::TextWrapped("Offline: no outside connections. Updates come only from your studio's channel.");
+ ImGui::TextWrapped(tr("Offline: no outside connections. Updates come only from your studio's channel."));
ImGui::PopStyleColor();
ImGui::Spacing();
}
- ImGui::TextWrapped("%s", ai::kPrivacyLine); // also on the site (website/index.html) and in docs/ai-services.md
+ ImGui::TextWrapped("%s", tr(ai::kPrivacyLine)); // also on the site (website/index.html) and in docs/ai-services.md
ImGui::Spacing();
- ImGui::TextWrapped("Copyright (C) 2026 The SculptForge contributors. This program is free software: you can "
+ ImGui::TextWrapped(tr("Copyright (C) 2026 The SculptForge contributors. This program is free software: you can "
"redistribute it and/or modify it under the terms of the GNU General Public License, "
- "version 3 or later. It comes with ABSOLUTELY NO WARRANTY.");
+ "version 3 or later. It comes with ABSOLUTELY NO WARRANTY."));
ImGui::Spacing();
- ImGui::TextWrapped("Built with SDL 3 (zlib), Dear ImGui (MIT), GLM (MIT), stb (MIT/public domain), ufbx "
+ ImGui::TextWrapped(tr("Built with SDL 3 (zlib), Dear ImGui (MIT), GLM (MIT), stb (MIT/public domain), ufbx "
"(MIT/public domain), xatlas (MIT), MikkTSpace (zlib), the Inter and JetBrains Mono typefaces "
"(SIL OFL 1.1) and the MIT-licensed colours of the Forge Terminal look's schemes. Quad Remesh "
"follows Instant Meshes "
"(BSD-3-Clause). The phone link uses QR Code generator (MIT), libdatachannel and libjuice (MPL-2.0), usrsctp "
"(BSD-3-Clause) and Mbed TLS (Apache-2.0). Uses libcurl (curl license) "
- "where available.");
+ "where available."));
ImGui::Spacing();
- if (ImGui::Button("License")) SDL_OpenURL("https://github.com/islandmed/SculptForge/blob/main/LICENSE");
+ if (ImGui::Button(tr("License"))) SDL_OpenURL("https://github.com/islandmed/SculptForge/blob/main/LICENSE");
ImGui::SameLine();
- if (ImGui::Button("Third-party notices"))
+ if (ImGui::Button(tr("Third-party notices")))
SDL_OpenURL("https://github.com/islandmed/SculptForge/blob/main/THIRD_PARTY_NOTICES.md");
ImGui::SameLine();
if (ImGui::Button(tr("AI services & privacy")))
@@ -3018,9 +3019,9 @@ void App::drawUi() {
void App::drawLayersContents() {
const float scale = uiScale_;
- ImGui::TextDisabled("Sculpt expressions & correctives;\nexported as glTF morph targets.");
+ ImGui::TextDisabled(tr("Sculpt expressions & correctives;\nexported as glTF morph targets."));
- if (ImGui::RadioButton("Base mesh", doc_.activeLayer < 0)) runCommand("layer_set_active", {{"index", -1.0}});
+ if (ImGui::RadioButton(tr("Base mesh"), doc_.activeLayer < 0)) runCommand("layer_set_active", {{"index", -1.0}});
constexpr const char* kLayersPath = "Tool > Layers";
ui::HelpText("Base mesh", nullptr, "Strokes go into the base shape, not a layer.", kLayersPath);
@@ -3037,7 +3038,7 @@ void App::drawLayersContents() {
kLayersPath);
ImGui::SameLine(ImGui::GetContentRegionAvail().x - 52 * scale);
const bool playing = playingLayer_ == i;
- if (ImGui::SmallButton(playing ? "Stop" : "Play")) {
+ if (ImGui::SmallButton(tr(playing ? "Stop" : "Play"))) {
playingLayer_ = playing ? -1 : i;
playTime_ = 0.0f;
if (playing) setLayerWeight(i, 1.0f);
@@ -3049,7 +3050,7 @@ void App::drawLayersContents() {
ui::HelpText("Delete layer", nullptr, "Delete this layer on every subdivision level (undoable).", kLayersPath);
float w = layer.weight;
ImGui::SetNextItemWidth(-1);
- if (ImGui::SliderFloat("##weight", &w, 0.0f, 1.0f, "weight %.2f")) {
+ if (ImGui::SliderFloat("##weight", &w, 0.0f, 1.0f, tr("weight %.2f"))) {
if (playingLayer_ == i) playingLayer_ = -1;
setLayerWeight(i, w);
}
@@ -3070,7 +3071,7 @@ void App::drawLayersContents() {
bool enter = ImGui::InputText("##newlayer", newLayerName_, sizeof newLayerName_,
ImGuiInputTextFlags_EnterReturnsTrue);
ImGui::SameLine();
- if (ImGui::Button("+ Add") || enter) runCommand("layer_add", {{"name", std::string(newLayerName_)}});
+ if (ImGui::Button(tr("+ Add")) || enter) runCommand("layer_add", {{"name", std::string(newLayerName_)}});
ui::HelpText("+ Add", nullptr, "Add a sculpt layer with the name typed beside it; strokes go into it.", kLayersPath);
}
@@ -3116,10 +3117,10 @@ void App::pollUnreal() {
void App::drawGameExportContents() {
ImGui::PushItemWidth(-ImGui::CalcTextSize("Reduction").x - ImGui::GetStyle().ItemInnerSpacing.x);
- if (ImGui::SliderInt("LODs", &lodLevels_, 2, 6)) clearLods();
- if (ImGui::SliderFloat("Reduction", &lodRatio_, 0.1f, 0.9f, "x%.2f / level")) clearLods();
+ if (ImGui::SliderInt(tr("LODs"), &lodLevels_, 2, 6)) clearLods();
+ if (ImGui::SliderFloat(tr("Reduction"), &lodRatio_, 0.1f, 0.9f, tr("x%.2f / level"))) clearLods();
ImGui::PopItemWidth();
- if (ImGui::Button(lods_.empty() ? "Generate LOD chain" : "Regenerate", ImVec2(-1, 0))) generateLods();
+ if (ImGui::Button(tr(lods_.empty() ? "Generate LOD chain" : "Regenerate"), ImVec2(-1, 0))) generateLods();
if (!lods_.empty()) {
if (ImGui::BeginTable("lods", 3, ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingStretchProp)) {
@@ -3129,13 +3130,13 @@ void App::drawGameExportContents() {
ImGui::TableHeadersRow();
ImGui::TableNextRow();
ImGui::TableNextColumn();
- if (ImGui::Selectable("Sculpt", previewLod_ < 0, ImGuiSelectableFlags_SpanAllColumns)) {
+ if (ImGui::Selectable(tr("Sculpt"), previewLod_ < 0, ImGuiSelectableFlags_SpanAllColumns)) {
previewLod_ = -1;
}
ImGui::TableNextColumn();
ImGui::Text("%zu", doc_.mesh.triangleCount());
ImGui::TableNextColumn();
- ImGui::TextDisabled("editable");
+ ImGui::TextDisabled(tr("editable"));
for (int i = 0; i < int(lods_.size()); ++i) {
ImGui::TableNextRow();
ImGui::TableNextColumn();
@@ -3151,38 +3152,38 @@ void App::drawGameExportContents() {
}
ImGui::EndTable();
}
- ImGui::TextDisabled("Click a level to inspect it in the viewport.");
+ ImGui::TextDisabled(tr("Click a level to inspect it in the viewport."));
}
- ImGui::SeparatorText("Unreal Engine");
+ ImGui::SeparatorText(tr("Unreal Engine"));
ImGui::PushItemWidth(-ImGui::CalcTextSize("Folder").x - ImGui::GetStyle().ItemInnerSpacing.x);
- ImGui::InputText("Folder", unrealDestination_, sizeof unrealDestination_);
+ ImGui::InputText(tr("Folder"), unrealDestination_, sizeof unrealDestination_);
if (unrealHeightCm_ <= 0.0f) unrealHeightCm_ = std::max(1.0f, doc_.mesh.bounds().extent().y * 100.0f);
- ImGui::DragFloat("Height", &unrealHeightCm_, 1.0f, 1.0f, 100000.0f, "%.0f cm");
+ ImGui::DragFloat(tr("Height"), &unrealHeightCm_, 1.0f, 1.0f, 100000.0f, "%.0f cm");
ImGui::PopItemWidth();
- ImGui::Checkbox("Unreal is on another computer", &unrealNetwork_);
+ ImGui::Checkbox(tr("Unreal is on another computer"), &unrealNetwork_);
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("In Unreal: Project Settings > Plugins > Python > Advanced:\nMulticast Time-To-Live = 1, "
- "Multicast Bind Address = 0.0.0.0");
+ ImGui::SetTooltip(tr("In Unreal: Project Settings > Plugins > Python > Advanced:\nMulticast Time-To-Live = 1, "
+ "Multicast Bind Address = 0.0.0.0"));
if (pendingUnreal_.valid()) {
- ImGui::ProgressBar(-1.0f * float(ImGui::GetTime()), ImVec2(-1, 0), "Sending to Unreal...");
- } else if (ImGui::Button("Send to Unreal", ImVec2(-1, 0))) {
+ ImGui::ProgressBar(-1.0f * float(ImGui::GetTime()), ImVec2(-1, 0), tr("Sending to Unreal..."));
+ } else if (ImGui::Button(tr("Send to Unreal"), ImVec2(-1, 0))) {
sendToUnreal();
}
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("Imports (or updates) the asset in the open Unreal Editor.\nNeeds the Python Editor Script "
- "Plugin and Project Settings > Python > Enable Remote Execution.");
- if (ImGui::Button("Export FBX for Unreal...", ImVec2(-1, 0))) saveFileDialog(FileAction::ExportUnreal);
+ ImGui::SetTooltip(tr("Imports (or updates) the asset in the open Unreal Editor.\nNeeds the Python Editor Script "
+ "Plugin and Project Settings > Python > Enable Remote Execution."));
+ if (ImGui::Button(tr("Export FBX for Unreal..."), ImVec2(-1, 0))) saveFileDialog(FileAction::ExportUnreal);
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- if (doc_.mesh.layers.empty()) ImGui::TextWrapped("Static mesh with %d LODs.", lodLevels_);
- else ImGui::TextWrapped("Skeletal mesh with %zu morph targets.", doc_.mesh.layers.size());
+ if (doc_.mesh.layers.empty()) ImGui::TextWrapped(tr("Static mesh with %d LODs."), lodLevels_);
+ else ImGui::TextWrapped(tr("Skeletal mesh with %zu morph targets."), doc_.mesh.layers.size());
ImGui::PopStyleColor();
- ImGui::SeparatorText("Export");
- if (ImGui::Button("GLB + blend shapes", ImVec2(-1, 0))) saveFileDialog(FileAction::ExportGlb);
- if (ImGui::Button("LOD chain (GLB per level)", ImVec2(-1, 0))) saveFileDialog(FileAction::ExportLods);
+ ImGui::SeparatorText(tr("Export"));
+ if (ImGui::Button(tr("GLB + blend shapes"), ImVec2(-1, 0))) saveFileDialog(FileAction::ExportGlb);
+ if (ImGui::Button(tr("LOD chain (GLB per level)"), ImVec2(-1, 0))) saveFileDialog(FileAction::ExportLods);
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- ImGui::TextWrapped("Unreal, Unity, Godot, Blender, three.js");
+ ImGui::TextWrapped(tr("Unreal, Unity, Godot, Blender, three.js"));
ImGui::PopStyleColor();
}
@@ -3245,8 +3246,8 @@ void App::drawRecipeEditor(BrushRecipe& recipe) {
break;
case RecipeParam::Kind::Bool:
ImGui::Checkbox(p.label, &recipe.frontFacesOnly);
- ImGui::Checkbox("Connected only##recipe", &recipe.connectedOnly); // (falloff options, not recipeParams)
- ImGui::Checkbox("View falloff##recipe", &recipe.viewFalloff);
+ ImGui::Checkbox(tr("Connected only##recipe"), &recipe.connectedOnly); // (falloff options, not recipeParams)
+ ImGui::Checkbox(tr("View falloff##recipe"), &recipe.viewFalloff);
break;
case RecipeParam::Kind::Enum: {
int idx = recipe.enumIndex(p.key);
@@ -3260,9 +3261,9 @@ void App::drawRecipeEditor(BrushRecipe& recipe) {
drawPressureCurveEditor("lab_brush_curve", ImGui::GetContentRegionAvail().x); // this brush's own (Precision.cpp)
drawPenPressureSwitches("lab_pen"); // (#122, BrushSettingsUi.cpp)
const float half = (ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.x) * 0.5f;
- if (ImGui::Button("Save .sfbrush...", ImVec2(half, 0))) saveFileDialog(FileAction::SaveBrush);
+ if (ImGui::Button(tr("Save .sfbrush..."), ImVec2(half, 0))) saveFileDialog(FileAction::SaveBrush);
ImGui::SameLine();
- if (ImGui::Button("Install .sfbrush...", ImVec2(half, 0)))
+ if (ImGui::Button(tr("Install .sfbrush..."), ImVec2(half, 0)))
SDL_ShowOpenFileDialog(onFileChosen, &dialogRequests_[int(FileAction::LoadBrush)], window_, kBrushFilters, 2,
nullptr, false);
}
@@ -3377,48 +3378,48 @@ void App::drawAiSettings() {
const bool ok = localModels_.error.empty();
ImGui::PushStyleColor(ImGuiCol_Text, ok ? ImVec4(0.45f, 0.8f, 0.5f, 1) : ImVec4(0.95f, 0.6f, 0.4f, 1));
if (ok)
- ImGui::TextWrapped("Connected - %d model%s installed", int(localModels_.models.size()),
- localModels_.models.size() == 1 ? "" : "s");
+ ImGui::TextWrapped(tr(localModels_.models.size() == 1 ? "Connected - %d model installed" : "Connected - %d models installed"),
+ int(localModels_.models.size()));
else
ImGui::TextWrapped("%s", localModels_.error.c_str());
ImGui::PopStyleColor();
}
if ((current == "ollama" || current == "lmstudio" || current == "openai-compatible") &&
- ImGui::TreeNode("Run a model on this computer")) {
+ ImGui::TreeNode(tr("Run a model on this computer"))) {
// Steps for the platform we're on; the guide covers the others.
#if defined(_WIN32)
- ImGui::TextWrapped("1. Install Ollama from ollama.com/download, or in PowerShell:\n"
+ ImGui::TextWrapped(tr("1. Install Ollama from ollama.com/download, or in PowerShell:\n"
" winget install Ollama.Ollama\n"
"2. Download the model (in PowerShell):\n"
" ollama pull qwen3:4b-instruct\n"
- "3. Ollama runs in the system tray. Pick Ollama above, then Find models.");
+ "3. Ollama runs in the system tray. Pick Ollama above, then Find models."));
#elif defined(__APPLE__)
- ImGui::TextWrapped("1. Install Ollama from ollama.com/download and drag it to Applications.\n"
+ ImGui::TextWrapped(tr("1. Install Ollama from ollama.com/download and drag it to Applications.\n"
"2. Download the model (in Terminal):\n"
" ollama pull qwen3:4b-instruct\n"
- "3. Ollama runs in the menu bar. Pick Ollama above, then Find models.");
+ "3. Ollama runs in the menu bar. Pick Ollama above, then Find models."));
#else
- ImGui::TextWrapped("1. Install Ollama (or use your package manager, e.g. sudo pacman -S ollama):\n"
+ ImGui::TextWrapped(tr("1. Install Ollama (or use your package manager, e.g. sudo pacman -S ollama):\n"
" curl -fsSL https://ollama.com/install.sh | sh\n"
"2. Start it if needed:\n"
" sudo systemctl enable --now ollama\n"
"3. Download the model:\n"
" ollama pull qwen3:4b-instruct\n"
- "4. Pick Ollama above, then Find models.");
+ "4. Pick Ollama above, then Find models."));
#endif
- ImGui::TextWrapped("The 2.5 GB model needs about 4 GB of free memory and works without a graphics card "
- "(10-20 s per brush on a laptop CPU, a few seconds with a GPU).");
- if (ImGui::SmallButton("Full guide: Windows, macOS, Linux, LM Studio"))
+ ImGui::TextWrapped(tr("The 2.5 GB model needs about 4 GB of free memory and works without a graphics card "
+ "(10-20 s per brush on a laptop CPU, a few seconds with a GPU)."));
+ if (ImGui::SmallButton(tr("Full guide: Windows, macOS, Linux, LM Studio")))
SDL_OpenURL("https://github.com/islandmed/SculptForge/blob/main/docs/local-ai.md");
ImGui::TreePop();
}
if (aiSettings_.provider == P::Anthropic) {
- const char* efforts[] = {"low", "medium", "high"};
+ const char* efforts[] = {tr("low"), tr("medium"), tr("high")};
int e = aiSettings_.effort == "high" ? 2 : aiSettings_.effort == "medium" ? 1 : 0;
ImGui::SetNextItemWidth(-ImGui::CalcTextSize("Endpoint").x - ImGui::GetStyle().ItemInnerSpacing.x);
- if (ImGui::Combo("Effort", &e, efforts, 3)) aiSettings_.effort = efforts[e];
+ if (ImGui::Combo(tr("Effort"), &e, efforts, 3)) aiSettings_.effort = efforts[e];
}
- if (ImGui::Button("Save settings", ImVec2(-1, 0))) {
+ if (ImGui::Button(tr("Save settings"), ImVec2(-1, 0))) {
std::string err;
status_ = aiSettingsPath_.empty() || !aiSettings_.save(aiSettingsPath_, err) ? "Could not save AI settings " + err
: "AI settings saved";
@@ -3441,17 +3442,17 @@ void App::drawBrushLab() {
// First use: the canvas's top-left corner, clear of the model.
const CanvasRect canvas = canvasRect();
ImGui::SetNextWindowPos(ImVec2(vp->Pos.x + canvas.x + 16 * scale, vp->Pos.y + canvas.y + 16 * scale), ImGuiCond_FirstUseEver);
- if (!beginPanel("Brush Lab", &showBrushLab_, 420 * scale)) {
+ if (!beginPanel(tr("Brush Lab"), &showBrushLab_, 420 * scale)) {
ImGui::End();
return;
}
- ImGui::TextWrapped("Describe a brush the way you'd describe it to another sculptor.");
+ ImGui::TextWrapped(tr("Describe a brush the way you'd describe it to another sculptor."));
// Conversation: just a hint until there is one, then a box that grows with it and scrolls past ~8 lines.
if (chatLog_.empty() && !pendingBrush_.valid()) {
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- ImGui::TextWrapped("Try an idea below, or ask for changes to the selected brush, like \"sharper\" or "
- "\"less buildup\".");
+ ImGui::TextWrapped(tr("Try an idea below, or ask for changes to the selected brush, like \"sharper\" or "
+ "\"less buildup\"."));
ImGui::PopStyleColor();
} else {
ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, 150 * scale));
@@ -3469,7 +3470,7 @@ void App::drawBrushLab() {
if (pendingBrush_.valid()) {
busyTime_ += ImGui::GetIO().DeltaTime;
int dots = int(busyTime_ * 3.0f) % 4;
- ImGui::TextDisabled(" Designing brush%.*s", dots, "...");
+ ImGui::TextDisabled(tr(" Designing brush%.*s"), dots, "...");
}
if (scrollChat_) {
ImGui::SetScrollHereY(1.0f);
@@ -3493,7 +3494,7 @@ void App::drawBrushLab() {
const char* sendLabel = "Create";
ImGui::SetNextItemWidth(-ImGui::CalcTextSize(sendLabel).x - ImGui::GetStyle().FramePadding.x * 2 -
ImGui::GetStyle().ItemSpacing.x);
- bool submit = ImGui::InputTextWithHint("##prompt", "e.g. bark of an old oak tree", chatInput_, sizeof chatInput_,
+ bool submit = ImGui::InputTextWithHint("##prompt", tr("e.g. bark of an old oak tree"), chatInput_, sizeof chatInput_,
ImGuiInputTextFlags_EnterReturnsTrue);
ImGui::SameLine();
ImGui::BeginDisabled(pendingBrush_.valid());
@@ -3505,23 +3506,23 @@ void App::drawBrushLab() {
ImGui::SetKeyboardFocusHere(-1);
}
ImGui::BeginDisabled(!activeRecipe());
- ImGui::Checkbox("Refine the selected brush", &refineCurrent_);
+ ImGui::Checkbox(tr("Refine the selected brush"), &refineCurrent_);
ImGui::EndDisabled();
ImGui::SameLine();
- if (ImGui::SmallButton("Clear chat")) {
+ if (ImGui::SmallButton(tr("Clear chat"))) {
chat_.clear();
chatLog_.clear();
}
ImGui::SameLine();
if (ImGui::SmallButton(tr("Paste brush"))) pasteBrush();
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal))
- ImGui::SetTooltip("Install a brush someone shared: a brush code (sfbrush1:...) or .sfbrush text on the "
- "clipboard (Ctrl+V in the viewport)");
+ ImGui::SetTooltip(tr("Install a brush someone shared: a brush code (sfbrush1:...) or .sfbrush text on the "
+ "clipboard (Ctrl+V in the viewport)"));
if (BrushRecipe* recipe = doc_.activeBrush >= 0 ? &doc_.brushes[doc_.activeBrush] : nullptr) {
if (ImGui::CollapsingHeader(("Recipe: " + recipe->name + "###recipe").c_str())) drawRecipeEditor(*recipe);
}
- if (ImGui::CollapsingHeader("AI provider")) drawAiSettings();
+ if (ImGui::CollapsingHeader(tr("AI provider"))) drawAiSettings();
ImGui::End();
if (!pendingRename_.empty()) {
runCommand("brush_rename", {{"to", pendingRename_}});
@@ -3725,11 +3726,11 @@ void App::drawComfyUi() {
ImGui::TextWrapped("%s", text);
ImGui::PopStyleColor();
};
- hint("Runs a workflow on your own ComfyUI - this computer or a studio GPU server - with whatever models it has "
- "(Hunyuan3D, TRELLIS and more). Nothing goes anywhere else.");
- ImGui::InputText("Server", comfyUrl_, sizeof comfyUrl_);
+ hint(tr("Runs a workflow on your own ComfyUI - this computer or a studio GPU server - with whatever models it has "
+ "(Hunyuan3D, TRELLIS and more). Nothing goes anywhere else."));
+ ImGui::InputText(tr("Server"), comfyUrl_, sizeof comfyUrl_);
ImGui::BeginDisabled(pendingComfyCheck_.valid());
- if (ImGui::Button(pendingComfyCheck_.valid() ? "Connecting..." : "Test connection", ImVec2(-1, 0))) {
+ if (ImGui::Button(tr(pendingComfyCheck_.valid() ? "Connecting..." : "Test connection"), ImVec2(-1, 0))) {
auto promise = std::make_shared<std::promise<ComfyCheck>>();
pendingComfyCheck_ = promise->get_future();
std::thread([promise, url = std::string(comfyUrl_)] {
@@ -3764,12 +3765,12 @@ void App::drawComfyUi() {
SDL_ShowOpenFileDialog(onFileChosen, &dialogRequests_[int(FileAction::ComfyWorkflow)], window_, kWorkflowFilters, 2,
nullptr, false);
};
- if (ImGui::BeginCombo("Workflow", preview.c_str())) {
+ if (ImGui::BeginCombo(tr("Workflow"), preview.c_str())) {
for (const auto& w : comfyWorkflows_) {
if (w.kind != (textMode_ ? "text" : "image")) continue;
if (ImGui::Selectable((w.name + " (bundled)").c_str(), current == w.path)) setComfyWorkflow(w.path, textMode_);
}
- if (ImGui::Selectable("Other file (API format)...")) browse();
+ if (ImGui::Selectable(tr("Other file (API format)..."))) browse();
ImGui::EndCombo();
}
if (!comfyWorkflowError_.empty()) {
@@ -3777,10 +3778,10 @@ void App::drawComfyUi() {
ImGui::TextWrapped("%s", comfyWorkflowError_.c_str());
ImGui::PopStyleColor();
}
- hint(textMode_ ? "In ComfyUI use Workflow > Export (API). The node titled sf_prompt gets the description; the "
+ hint(tr(textMode_ ? "In ComfyUI use Workflow > Export (API). The node titled sf_prompt gets the description; the "
"first mesh it saves is imported. See docs/comfyui.md."
: "In ComfyUI use Workflow > Export (API). The Load Image node (title it sf_image) gets the picture; "
- "the first mesh it saves is imported. See docs/comfyui.md.");
+ "the first mesh it saves is imported. See docs/comfyui.md."));
}
void App::drawImageTo3D() {
@@ -3789,17 +3790,17 @@ void App::drawImageTo3D() {
const CanvasRect canvas = canvasRect(); // first use: the canvas's top-right corner
ImGui::SetNextWindowPos(ImVec2(vp->Pos.x + canvas.x + canvas.w - 306 * scale, vp->Pos.y + canvas.y + 16 * scale),
ImGuiCond_FirstUseEver);
- if (!beginPanel("Generate 3D", &showImageTo3D_, 290 * scale)) {
+ if (!beginPanel(tr("Generate 3D"), &showImageTo3D_, 290 * scale)) {
ImGui::End();
return;
}
if (ImGui::BeginTabBar("##source")) {
const bool wasText = textMode_;
- if (ImGui::BeginTabItem("From image")) {
+ if (ImGui::BeginTabItem(tr("From image"))) {
textMode_ = false;
ImGui::EndTabItem();
}
- if (ImGui::BeginTabItem("From text")) {
+ if (ImGui::BeginTabItem(tr("From text"))) {
textMode_ = true;
ImGui::EndTabItem();
}
@@ -3810,15 +3811,15 @@ void App::drawImageTo3D() {
ImGui::SetNextItemWidth(-1);
ImGui::InputTextMultiline("##textprompt", textPrompt_, sizeof textPrompt_, ImVec2(-1, ImGui::GetTextLineHeight() * 3.5f));
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- ImGui::TextWrapped("Describe one object: \"a stylised dragon head with curled horns\", \"a cartoon fox sitting\".");
+ ImGui::TextWrapped(tr("Describe one object: \"a stylised dragon head with curled horns\", \"a cartoon fox sitting\"."));
ImGui::PopStyleColor();
} else {
- if (ImGui::Button(refImage_.empty() ? "Choose image..." : "Change image...", ImVec2(-1, 0)))
+ if (ImGui::Button(tr(refImage_.empty() ? "Choose image..." : "Change image..."), ImVec2(-1, 0)))
SDL_ShowOpenFileDialog(onFileChosen, &dialogRequests_[int(FileAction::OpenImage)], window_, kImageFilters, 2,
nullptr, false);
if (refImage_.empty()) {
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- ImGui::TextWrapped("Or drop a sketch, concept, logo, photo or height map onto the window.");
+ ImGui::TextWrapped(tr("Or drop a sketch, concept, logo, photo or height map onto the window."));
ImGui::PopStyleColor();
ImGui::End();
return;
@@ -3840,13 +3841,13 @@ void App::drawImageTo3D() {
};
const float labelW = ImGui::CalcTextSize("Resolution").x + ImGui::GetStyle().ItemInnerSpacing.x;
- ImGui::SeparatorText(textMode_ ? "Text to 3D (AI)" : "Full 3D model (AI reconstruction)");
- hint(textMode_ ? "Builds a whole model from the description with a generative 3D model, then makes it sculptable."
+ ImGui::SeparatorText(tr(textMode_ ? "Text to 3D (AI)" : "Full 3D model (AI reconstruction)"));
+ hint(tr(textMode_ ? "Builds a whole model from the description with a generative 3D model, then makes it sculptable."
: "Builds the whole model - limbs, face, back - from one picture with a reconstruction model, then "
- "makes it sculptable. Characters on a transparent background work best.");
- static const char* services[] = {"Hugging Face - free models", "fal.ai - paid, your key", "Meshy - paid, your key",
- "Hyper3D Rodin (direct) - paid, your key", "ComfyUI - your server", "My generator command",
- "Offline blockout (inflate silhouette)"};
+ "makes it sculptable. Characters on a transparent background work best."));
+ const char* services[] = {tr("Hugging Face - free models"), tr("fal.ai - paid, your key"), tr("Meshy - paid, your key"),
+ tr("Hyper3D Rodin (direct) - paid, your key"), tr("ComfyUI - your server"),
+ tr("My generator command"), tr("Offline blockout (inflate silhouette)")};
static const char* serviceIds[] = {"huggingface", "fal", "meshy", "hyper3d", "comfyui", "command", "inflate"};
constexpr int kServices = int(std::size(serviceIds));
int service = 0;
@@ -3862,58 +3863,58 @@ void App::drawImageTo3D() {
ImGui::PushItemWidth(-labelW);
if (serviceId == "huggingface") {
const auto& presets = ai::hfPresets();
- const char* preview = presets[0].label;
+ const char* preview = tr(presets[0].label);
for (const auto& p : presets)
- if (aiSettings_.hfModel == p.id) preview = p.label;
- if (ImGui::BeginCombo("Model", preview)) {
+ if (aiSettings_.hfModel == p.id) preview = tr(p.label);
+ if (ImGui::BeginCombo(tr("Model"), preview)) {
for (const auto& p : presets)
- if (ImGui::Selectable(p.label, aiSettings_.hfModel == p.id)) {
+ if (ImGui::Selectable(tr(p.label), aiSettings_.hfModel == p.id)) {
aiSettings_.hfModel = p.id;
aiSettings_.hfModelChosen = true;
}
ImGui::EndCombo();
}
- if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal)) ImGui::SetTooltip("%s", ai::kHunyuanLicenceNote);
+ if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal)) ImGui::SetTooltip("%s", tr(ai::kHunyuanLicenceNote));
const bool hasToken = hfToken_[0] || !ai::AiSettings{}.resolvedHfToken().empty(); // field, else HF_TOKEN
- if (ai::hunyuanModel(aiSettings_.hfModel)) hint(ai::kHunyuanLicenceNote);
+ if (ai::hunyuanModel(aiSettings_.hfModel)) hint(tr(ai::kHunyuanLicenceNote));
if (aiSettings_.hfModel == "trellis-2" && !hasToken)
- hint("TRELLIS.2 needs a free Hugging Face token; without one, Hunyuan3D 2.1 runs instead.");
- ImGui::InputText("HF token", hfToken_, sizeof hfToken_, ImGuiInputTextFlags_Password);
- hint(hasToken
+ hint(tr("TRELLIS.2 needs a free Hugging Face token; without one, Hunyuan3D 2.1 runs instead."));
+ ImGui::InputText(tr("HF token"), hfToken_, sizeof hfToken_, ImGuiInputTextFlags_Password);
+ hint(tr(hasToken
? "Runs on Hugging Face's shared GPUs with your account's free daily allowance."
: "Runs free on Hugging Face's shared GPUs with a small daily allowance. A free token "
- "(huggingface.co/settings/tokens, read access) raises it; TRELLIS.2 needs one.");
+ "(huggingface.co/settings/tokens, read access) raises it; TRELLIS.2 needs one."));
} else if (serviceId == "fal") {
const auto& models = ai::falModels();
const char* preview = falModel_;
for (const auto& m : models)
- if (std::string(falModel_) == m.id) preview = m.label;
- if (ImGui::BeginCombo("Model", preview)) {
+ if (std::string(falModel_) == m.id) preview = tr(m.label);
+ if (ImGui::BeginCombo(tr("Model"), preview)) {
for (const auto& m : models)
- if (ImGui::Selectable(m.label, std::string(falModel_) == m.id))
+ if (ImGui::Selectable(tr(m.label), std::string(falModel_) == m.id))
std::snprintf(falModel_, sizeof falModel_, "%s", m.id);
ImGui::EndCombo();
}
- if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal)) ImGui::SetTooltip("%s", ai::kHunyuanLicenceNote);
- ImGui::InputText("Model id", falModel_, sizeof falModel_);
- if (textMode_ && !ai::rodinModel(falModel_)) hint("From text, Hunyuan3D 3.1 Rapid runs. Choose a Rodin model to use Rodin for text.");
+ if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal)) ImGui::SetTooltip("%s", tr(ai::kHunyuanLicenceNote));
+ ImGui::InputText(tr("Model id"), falModel_, sizeof falModel_);
+ if (textMode_ && !ai::rodinModel(falModel_)) hint(tr("From text, Hunyuan3D 3.1 Rapid runs. Choose a Rodin model to use Rodin for text."));
if (ai::hunyuanModel(textMode_ ? ai::falTextModel(falModel_) : std::string(falModel_)))
- hint(ai::kHunyuanLicenceNote);
- ImGui::InputText("API key", falKey_, sizeof falKey_, ImGuiInputTextFlags_Password);
- if (!falKey_[0]) hint(std::getenv("FAL_KEY") ? "Using FAL_KEY from the environment." : "Get a key at fal.ai/dashboard/keys");
+ hint(tr(ai::kHunyuanLicenceNote));
+ ImGui::InputText(tr("API key"), falKey_, sizeof falKey_, ImGuiInputTextFlags_Password);
+ if (!falKey_[0]) hint(std::getenv("FAL_KEY") ? tr("Using FAL_KEY from the environment.") : tr("Get a key at fal.ai/dashboard/keys"));
} else if (serviceId == "meshy") {
- ImGui::InputText("API key", meshyKey_, sizeof meshyKey_, ImGuiInputTextFlags_Password);
+ ImGui::InputText(tr("API key"), meshyKey_, sizeof meshyKey_, ImGuiInputTextFlags_Password);
if (!meshyKey_[0])
- hint(std::getenv("MESHY_API_KEY") ? "Using MESHY_API_KEY from the environment." : "Get a key at meshy.ai (API settings)");
+ hint(std::getenv("MESHY_API_KEY") ? tr("Using MESHY_API_KEY from the environment.") : tr("Get a key at meshy.ai (API settings)"));
} else if (serviceId == "hyper3d") {
const auto& tiers = ai::hyper3d::tiers();
const std::string tier = ai::hyper3d::resolvedTier(aiSettings_.hyper3dTier);
- const char* preview = tiers[0].label;
+ const char* preview = tr(tiers[0].label);
for (const auto& t : tiers)
- if (tier == t.id) preview = t.label;
+ if (tier == t.id) preview = tr(t.label);
if (ImGui::BeginCombo(tr("Tier"), preview)) {
for (const auto& t : tiers)
- if (ImGui::Selectable(t.label, tier == t.id)) aiSettings_.hyper3dTier = t.id;
+ if (ImGui::Selectable(tr(t.label), tier == t.id)) aiSettings_.hyper3dTier = t.id;
ImGui::EndCombo();
}
ImGui::InputText(tr("API key##hyper3d"), hyper3dKey_, sizeof hyper3dKey_, ImGuiInputTextFlags_Password);
@@ -3926,46 +3927,46 @@ void App::drawImageTo3D() {
} else if (serviceId == "comfyui") {
drawComfyUi();
} else if (serviceId == "command") {
- hint("Any local model or script: {input} = image, {output} = .glb/.obj to write. See docs/generators.md.");
+ hint(tr("Any local model or script: {input} = image, {output} = .glb/.obj to write. See docs/generators.md."));
ImGui::SetNextItemWidth(-1);
ImGui::InputTextMultiline("##generator", generatorCommand_, sizeof generatorCommand_,
ImVec2(-1, ImGui::GetTextLineHeight() * 4));
} else {
- hint("Offline and instant, but only a puffy blockout of the outline - not a real reconstruction.");
+ hint(tr("Offline and instant, but only a puffy blockout of the outline - not a real reconstruction."));
}
if (serviceId != "inflate") {
- static const char* remeshModes[] = {"Quad Remesh", "Voxel remesh", "Off (raw mesh)"};
- ImGui::Combo("Remesh", &generatedRemesh_, remeshModes, 3);
+ const char* remeshModes[] = {tr("Quad Remesh"), tr("Voxel remesh"), tr("Off (raw mesh)")};
+ ImGui::Combo(tr("Remesh"), &generatedRemesh_, remeshModes, 3);
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal))
- ImGui::SetTooltip("Quad Remesh (default): clean quads ready for sculpting and subdividing, with one subdivision "
+ ImGui::SetTooltip(tr("Quad Remesh (default): clean quads ready for sculpting and subdividing, with one subdivision "
"level holding the detail. Voxel remesh: an even, watertight triangle surface. Off: the "
- "model as the service made it.");
- if (generatedRemesh_ != int(GeneratedRemesh::Off)) ImGui::SliderInt("Resolution", &remeshResolution_, 96, 400);
+ "model as the service made it."));
+ if (generatedRemesh_ != int(GeneratedRemesh::Off)) ImGui::SliderInt(tr("Resolution"), &remeshResolution_, 96, 400);
if (generatedRemesh_ == int(GeneratedRemesh::Quad))
- ImGui::TextDisabled("About %d quads, then 1 subdivision level", generatedQuadTarget(remeshResolution_));
+ ImGui::TextDisabled(tr("About %d quads, then 1 subdivision level"), generatedQuadTarget(remeshResolution_));
}
ImGui::PopItemWidth();
if (pendingGenerator_.valid()) {
generatorTime_ += ImGui::GetIO().DeltaTime;
const int pct = generatorProgress_ ? generatorProgress_->percent.load() : -1;
ImGui::ProgressBar(pct >= 0 ? float(pct) / 100.0f : -1.0f * float(ImGui::GetTime()), ImVec2(-1, 0),
- generatorProgress_ ? generatorProgress_->status().c_str() : "Working...");
- if (ImGui::Button("Cancel", ImVec2(-1, 0)) && generatorProgress_) generatorProgress_->cancel = true;
- } else if (ImGui::Button("Generate 3D model", ImVec2(-1, 0))) {
+ tr(generatorProgress_ ? generatorProgress_->status().c_str() : "Working..."));
+ if (ImGui::Button(tr("Cancel"), ImVec2(-1, 0)) && generatorProgress_) generatorProgress_->cancel = true;
+ } else if (ImGui::Button(tr("Generate 3D model"), ImVec2(-1, 0))) {
startGenerator();
}
if (openHunyuanNotice_) {
- ImGui::OpenPopup("Hunyuan3D licence");
+ ImGui::OpenPopup("###hunyuan.licence");
openHunyuanNotice_ = false;
}
ImGui::SetNextWindowSize(ImVec2(320 * scale, 0));
- if (ImGui::BeginPopupModal("Hunyuan3D licence", nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
- ImGui::TextWrapped("%s", ai::kHunyuanLicenceNote);
- ImGui::TextDisabled("This stays in the Model tooltip.");
- if (ImGui::Button("OK", ImVec2(-1, 0))) ImGui::CloseCurrentPopup();
+ if (ImGui::BeginPopupModal(tr("Hunyuan3D licence###hunyuan.licence"), nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
+ ImGui::TextWrapped("%s", tr(ai::kHunyuanLicenceNote));
+ ImGui::TextDisabled(tr("This stays in the Model tooltip."));
+ if (ImGui::Button(tr("OK"), ImVec2(-1, 0))) ImGui::CloseCurrentPopup();
ImGui::EndPopup();
}
- if (ImGui::SmallButton("Save settings")) {
+ if (ImGui::SmallButton(tr("Save settings"))) {
aiSettings_.generatorCommand = generatorCommand_;
aiSettings_.falKey = falKey_;
aiSettings_.falModel = falModel_;
@@ -3983,41 +3984,41 @@ void App::drawImageTo3D() {
ImGui::End();
return;
}
- ImGui::SeparatorText("Quick shapes (offline)");
- if (ImGui::TreeNode("Silhouette blockout")) {
- hint("Inflates the outline into a rounded blob - good for simple shapes, not characters.");
+ ImGui::SeparatorText(tr("Quick shapes (offline)"));
+ if (ImGui::TreeNode(tr("Silhouette blockout"))) {
+ hint(tr("Inflates the outline into a rounded blob - good for simple shapes, not characters."));
ImGui::PushItemWidth(-labelW);
- ImGui::SliderFloat("Thickness", &inflateThickness_, 0.2f, 2.0f, "%.2f");
- ImGui::SliderInt("Detail##inflate", &inflateDetail_, 64, 384);
+ ImGui::SliderFloat(tr("Thickness"), &inflateThickness_, 0.2f, 2.0f, "%.2f");
+ ImGui::SliderInt(tr("Detail##inflate"), &inflateDetail_, 64, 384);
ImGui::PopItemWidth();
- if (ImGui::Button("Inflate", ImVec2(-1, 0)))
+ if (ImGui::Button(tr("Inflate"), ImVec2(-1, 0)))
runCommand("image_inflate", {{"path", refImagePath_},
{"thickness", double(inflateThickness_)},
{"resolution", double(inflateDetail_)},
{"subdivisions", 2.0}});
ImGui::TreePop();
}
- if (ImGui::TreeNode("Relief")) {
- hint("Light areas rise: logos, coins, emblems, height maps, texture photos.");
+ if (ImGui::TreeNode(tr("Relief"))) {
+ hint(tr("Light areas rise: logos, coins, emblems, height maps, texture photos."));
ImGui::PushItemWidth(-labelW);
- ImGui::SliderFloat("Depth##relief", &reliefDepth_, 0.01f, 0.5f, "%.2f");
- ImGui::SliderInt("Detail##relief", &reliefDetail_, 64, 1024);
+ ImGui::SliderFloat(tr("Depth##relief"), &reliefDepth_, 0.01f, 0.5f, "%.2f");
+ ImGui::SliderInt(tr("Detail##relief"), &reliefDetail_, 64, 1024);
ImGui::PopItemWidth();
- ImGui::Checkbox("Dark is high##relief", &reliefInvert_);
- if (ImGui::Button("Make relief", ImVec2(-1, 0)))
+ ImGui::Checkbox(tr("Dark is high##relief"), &reliefInvert_);
+ if (ImGui::Button(tr("Make relief"), ImVec2(-1, 0)))
runCommand("image_relief", {{"path", refImagePath_},
{"depth", double(reliefDepth_)},
{"resolution", double(reliefDetail_)},
{"invert", reliefInvert_}});
ImGui::TreePop();
}
- if (ImGui::TreeNode("Stamp onto model")) {
- hint("Projects the image onto the model from the current view as surface detail (uses the active layer).");
+ if (ImGui::TreeNode(tr("Stamp onto model"))) {
+ hint(tr("Projects the image onto the model from the current view as surface detail (uses the active layer)."));
ImGui::PushItemWidth(-labelW);
- ImGui::SliderFloat("Depth##project", &projectDepth_, 0.001f, 0.1f, "%.3f", ImGuiSliderFlags_Logarithmic);
+ ImGui::SliderFloat(tr("Depth##project"), &projectDepth_, 0.001f, 0.1f, "%.3f", ImGuiSliderFlags_Logarithmic);
ImGui::PopItemWidth();
- ImGui::Checkbox("Dark is high##project", &projectInvert_);
- if (ImGui::Button("Stamp from this view", ImVec2(-1, 0))) projectImageFromView();
+ ImGui::Checkbox(tr("Dark is high##project"), &projectInvert_);
+ if (ImGui::Button(tr("Stamp from this view"), ImVec2(-1, 0))) projectImageFromView();
ImGui::TreePop();
}
ImGui::End();
@@ -4029,35 +4030,35 @@ void App::drawPalette_Splats() {
drawSplatTrainSection(); // train one from a phone capture (PanelSplatTrain.cpp)
ImGui::Spacing();
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- ImGui::TextWrapped("Open or drop a .ply capture (Polycam, Luma, Postshot, Scaniverse...) to sculpt against it.");
+ ImGui::TextWrapped(tr("Open or drop a .ply capture (Polycam, Luma, Postshot, Scaniverse...) to sculpt against it."));
ImGui::PopStyleColor();
- if (ImGui::Button("Sculpt to splats", ImVec2(-1, 0))) runCommand("mesh_to_splats");
- if (ImGui::Button("Try a test head##splats", ImVec2(-1, 0))) runCommand("splat_test_capture", {{"kind", std::string("head")}});
+ if (ImGui::Button(tr("Sculpt to splats"), ImVec2(-1, 0))) runCommand("mesh_to_splats");
+ if (ImGui::Button(tr("Try a test head##splats"), ImVec2(-1, 0))) runCommand("splat_test_capture", {{"kind", std::string("head")}});
ui::HelpText("Try a test head", nullptr,
"Load a built-in test capture (a stylised head as Gaussian splats, with a few floaters) to try Make "
"sculptable without a scan of your own. splat_test_capture kind=object loads a mug instead.",
"Splats");
return;
}
- ImGui::Text("%zu splats (SH %d)", doc_.splats.size(), doc_.splats.shDegree);
- ImGui::Checkbox("Show##splats", &renderSettings_.showSplats);
+ ImGui::Text(tr("%zu splats (SH %d)"), doc_.splats.size(), doc_.splats.shDegree);
+ ImGui::Checkbox(tr("Show##splats"), &renderSettings_.showSplats);
ImGui::SameLine();
- ImGui::Checkbox("Show mesh", &renderSettings_.showMesh);
+ ImGui::Checkbox(tr("Show mesh"), &renderSettings_.showMesh);
ImGui::SetNextItemWidth(-1);
- ImGui::SliderFloat("##splatopacity", &renderSettings_.splatOpacity, 0.05f, 1.0f, "opacity %.2f");
+ ImGui::SliderFloat("##splatopacity", &renderSettings_.splatOpacity, 0.05f, 1.0f, tr("opacity %.2f"));
const float third = (ImGui::GetContentRegionAvail().x - 2 * ImGui::GetStyle().ItemSpacing.x) / 3.0f;
- if (ImGui::Button("Flip", ImVec2(third, 0))) runCommand("splat_transform", {{"rotate_x", 180.0}});
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("Turn upside down (most captures are)");
+ if (ImGui::Button(tr("Flip"), ImVec2(third, 0))) runCommand("splat_transform", {{"rotate_x", 180.0}});
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("Turn upside down (most captures are)"));
ImGui::SameLine();
- if (ImGui::Button("Turn 90", ImVec2(third, 0))) runCommand("splat_transform", {{"rotate_y", 90.0}});
+ if (ImGui::Button(tr("Turn 90"), ImVec2(third, 0))) runCommand("splat_transform", {{"rotate_y", 90.0}});
ImGui::SameLine();
- if (ImGui::Button("Fit", ImVec2(third, 0))) runCommand("splat_transform", {{"fit", true}});
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("Centre and scale to the sculpt");
- if (ImGui::Button("Clean floaters", ImVec2(-1, 0))) runCommand("splat_clean", {{"min_opacity", 0.1}, {"keep", 0.97}});
+ if (ImGui::Button(tr("Fit"), ImVec2(third, 0))) runCommand("splat_transform", {{"fit", true}});
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("Centre and scale to the sculpt"));
+ if (ImGui::Button(tr("Clean floaters"), ImVec2(-1, 0))) runCommand("splat_clean", {{"min_opacity", 0.1}, {"keep", 0.97}});
const float half = (ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.x) * 0.5f;
- if (ImGui::Button("Save splats...", ImVec2(half, 0))) saveFileDialog(FileAction::SaveSplats);
+ if (ImGui::Button(tr("Save splats..."), ImVec2(half, 0))) saveFileDialog(FileAction::SaveSplats);
ImGui::SameLine();
- if (ImGui::Button("Clear##splats", ImVec2(half, 0))) runCommand("splat_clear");
+ if (ImGui::Button(tr("Clear##splats"), ImVec2(half, 0))) runCommand("splat_clear");
drawSplatTrainSection();
drawSculptableSection(); // Make sculptable (PanelSculptable.cpp)
}
diff --git a/src/app/BrushSettingsUi.cpp b/src/app/BrushSettingsUi.cpp
index 0a9b0fec..1c478fbb 100644
--- a/src/app/BrushSettingsUi.cpp
+++ b/src/app/BrushSettingsUi.cpp
@@ -171,7 +171,7 @@ void App::drawPenPressureSwitches(const char* id) {
const float labelW = std::max(ImGui::CalcTextSize(tr("Strength")).x, ImGui::CalcTextSize(tr("Size")).x) + ImGui::GetFontSize(); // (a clear gap before the segments)
for (const bool size : {true, false}) {
ImGui::AlignTextToFramePadding();
- ImGui::TextUnformatted(tr(size ? "Size" : "Strength"));
+ ImGui::TextUnformatted(tr(tr(size ? "Size" : "Strength")));
ImGui::SameLine(labelW);
if (size) ui::Segmented(*this, {"brush.pen_size_global", "brush.pen_size_on", "brush.pen_size_off"});
else ui::Segmented(*this, {"brush.pen_strength_global", "brush.pen_strength_on", "brush.pen_strength_off"});
diff --git a/src/app/Config.cpp b/src/app/Config.cpp
index f9a96722..c2b1a3a2 100644
--- a/src/app/Config.cpp
+++ b/src/app/Config.cpp
@@ -1363,7 +1363,7 @@ void App::drawControlsWindow() {
const float s = uiScale_;
ImGui::SetNextWindowSize(ImVec2(560.0f * s, 640.0f * s), ImGuiCond_FirstUseEver);
ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f));
- if (!ImGui::Begin("Controls", &showHelp_, ImGuiWindowFlags_NoCollapse)) {
+ if (!ImGui::Begin(tr("Controls"), &showHelp_, ImGuiWindowFlags_NoCollapse)) {
ImGui::End();
return;
}
@@ -1375,7 +1375,7 @@ void App::drawControlsWindow() {
ui::ActionButton(*this, "input.import_blender", ImVec2(-FLT_MIN, 0), ui::Look::IconLabel);
char (&filter)[96] = g_controlsFilter;
ImGui::SetNextItemWidth(-FLT_MIN);
- ImGui::InputTextWithHint("##controls_filter", ICON_LC_SEARCH " Filter shortcuts and gestures", filter, sizeof filter);
+ ImGui::InputTextWithHint("##controls_filter", tr(ICON_LC_SEARCH " Filter shortcuts and gestures"), filter, sizeof filter);
const std::string f = lower(filter);
auto matches = [&](const std::string& a, const std::string& b, const std::string& c) {
return f.empty() || lower(a).find(f) != std::string::npos || lower(b).find(f) != std::string::npos ||
diff --git a/src/app/Console.cpp b/src/app/Console.cpp
index 01ce5b88..c039d71c 100644
--- a/src/app/Console.cpp
+++ b/src/app/Console.cpp
@@ -394,7 +394,7 @@ void Console::draw(App& app, const CanvasRect& rect) {
ImGuiWindowFlags_NoFocusOnAppearing;
if (bringToFront_) ImGui::SetNextWindowFocus();
bringToFront_ = false;
- const bool visible = ImGui::Begin("Console", nullptr, flags);
+ const bool visible = ImGui::Begin(tr("Console"), nullptr, flags);
ImGui::PopStyleColor();
ImGui::PopStyleVar(4);
if (!visible) {
@@ -478,7 +478,7 @@ void Console::draw(App& app, const CanvasRect& rect) {
}
}
if (lines_.empty())
- ImGui::TextColored(ImGui::ColorConvertU32ToFloat4(ui::color::textDim), "Type help and press Enter to list the commands.");
+ ImGui::TextColored(ImGui::ColorConvertU32ToFloat4(ui::color::textDim), tr("Type help and press Enter to list the commands."));
if (scrollToBottom_ && (atBottom || focusInput_)) ImGui::SetScrollHereY(1.0f);
scrollToBottom_ = false;
ImGui::EndChild();
@@ -501,7 +501,7 @@ void Console::draw(App& app, const CanvasRect& rect) {
const ImGuiInputTextFlags inputFlags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_CallbackCompletion |
ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackCharFilter |
ImGuiInputTextFlags_CallbackAlways;
- const bool entered = ImGui::InputTextWithHint("##console", "help, or a command such as remesh resolution=200", input_,
+ const bool entered = ImGui::InputTextWithHint("##console", tr("help, or a command such as remesh resolution=200"), input_,
sizeof input_, inputFlags, &Console::inputCallback, this);
ImGui::PopStyleColor(3);
ImGui::PopFont();
diff --git a/src/app/Gizmo.cpp b/src/app/Gizmo.cpp
index 07ca6c39..0a13b5a6 100644
--- a/src/app/Gizmo.cpp
+++ b/src/app/Gizmo.cpp
@@ -893,7 +893,7 @@ void App::drawGizmoPanel() {
ImGui::SetNextWindowPos(ImVec2(c.x + 12.0f * uiScale_, c.y + c.h - 12.0f * uiScale_), ImGuiCond_FirstUseEver,
ImVec2(0.0f, 1.0f));
ImGui::SetNextWindowSize(ImVec2(270.0f * uiScale_, 0.0f), ImGuiCond_Always);
- if (ImGui::Begin("Gizmo", nullptr, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings)) {
+ if (ImGui::Begin(tr("Gizmo"), nullptr, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings)) {
drawGizmoContents(true);
}
ImGui::End();
@@ -902,7 +902,7 @@ void App::drawGizmoPanel() {
void App::drawGizmoContents(bool compact) {
ui::Segmented(*this, {"tool.draw", "tool.move", "tool.scale", "tool.rotate"});
if (!compact && !gizmoActive()) {
- ImGui::TextDisabled("Q W E R: Draw, Move, Scale, Rotate");
+ ImGui::TextDisabled(tr("Q W E R: Draw, Move, Scale, Rotate"));
return;
}
// Pivot.
@@ -943,25 +943,25 @@ void App::drawGizmoContents(bool compact) {
ui::HelpText(label, nullptr, help, kPath);
}
};
- row("Move", "gizmo_move", gizmo_.move, 3, "%.3g", "Distance to move along X, Y and Z (the gizmo's axes) when you press Apply.");
- row("Rotate", "gizmo_rotate", gizmo_.rotate, 3, "%.3g",
+ row(tr("Move"), "gizmo_move", gizmo_.move, 3, "%.3g", "Distance to move along X, Y and Z (the gizmo's axes) when you press Apply.");
+ row(tr("Rotate"), "gizmo_rotate", gizmo_.rotate, 3, "%.3g",
"Degrees to turn about X, then Y, then Z (the gizmo's axes, through the pivot) when you press Apply.");
- row("Scale", "gizmo_scale", &gizmo_.scale, 1, "%.1f%%", "Size to scale to about the pivot when you press Apply (100% = unchanged).");
+ row(tr("Scale"), "gizmo_scale", &gizmo_.scale, 1, "%.1f%%", "Size to scale to about the pivot when you press Apply (100% = unchanged).");
const float w = (ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.x) * 0.5f;
- if (ImGui::Button("Apply", ImVec2(w, 0))) applyGizmoNumbers();
+ if (ImGui::Button(tr("Apply"), ImVec2(w, 0))) applyGizmoNumbers();
ui::HelpText("Apply", nullptr,
"Move, rotate and scale by the numbers above, about the pivot, as one undo step (the transform "
"command). Masked parts stay; with symmetry on, a masked transform is mirrored.",
kPath);
ImGui::SameLine();
- if (ImGui::Button("Clear", ImVec2(w, 0))) {
+ if (ImGui::Button(tr("Clear"), ImVec2(w, 0))) {
std::fill(gizmo_.move, gizmo_.move + 3, 0.0f);
std::fill(gizmo_.rotate, gizmo_.rotate + 3, 0.0f);
gizmo_.scale = 100.0f;
}
ui::HelpText("Clear", nullptr, "Set Move and Rotate back to 0 and Scale to 100%.", kPath);
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyle().Colors[ImGuiCol_TextDisabled]);
- ImGui::TextWrapped("Shift snaps (15 deg, grid, 10%%). Alt+drag the gizmo: move it only. Alt+click the model: pivot there.");
+ ImGui::TextWrapped(tr("Shift snaps (15 deg, grid, 10%%). Alt+drag the gizmo: move it only. Alt+click the model: pivot there."));
ImGui::PopStyleColor();
}
diff --git a/src/app/I18nSimplifiedChinese.cpp b/src/app/I18nSimplifiedChinese.cpp
index 16f5f687..01a7f914 100644
--- a/src/app/I18nSimplifiedChinese.cpp
+++ b/src/app/I18nSimplifiedChinese.cpp
@@ -3345,6 +3345,849 @@ constexpr Entry kSimplifiedChinese[] = {
{"Using the key from the environment.", "使用环境变量中的密钥。"},
{"Your studio doesn't allow this provider: pick another", "你的工作室不允许此提供商:请选择其他提供商"},
{"Your studio requires the sign-in for AI features.", "你的工作室要求登录后才能使用 AI 功能。"},
+ // --- Labels that were shown without tr() until 11-06 (coverage.py --raw-check), Generate 3D first ---
+ {"%d frames, %.1f s",
+ "%d 帧,%.1f 秒"},
+ {"%s connected",
+ "%s 已连接"},
+ {"%s: not seen for %.0f s",
+ "%s: 已 %.0f 秒未检测到"},
+ {"Fill Layer",
+ "填充图层"},
+ {"Filter alphas",
+ "筛选 Alpha"},
+ {"Filter shortcuts and gestures",
+ "筛选快捷键和手势"},
+ {"New",
+ "新建"},
+ {"Save now",
+ "立即保存"},
+ {"Sculpted before? Take the quick tour",
+ "雕刻过吗?看看快速导览"},
+ {"Search actions",
+ "搜索操作"},
+ {"Search the guide (Ctrl+F)",
+ "搜索指南(Ctrl+F)"},
+ {"See memberships",
+ "查看会员方案"},
+ {"Show library folder",
+ "显示资源库文件夹"},
+ {"Show me",
+ "演示给我看"},
+ {"Start from a head",
+ "从头部开始"},
+ {"Start the 10-minute lesson",
+ "开始 10 分钟课程"},
+ {"Waiting for your phone...",
+ "正在等待你的手机..."},
+ {" Designing brush%.*s",
+ " 正在设计笔刷%.*s"},
+ {"%.1f%% of texels found no surface: raise Front / Rear",
+ "%.1f%% 的纹素找不到表面:请提高前方 / 后方"},
+ {"%d commands",
+ "%d 个命令"},
+ {"%d items",
+ "%d 个项目"},
+ {"%dx%d in %.1f s from %zu tris",
+ "%dx%d,耗时 %.1f 秒,来自 %zu 个三角形"},
+ {"%dx%d texture, %d layer",
+ "%dx%d 纹理,%d 个图层"},
+ {"%dx%d texture, %d layers",
+ "%dx%d 纹理,%d 个图层"},
+ {"%s - %s unpacked",
+ "%s - 解压后 %s"},
+ {"%s %zu branch",
+ "%s %zu 个分支"},
+ {"%s %zu branches",
+ "%s %zu 个分支"},
+ {"%s elapsed",
+ "已用时 %s"},
+ {"%s elapsed - %d photos",
+ "已用时 %s - %d 张照片"},
+ {"%s elapsed, about %s left",
+ "已用时 %s,约剩 %s"},
+ {"%s of memory free now (%s)",
+ "当前可用内存 %s (%s)"},
+ {"%s on '%s'",
+ "%s 于“%s”"},
+ {"%s: %s, %s, %d%%\nClick: on / off. Right-click: blend and opacity.",
+ "%s: %s,%s,%d%%\n单击:开启 / 关闭。右键:混合和不透明度。"},
+ {"%s: roughness %.2f, metallic %.0f",
+ "%s: 粗糙度 %.2f,金属度 %.0f"},
+ {"%zu points, height %.3g, reach %.2f radii",
+ "%zu 个点,高度 %.3g,范围 %.2f 倍半径"},
+ {"%zu result",
+ "%zu 个结果"},
+ {"%zu results",
+ "%zu 个结果"},
+ {"%zu results (best 50)",
+ "%zu 个结果(前 50 个)"},
+ {"%zu splats (SH %d)",
+ "%zu 个 Splat (SH %d)"},
+ {"(contains) Backspace: undo a letter Enter: first match",
+ "(包含) Backspace:删除一个字母 Enter:第一个匹配项"},
+ {"(root selected)",
+ "(已选择根球)"},
+ {"(sphere %d selected)",
+ "(已选择球 %d)"},
+ {"1. Install Ollama (or use your package manager, e.g. sudo pacman -S ollama):\n curl -fsSL https://ollama.com/install.sh | sh\n2. Start it if needed:\n sudo systemctl enable --now ollama\n3. Download the model:\n ollama pull qwen3:4b-instruct\n4. Pick Ollama above, then Find models.",
+ "1. 安装 Ollama(或使用包管理器,例如 sudo pacman -S ollama):\n curl -fsSL https://ollama.com/install.sh | sh\n2. 如有需要,启动它:\n sudo systemctl enable --now ollama\n3. 下载模型:\n ollama pull qwen3:4b-instruct\n4. 在上方选择 Ollama,然后点“查找模型”。"},
+ {"1. Install Ollama from ollama.com/download and drag it to Applications.\n2. Download the model (in Terminal):\n ollama pull qwen3:4b-instruct\n3. Ollama runs in the menu bar. Pick Ollama above, then Find models.",
+ "1. 从 ollama.com/download 安装 Ollama,并拖到“应用程序”。\n2. 下载模型(在“终端”中):\n ollama pull qwen3:4b-instruct\n3. Ollama 在菜单栏中运行。在上方选择 Ollama,然后点“查找模型”。"},
+ {"1. Install Ollama from ollama.com/download, or in PowerShell:\n winget install Ollama.Ollama\n2. Download the model (in PowerShell):\n ollama pull qwen3:4b-instruct\n3. Ollama runs in the system tray. Pick Ollama above, then Find models.",
+ "1. 从 ollama.com/download 安装 Ollama,或在 PowerShell 中:\n winget install Ollama.Ollama\n2. 下载模型(在 PowerShell 中):\n ollama pull qwen3:4b-instruct\n3. Ollama 在系统托盘中运行。在上方选择 Ollama,然后点“查找模型”。"},
+ {"A live display shows the frame rate, frame times (median, 95th, 99th percentile), how far the stroke trails the pointer, and memory. The result is saved as JSON beside a video of the run:",
+ "实时显示帧率、帧时间(中位数、第 95 和第 99 百分位)、笔触落后指针的距离以及内存。结果保存为 JSON,并附上本次运行的视频:"},
+ {"A neutral human head with clean quads and eye and mouth loops, ready for a portrait.",
+ "中性的人类头部,四边面干净,眼部和嘴部有环形布线,可直接用于肖像。"},
+ {"A two-second check of the GPU, the CPU and memory, so big scenes stay smooth. Once, then again only when the graphics card, its driver or SculptForge changes. Nothing leaves this computer.",
+ "两秒钟检查 GPU、CPU 和内存,让大型场景保持流畅。只做一次,之后仅在显卡、驱动程序或 SculptForge 变更时再做。不会有任何数据离开这台电脑。"},
+ {"AI features:",
+ "AI 功能:"},
+ {"AI provider",
+ "AI 提供商"},
+ {"About %d quads, then 1 subdivision level",
+ "约 %d 个四边面,再加 1 个细分级别"},
+ {"Add a brush to the shelf",
+ "将笔刷添加到工具栏"},
+ {"Add to bottom shelf",
+ "添加到底部工具栏"},
+ {"All tags",
+ "所有标签"},
+ {"All visible Parts",
+ "所有可见部件"},
+ {"Android Chrome says \"This site can't be reached\"\n(ERR_TOO_MANY_RETRIES)? Recent Chrome versions can\nblock every home-network address, even your router.\nUse Firefox on the phone instead and allow it to\nreach local devices when it asks.",
+ "安卓版 Chrome 显示“无法访问此网站”\n(ERR_TOO_MANY_RETRIES)?新版 Chrome 可能\n屏蔽所有家庭网络地址,连路由器也不例外。\n请改用手机上的 Firefox,并在它询问时\n允许访问本地设备。"},
+ {"Any local model or script: {input} = image, {output} = .glb/.obj to write. See docs/generators.md.",
+ "任何本地模型或脚本:{input} = 图片,{output} = 要写入的 .glb/.obj。请参阅 docs/generators.md。"},
+ {"Append another Part first",
+ "请先追加另一个部件"},
+ {"Auto",
+ "自动"},
+ {"Back to automatic",
+ "恢复自动"},
+ {"Back to the tour",
+ "返回导览"},
+ {"Background Preview (experimental): a big brush shows under the pen while it's still being worked out.",
+ "后台预览(实验性):大笔刷在计算完成前就先显示在笔下。"},
+ {"Backspace: undo a letter Enter: first match",
+ "Backspace:删除一个字母 Enter:第一个匹配项"},
+ {"Baked: %s (%.1f s, exports with GLB / USD)",
+ "已烘焙:%s (%.1f 秒,随 GLB / USD 导出)"},
+ {"Be the first: sculptforge.app/support.html",
+ "成为第一位:sculptforge.app/support.html"},
+ {"Benchmark results",
+ "性能基准测试结果"},
+ {"Big meshes are faster now",
+ "大型网格现在更快了"},
+ {"Block out a base mesh from connected spheres, then Make Mesh to sculpt it.",
+ "用相连的球体搭出基础网格,然后点“生成网格”开始雕刻。"},
+ {"Branch from step %zu: %zu step, ending with \"%s\"\nClick to make it the active branch",
+ "从步骤 %zu 分支:%zu 个步骤,结尾为“%s”\n单击设为当前分支"},
+ {"Branch from step %zu: %zu steps, ending with \"%s\"\nClick to make it the active branch",
+ "从步骤 %zu 分支:%zu 个步骤,结尾为“%s”\n单击设为当前分支"},
+ {"Break-up %.2f",
+ "打散 %.2f"},
+ {"Bridge folder: %s",
+ "Bridge 文件夹:%s"},
+ {"Brush Lab",
+ "笔刷实验室"},
+ {"Brush is a free, open-source Gaussian splat trainer (Apache-2.0) that runs on your graphics card - NVIDIA, AMD, Intel or Apple, no CUDA needed. SculptForge runs it as a separate program.",
+ "Brush 是免费、开源的高斯 Splat 训练工具(Apache-2.0),在你的显卡上运行:NVIDIA、AMD、Intel 或 Apple 均可,无需 CUDA。SculptForge 会把它作为独立程序运行。"},
+ {"Brushes",
+ "笔刷"},
+ {"Brushes are data only (no code), shared under CC0. Installed brushes join your library.",
+ "笔刷只是数据(不含代码),以 CC0 共享。安装的笔刷会加入你的资源库。"},
+ {"Builds a whole model from the description with a generative 3D model, then makes it sculptable.",
+ "用生成式 3D 模型根据描述生成完整模型,再转为可雕刻的网格。"},
+ {"Builds the whole model - limbs, face, back - from one picture with a reconstruction model, then makes it sculptable. Characters on a transparent background work best.",
+ "用重建模型从一张图片生成完整模型(四肢、面部、背面),再转为可雕刻的网格。透明背景上的角色效果最好。"},
+ {"Built with SDL 3 (zlib), Dear ImGui (MIT), GLM (MIT), stb (MIT/public domain), ufbx (MIT/public domain), xatlas (MIT), MikkTSpace (zlib), the Inter and JetBrains Mono typefaces (SIL OFL 1.1) and the MIT-licensed colours of the Forge Terminal look's schemes. Quad Remesh follows Instant Meshes (BSD-3-Clause). The phone link uses QR Code generator (MIT), libdatachannel and libjuice (MPL-2.0), usrsctp (BSD-3-Clause) and Mbed TLS (Apache-2.0). Uses libcurl (curl license) where available.",
+ "使用 SDL 3 (zlib)、Dear ImGui (MIT)、GLM (MIT)、stb (MIT/公有领域)、ufbx (MIT/公有领域)、xatlas (MIT)、MikkTSpace (zlib)、Inter 和 JetBrains Mono 字体 (SIL OFL 1.1),以及 Forge Terminal 外观配色中采用 MIT 许可的颜色构建。四边形重拓扑参照 Instant Meshes (BSD-3-Clause)。手机连接使用 QR Code generator (MIT)、libdatachannel 和 libjuice (MPL-2.0)、usrsctp (BSD-3-Clause) 以及 Mbed TLS (Apache-2.0)。在可用时使用 libcurl (curl 许可)。"},
+ {"Bust, full body, hand, foot, ear, eye, stylised and creature heads, torso and bevelled primitives: Library > Tool > Starter meshes.",
+ "半身像、全身、手、脚、耳朵、眼睛、风格化和生物头部、躯干及倒角基本体:资源库 > 工具 > 起始网格。"},
+ {"C over the model picks its colour",
+ "在模型上按 C 可拾取颜色"},
+ {"C over the model picks its material",
+ "在模型上按 C 可拾取材质"},
+ {"COLMAP (BSD licence) works out where each photo was taken, which training needs. SculptForge runs it as a separate program.",
+ "COLMAP(BSD 许可)会算出每张照片的拍摄位置,这是训练所需的。SculptForge 会把它作为独立程序运行。"},
+ {"Can't reach the brush gallery: %s",
+ "无法访问笔刷画廊:%s"},
+ {"Capture again",
+ "重新捕捉"},
+ {"Captures/%s",
+ "Captures/%s"},
+ {"Centre and scale to the sculpt",
+ "居中并缩放到雕刻模型"},
+ {"Check that the gallery folder exists and has an index.json. Brushes you already installed keep working.",
+ "请确认画廊文件夹存在且包含 index.json。已安装的笔刷仍可使用。"},
+ {"Check your internet connection and try again. Brushes you already installed keep working.",
+ "请检查网络连接后重试。已安装的笔刷仍可使用。"},
+ {"Clay at 25, 60 and 120 px, Move, Smooth, a 240 px brush, then an orbit: the scene the website's table uses (same as sculptforge --benchmark %s)",
+ "Clay 25、60 和 120 px,Move、Smooth、240 px 笔刷,再环绕视图:网站表格使用的场景(等同 sculptforge --benchmark %s)"},
+ {"Clean floaters",
+ "清除漂浮点"},
+ {"Clear Base",
+ "清除基础"},
+ {"Clear chat",
+ "清除对话"},
+ {"Clear layer",
+ "清除图层"},
+ {"Click %s.",
+ "单击 %s。"},
+ {"Click a level to inspect it in the viewport.",
+ "单击级别即可在视口中查看。"},
+ {"ComfyUI - your server",
+ "ComfyUI - 你的服务器"},
+ {"Coming from:",
+ "你之前使用:"},
+ {"Community gallery (or a URL / folder for a studio mirror)",
+ "社区画廊(或工作室镜像的 URL / 文件夹)"},
+ {"Connected (%s), no face for %.0f s",
+ "已连接 (%s),已 %.0f 秒未检测到面部"},
+ {"Connected - %d model installed",
+ "已连接 - 已安装 %d 个模型"},
+ {"Connected - %d models installed",
+ "已连接 - 已安装 %d 个模型"},
+ {"Contrast %.2f",
+ "对比度 %.2f"},
+ {"Copy brush code",
+ "复制笔刷代码"},
+ {"Copyright (C) 2026 The SculptForge contributors. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3 or later. It comes with ABSOLUTELY NO WARRANTY.",
+ "Copyright (C) 2026 SculptForge 贡献者。本程序为自由软件:你可以依据 GNU 通用公共许可证第 3 版或更高版本的条款重新分发和/或修改。本程序不提供任何担保。"},
+ {"Create",
+ "创建"},
+ {"Custom bridge folder (optional)",
+ "自定义 Bridge 文件夹(可选)"},
+ {"Delete '%s' from your brush library?",
+ "要从笔刷资源库删除“%s”吗?"},
+ {"Delete Sphere",
+ "删除球体"},
+ {"Describe a brush the way you'd describe it to another sculptor.",
+ "像向另一位雕刻师说明那样描述笔刷。"},
+ {"Describe one object: \"a stylised dragon head with curled horns\", \"a cartoon fox sitting\".",
+ "描述一个物体:“有卷角的风格化龙头”、“坐着的卡通狐狸”。"},
+ {"Detected %s, %s -> %s",
+ "检测到 %s,%s -> %s"},
+ {"DirectX (Y-)",
+ "DirectX (Y-)"},
+ {"Displacement: mid-grey = 0, white = +%.4g",
+ "置换:中灰 = 0,白 = +%.4g"},
+ {"Downloading...",
+ "正在下载..."},
+ {"Draft brushes: always",
+ "草稿笔刷:始终"},
+ {"Draft brushes: automatic",
+ "草稿笔刷:自动"},
+ {"Draft brushes: never",
+ "草稿笔刷:从不"},
+ {"Drag the dots to move the landmarks (the other side follows). The lines are the loops Quad Remesh will follow.",
+ "拖动圆点移动特征点(另一侧会跟着动)。这些线是四边形重拓扑会遵循的环线。"},
+ {"Drop on a shelf to add",
+ "放到工具栏上即可添加"},
+ {"Drop on a shelf to move, elsewhere to remove",
+ "放到工具栏上即可移动,放到别处即可移除"},
+ {"Effort",
+ "精细度"},
+ {"Either way: Preferences > Interface > Look changes it later.",
+ "无论哪种:之后都可在 偏好设置 > 界面 > 外观 中更改。"},
+ {"Exchange folder: %s",
+ "交换文件夹:%s"},
+ {"Export Bridge file...",
+ "导出 Bridge 文件..."},
+ {"Faces down",
+ "朝下"},
+ {"Faces the camera",
+ "朝向相机"},
+ {"Faces up",
+ "朝上"},
+ {"Fit",
+ "适配"},
+ {"Flip",
+ "翻转"},
+ {"Folder",
+ "文件夹"},
+ {"Folder: %s",
+ "文件夹:%s"},
+ {"Founding Members",
+ "创始会员"},
+ {"Free and open-source digital sculpting.",
+ "免费、开源的数字雕刻。"},
+ {"From image",
+ "从图片"},
+ {"From text",
+ "从文本"},
+ {"From text, Hunyuan3D 3.1 Rapid runs. Choose a Rodin model to use Rodin for text.",
+ "从文本时会运行 Hunyuan3D 3.1 Rapid。若要用 Rodin 处理文本,请选择 Rodin 模型。"},
+ {"Full 3D model (AI reconstruction)",
+ "完整 3D 模型(AI 重建)"},
+ {"Full guide: Windows, macOS, Linux, LM Studio",
+ "完整指南:Windows、macOS、Linux、LM Studio"},
+ {"GLB + blend shapes",
+ "GLB + 混合形状"},
+ {"GPU memory budget (GB)",
+ "GPU 内存预算 (GB)"},
+ {"Gallery",
+ "画廊"},
+ {"Gamma %.2f",
+ "Gamma %.2f"},
+ {"Generate 3D model",
+ "生成 3D 模型"},
+ {"Generate LOD chain",
+ "生成 LOD 链"},
+ {"Generate the shapes first.",
+ "请先生成形状。"},
+ {"Get a key at fal.ai/dashboard/keys",
+ "在 fal.ai/dashboard/keys 获取密钥"},
+ {"Get a key at meshy.ai (API settings)",
+ "在 meshy.ai(API 设置)获取密钥"},
+ {"Getting to know this computer",
+ "正在了解这台电脑"},
+ {"Got it",
+ "知道了"},
+ {"HF token",
+ "HF 令牌"},
+ {"Height",
+ "高度"},
+ {"Height %.2f",
+ "高度 %.2f"},
+ {"Height alpha",
+ "高度 Alpha"},
+ {"Hide layer",
+ "隐藏图层"},
+ {"Hold Alt for the scripting parameters.",
+ "按住 Alt 可查看脚本参数。"},
+ {"Hold Ctrl over any control to see what it does. The User Guide (Shift+F1) explains every tool, and the quick tour shows what is where.",
+ "在任何控件上按住 Ctrl 即可查看其用途。用户指南(Shift+F1)讲解每个工具,快速导览则告诉你各功能的位置。"},
+ {"How to share results",
+ "如何分享结果"},
+ {"Hugging Face - free models",
+ "Hugging Face - 免费模型"},
+ {"Hunyuan3D 2 (Tencent) - free",
+ "Hunyuan3D 2 (Tencent) - 免费"},
+ {"Hunyuan3D 2 mini Turbo (Tencent) - free, fastest",
+ "Hunyuan3D 2 mini Turbo (Tencent) - 免费,最快"},
+ {"Hunyuan3D 2.1 (Tencent) - free, no token",
+ "Hunyuan3D 2.1 (Tencent) - 免费,无需令牌"},
+ {"Hunyuan3D 3.1 Rapid (Tencent) - fast",
+ "Hunyuan3D 3.1 Rapid (Tencent) - 快速"},
+ {"Hunyuan3D licence",
+ "Hunyuan3D 许可"},
+ {"Hunyuan3D models are under the Tencent Hunyuan Community License, which doesn't cover use in the EU, UK or South Korea. There, choose TRELLIS.2 (free token) or another model.",
+ "Hunyuan3D 模型采用 Tencent Hunyuan Community License,不涵盖在欧盟、英国或韩国使用。在这些地区请选择 TRELLIS.2(免费令牌)或其他模型。"},
+ {"Import Bridge file...",
+ "导入 Bridge 文件..."},
+ {"Imports (or updates) the asset in the open Unreal Editor.\nNeeds the Python Editor Script Plugin and Project Settings > Python > Enable Remote Execution.",
+ "在打开的 Unreal Editor 中导入(或更新)资产。\n需要 Python Editor Script Plugin 并启用 Project Settings > Python > Enable Remote Execution。"},
+ {"In ComfyUI use Workflow > Export (API). The Load Image node (title it sf_image) gets the picture; the first mesh it saves is imported. See docs/comfyui.md.",
+ "在 ComfyUI 中使用 Workflow > Export (API)。Load Image 节点(标题设为 sf_image)会收到图片;它保存的第一个网格会被导入。请参阅 docs/comfyui.md。"},
+ {"In ComfyUI use Workflow > Export (API). The node titled sf_prompt gets the description; the first mesh it saves is imported. See docs/comfyui.md.",
+ "在 ComfyUI 中使用 Workflow > Export (API)。标题为 sf_prompt 的节点会收到描述;它保存的第一个网格会被导入。请参阅 docs/comfyui.md。"},
+ {"In Unreal: Project Settings > Plugins > Python > Advanced:\nMulticast Time-To-Live = 1, Multicast Bind Address = 0.0.0.0",
+ "在 Unreal 中:Project Settings > Plugins > Python > Advanced:\nMulticast Time-To-Live = 1,Multicast Bind Address = 0.0.0.0"},
+ {"In high %.2f",
+ "输入高 %.2f"},
+ {"In low %.2f",
+ "输入低 %.2f"},
+ {"Inflates the outline into a rounded blob - good for simple shapes, not characters.",
+ "把轮廓膨胀成圆润的团块:适合简单形状,不适合角色。"},
+ {"Insert a copy of another Part into the active one",
+ "将另一个部件的副本插入当前部件"},
+ {"Install .sfbrush...",
+ "安装 .sfbrush..."},
+ {"Install a brush someone shared: a brush code (sfbrush1:...) or .sfbrush text on the clipboard (Ctrl+V in the viewport)",
+ "安装别人分享的笔刷:剪贴板中的笔刷代码(sfbrush1:...)或 .sfbrush 文本(在视口按 Ctrl+V)"},
+ {"Its .sfbrush file is removed. Copy its brush code first if you might want it back.",
+ "它的 .sfbrush 文件会被删除。如果之后可能想找回,请先复制它的笔刷代码。"},
+ {"Keep my layout",
+ "保留我的布局"},
+ {"KelvinGrab moves like Move with elastic, volume-keeping falloff. KelvinTwist and KelvinScale act where you press: drag right to turn clockwise or swell, left to turn back or pinch. KelvinSnake pulls tapering horns. Detail Clone stamps the VDM brush's map along the stroke: capture one from the model with Capture from view.",
+ "KelvinGrab 像 Move 一样移动,带有弹性且保持体积的衰减。KelvinTwist 和 KelvinScale 作用于按下的位置:向右拖动为顺时针旋转或膨胀,向左为反向旋转或收缩。KelvinSnake 拉出渐细的角。Detail Clone 沿笔触盖印 VDM 笔刷的贴图:用“从视图捕捉”从模型捕捉一张。"},
+ {"LOD chain (GLB per level)",
+ "LOD 链(每级一个 GLB)"},
+ {"LODs",
+ "LOD 数"},
+ {"Laptop / Budget",
+ "笔记本 / 入门"},
+ {"Learns from frames while the view moves.",
+ "在视图移动时从帧中学习。"},
+ {"Legacy",
+ "旧版"},
+ {"Level %.2f",
+ "色阶 %.2f"},
+ {"Light areas rise: logos, coins, emblems, height maps, texture photos.",
+ "亮处隆起:标志、硬币、徽章、高度图、纹理照片。"},
+ {"Linux: allow port %d (TCP and UDP) through the\nfirewall, e.g. sudo ufw allow from\n<your network>/24 to any port %d",
+ "Linux:在防火墙中允许端口 %d(TCP 和 UDP),\n例如 sudo ufw allow from\n<你的网络>/24 to any port %d"},
+ {"Lit Spheres (no folder)",
+ "Lit Sphere(无文件夹)"},
+ {"Live over %s, %.0f fps",
+ "通过 %s 实时连接,%.0f fps"},
+ {"Load",
+ "加载"},
+ {"Loading the brush gallery...",
+ "正在加载笔刷画廊..."},
+ {"Lock against painting",
+ "锁定以防绘制"},
+ {"Make relief",
+ "生成浮雕"},
+ {"Manual overrides",
+ "手动覆盖"},
+ {"Mask brushes (Ctrl)",
+ "遮罩笔刷(Ctrl)"},
+ {"Mask stroke (Ctrl)",
+ "遮罩笔触(Ctrl)"},
+ {"Material Channels",
+ "材质通道"},
+ {"Maybe later",
+ "以后再说"},
+ {"Meshy - paid, your key",
+ "Meshy - 付费,使用你的密钥"},
+ {"Model id",
+ "模型 ID"},
+ {"More starter meshes",
+ "更多起始网格"},
+ {"More",
+ "更多"},
+ {"Motion proxy from (M triangles)",
+ "运动代理起始(百万三角形)"},
+ {"Move to folder",
+ "移到文件夹"},
+ {"My generator command",
+ "我的生成器命令"},
+ {"Name of the new VDM",
+ "新 VDM 的名称"},
+ {"Needs the SculptForge add-on in Blender\n(Help > User Guide > Working with Blender).",
+ "需要 Blender 中的 SculptForge 插件\n(帮助 > 用户指南 > 配合 Blender 使用)。"},
+ {"Needs the SculptForge shelf script in Maya\n(Help > User Guide > Working with Maya).",
+ "需要 Maya 中的 SculptForge 工具架脚本\n(帮助 > 用户指南 > 配合 Maya 使用)。"},
+ {"Neutral grey panels with one orange accent, and the SculptForge layout: menus by task, a status bar and a one-row tool shelf. Your layout stays as it is unless you try it.",
+ "中性灰面板搭配一抹橙色,并采用 SculptForge 布局:按任务分类的菜单、状态栏和单行工具栏。除非你试用,否则布局保持原样。"},
+ {"New folder...",
+ "新建文件夹..."},
+ {"New from Starter Mesh",
+ "从起始网格新建"},
+ {"New to SculptForge? A quick tour",
+ "第一次用 SculptForge?快速导览"},
+ {"New to SculptForge? A two-minute tour shows where everything is.",
+ "第一次用 SculptForge?两分钟的导览告诉你各功能的位置。"},
+ {"Next",
+ "下一步"},
+ {"No UVs: Auto UV makes them",
+ "没有 UV:Auto UV 会生成"},
+ {"No UVs: Tool > Texture Map > Auto UV",
+ "没有 UV:工具 > 纹理贴图 > Auto UV"},
+ {"No alpha matches \"%s\"",
+ "没有匹配“%s”的 Alpha"},
+ {"No brush matches \"%s\"",
+ "没有匹配“%s”的笔刷"},
+ {"No brushes match your search.",
+ "没有匹配搜索的笔刷。"},
+ {"No camera? Open this in the phone's browser:",
+ "没有相机?在手机浏览器中打开:"},
+ {"No default bridge folder on this system;\nBridge files still import and export.",
+ "此系统没有默认的 Bridge 文件夹;\nBridge 文件仍可导入和导出。"},
+ {"No face found: Place by hand, or Finish without face loops.",
+ "未找到面部:请“手动放置”,或“完成”但不使用面部环线。"},
+ {"No menus",
+ "没有菜单"},
+ {"No parameters.",
+ "没有参数。"},
+ {"No thanks",
+ "不用了,谢谢"},
+ {"Noise size %.3f",
+ "噪波大小 %.3f"},
+ {"Normal view",
+ "普通视图"},
+ {"Not enough free memory for %s: it will be skipped. Close other apps first.",
+ "可用内存不足以运行 %s:将会跳过。请先关闭其他应用。"},
+ {"Not now",
+ "暂时不要"},
+ {"Nothing about memberships for a week.",
+ "一周内不再显示会员方案。"},
+ {"Nothing else is sent: no folders, no user name, no model details. Needs the Discord app running.",
+ "不会发送其他数据:没有文件夹、用户名或模型细节。需要 Discord 应用正在运行。"},
+ {"Off (raw mesh)",
+ "关闭(原始网格)"},
+ {"Off in this run: tests, renders and recordings use fixed settings.",
+ "本次运行已关闭:测试、渲染和录制使用固定设置。"},
+ {"Off: choose an exchange folder first.",
+ "已关闭:请先选择交换文件夹。"},
+ {"Offline - showing the gallery from your last visit (%s).",
+ "离线 - 显示你上次访问时的画廊 (%s)。"},
+ {"Offline and instant, but only a puffy blockout of the outline - not a real reconstruction.",
+ "离线且即时,但只是轮廓的膨胀粗模,不是真正的重建。"},
+ {"Offline blockout (inflate silhouette)",
+ "离线粗模(膨胀剪影)"},
+ {"Offline: no outside connections. Updates come only from your studio's channel.",
+ "离线:没有对外连接。更新仅来自你工作室的频道。"},
+ {"On a dense scan with micro levels, big brushes now keep up with the pen and the view turns smoothly right after a stroke.",
+ "在带有微细级别的高密度扫描上,大笔刷现在能跟上笔,笔触结束后视图也能立即流畅旋转。"},
+ {"On the phone: %s",
+ "在手机上:%s"},
+ {"On the phone: Face capture. The front camera tracks 52 expressions on the phone; only the numbers come here.",
+ "在手机上:面部捕捉。前置摄像头在手机上追踪 52 种表情;只有数值会传到这里。"},
+ {"One line of text to share in chat, email or a forum",
+ "一行文本,可分享到聊天、邮件或论坛"},
+ {"Only brushes in your own library can be deleted",
+ "只能删除你自己资源库中的笔刷"},
+ {"Onto %s (%zu tris, UVs)",
+ "到 %s(%zu 个三角形,UV)"},
+ {"Open or drop a .ply capture (Polycam, Luma, Postshot, Scaniverse...) to sculpt against it.",
+ "打开或拖放 .ply 捕捉文件(Polycam、Luma、Postshot、Scaniverse...)作为雕刻参考。"},
+ {"Open the User Guide",
+ "打开用户指南"},
+ {"OpenGL (Y+)",
+ "OpenGL (Y+)"},
+ {"Opens it in SculptForge; the tour waits at the bottom.",
+ "在 SculptForge 中打开;导览会在底部等你。"},
+ {"Opens sculptforge.app/support.html in your browser.",
+ "在浏览器中打开 sculptforge.app/support.html。"},
+ {"Or drop a sketch, concept, logo, photo or height map onto the window.",
+ "或把草图、概念图、标志、照片或高度图拖到窗口上。"},
+ {"Other file (API format)...",
+ "其他文件(API 格式)..."},
+ {"Output folder (default: last export's)",
+ "输出文件夹(默认:上次导出的位置)"},
+ {"Output folder (default: project / library)",
+ "输出文件夹(默认:项目 / 资源库)"},
+ {"Own micro level",
+ "自有微细级别"},
+ {"Own top subdivision level",
+ "自有最高细分级别"},
+ {"Page won't open? Use Firefox on the phone: some Chrome versions block home-network addresses.",
+ "页面打不开?请在手机上使用 Firefox:某些 Chrome 版本会屏蔽家庭网络地址。"},
+ {"Pause",
+ "暂停"},
+ {"Pen detected",
+ "已检测到笔"},
+ {"Performance settings",
+ "性能设置"},
+ {"Phone and computer on the same Wi-Fi. No app to install.",
+ "手机和电脑连接同一个 Wi-Fi。无需安装应用。"},
+ {"Pick a look:",
+ "选择外观:"},
+ {"Play",
+ "播放"},
+ {"Preparing the model for the phone...",
+ "正在为手机准备模型..."},
+ {"Press Esc to stop the run.",
+ "按 Esc 停止运行。"},
+ {"Pressure -",
+ "压力 -"},
+ {"Project page",
+ "项目页面"},
+ {"Projects the image onto the model from the current view as surface detail (uses the active layer).",
+ "从当前视图把图片投射到模型上作为表面细节(使用当前图层)。"},
+ {"Proof mode measures how responsive sculpting is on this computer. For each mesh size it builds a sphere with subdivision levels, then plays a scripted pen stroke through the same code your pen goes through (240 samples a second), with a normal and a large brush, and turns the view.",
+ "证明模式会测量这台电脑上雕刻的响应速度。针对每种网格大小,它会创建带细分级别的球体,再通过与你的笔相同的代码路径(每秒 240 个采样)播放预设的笔触,使用普通和大号笔刷,并旋转视图。"},
+ {"Q W E R: Draw, Move, Scale, Rotate",
+ "Q W E R:绘制、移动、缩放、旋转"},
+ {"Quad Remesh (default): clean quads ready for sculpting and subdividing, with one subdivision level holding the detail. Voxel remesh: an even, watertight triangle surface. Off: the model as the service made it.",
+ "四边形重拓扑(默认):干净的四边面,可直接雕刻和细分,并用一个细分级别保留细节。体素重新网格化:均匀、封闭的三角面。关闭:保留服务生成的原始模型。"},
+ {"Quad Remesh 2",
+ "四边形重拓扑 2"},
+ {"Questions, tips and work in progress: opens the invite in your browser.",
+ "问题、技巧和进行中的作品:在浏览器中打开邀请链接。"},
+ {"Quick shapes (offline)",
+ "快速形状(离线)"},
+ {"Radius %.0f px",
+ "半径 %.0f px"},
+ {"Receive",
+ "接收"},
+ {"Received",
+ "已接收"},
+ {"Receiving %s (%s)",
+ "正在接收 %s (%s)"},
+ {"Reduction",
+ "缩减"},
+ {"Refresh",
+ "刷新"},
+ {"Refresh failed: %s",
+ "刷新失败:%s"},
+ {"Regenerate",
+ "重新生成"},
+ {"Result: %s",
+ "结果:%s"},
+ {"Reveal in folder",
+ "在文件夹中显示"},
+ {"Right-click to share, rename or delete",
+ "右键可分享、重命名或删除"},
+ {"Rodin 2.5 Fast (Hyper3D) - cheaper",
+ "Rodin 2.5 Fast (Hyper3D) - 更便宜"},
+ {"Root sphere",
+ "根球"},
+ {"Run a model on this computer",
+ "在这台电脑上运行模型"},
+ {"Runs a workflow on your own ComfyUI - this computer or a studio GPU server - with whatever models it has (Hunyuan3D, TRELLIS and more). Nothing goes anywhere else.",
+ "在你自己的 ComfyUI(这台电脑或工作室的 GPU 服务器)上用它已有的模型(Hunyuan3D、TRELLIS 等)运行工作流。数据不会发送到其他地方。"},
+ {"Runs free on Hugging Face's shared GPUs with a small daily allowance. A free token (huggingface.co/settings/tokens, read access) raises it; TRELLIS.2 needs one.",
+ "在 Hugging Face 的共享 GPU 上免费运行,每日额度不多。免费令牌(huggingface.co/settings/tokens,读取权限)可提高额度;TRELLIS.2 需要令牌。"},
+ {"Runs on Hugging Face's shared GPUs with your account's free daily allowance.",
+ "使用你账号的每日免费额度,在 Hugging Face 的共享 GPU 上运行。"},
+ {"Same Wi-Fi: not a guest network, not mobile data.",
+ "同一个 Wi-Fi:不是访客网络,也不是移动数据。"},
+ {"Save .sfbrush...",
+ "保存 .sfbrush..."},
+ {"Save as .sfbrush...",
+ "另存为 .sfbrush..."},
+ {"Save settings",
+ "保存设置"},
+ {"Save splats...",
+ "保存 Splat..."},
+ {"Save your brush from Brush Lab, then open a pull request on the gallery.\nOpens %s",
+ "从笔刷实验室保存你的笔刷,再到画廊提交 pull request。\n打开 %s"},
+ {"Saved in %s/Captures. Only devices on your network can connect, and only while this window is open.",
+ "保存在 %s/Captures。只有你网络中的设备能连接,而且仅在此窗口打开时。"},
+ {"Scan with your phone's camera",
+ "用手机相机扫描"},
+ {"Sculpt a stroke to see what it costs.",
+ "雕刻一笔即可看到它的开销。"},
+ {"Sculpt expressions & correctives;\nexported as glTF morph targets.",
+ "雕刻表情和修正形状;\n以 glTF 变形目标导出。"},
+ {"Sculpt to splats",
+ "雕刻到 Splat"},
+ {"SculptForge has a new look",
+ "SculptForge 换了新外观"},
+ {"SculptForge is free. A membership adds betas and early builds, a vote on what we build next, Member Requests (ask for a brush or an alpha) and your name in the credits. %s",
+ "SculptForge 是免费的。会员可抢先获得测试版和早期版本、投票决定接下来开发什么、提出会员请求(索取笔刷或 Alpha),并列名于致谢名单。%s"},
+ {"Search brushes (scales, skin, stone...)",
+ "搜索笔刷(鳞片、皮肤、石头...)"},
+ {"Selection brushes (Ctrl+Shift)",
+ "选择笔刷(Ctrl+Shift)"},
+ {"Selection stroke (Ctrl+Shift)",
+ "选择笔触(Ctrl+Shift)"},
+ {"Send",
+ "发送"},
+ {"Sending to Unreal...",
+ "正在发送到 Unreal..."},
+ {"Server",
+ "服务器"},
+ {"Several networks? Pick the Wi-Fi one under Network.",
+ "有多个网络?在“网络”下选择 Wi-Fi 那个。"},
+ {"Share yours",
+ "分享你的作品"},
+ {"Shift snaps (15 deg, grid, 10%%). Alt+drag the gizmo: move it only. Alt+click the model: pivot there.",
+ "Shift 吸附(15 度、网格、10%%)。Alt+拖动操纵器:只移动操纵器。Alt+单击模型:把轴心设在该处。"},
+ {"Show layer",
+ "显示图层"},
+ {"Show only the active Part",
+ "只显示当前部件"},
+ {"Show the folder",
+ "显示文件夹"},
+ {"Show the memberships",
+ "查看会员方案"},
+ {"Show the other Parts again",
+ "重新显示其他部件"},
+ {"Sign in with GitHub (the member builds' sign-in): no more cards.",
+ "使用 GitHub 登录(会员版本的登录方式):不再显示卡片。"},
+ {"Silhouette blockout",
+ "剪影粗模"},
+ {"Skeletal mesh with %zu morph targets.",
+ "骨骼网格,含 %zu 个变形目标。"},
+ {"Skip",
+ "跳过"},
+ {"Softness %.2f",
+ "柔和度 %.2f"},
+ {"Software (safe mode)",
+ "软件(安全模式)"},
+ {"Splat training needs Brush",
+ "Splat 训练需要 Brush"},
+ {"Splat training needs COLMAP",
+ "Splat 训练需要 COLMAP"},
+ {"Stable Fast 3D (Stability AI) - free, quick and simple",
+ "Stable Fast 3D (Stability AI) - 免费、快速又简单"},
+ {"Stamp from this view",
+ "从此视图盖印"},
+ {"Stamp onto model",
+ "盖印到模型上"},
+ {"Stamp with Drag Stamp (drag sets size and turn) or Slide Stamp. Intensity 50 presses the map at its own size; Alt digs it in. A VDM moves points sideways, so it needs a dense mesh: divide first, and stamp at the highest subdivision level.",
+ "使用 Drag Stamp(拖动设置大小和旋转)或 Slide Stamp 盖印。强度 50 会以贴图本身的大小压印;按 Alt 则向内压。VDM 会侧向移动顶点,所以需要高密度网格:先细分,再在最高细分级别盖印。"},
+ {"Start",
+ "开始"},
+ {"Static mesh with %d LODs.",
+ "静态网格,含 %d 个 LOD。"},
+ {"Step %d: %s (%s)\n%u %s, %s%s\nClick or drag to show the model here; right-click to re-tune",
+ "步骤 %d: %s (%s)\n%u %s,%s%s\n单击或拖动可在此显示模型;右键可重新调整"},
+ {"Stop",
+ "停止"},
+ {"Stop download",
+ "停止下载"},
+ {"Strokes",
+ "笔触"},
+ {"Subdivision limit (M triangles)",
+ "细分上限(百万三角形)"},
+ {"Supporters",
+ "支持者"},
+ {"TRELLIS.2 (Microsoft) - detailed, open model",
+ "TRELLIS.2 (Microsoft) - 细节丰富的开放模型"},
+ {"TRELLIS.2 (Microsoft, MIT) - Best detail (needs token)",
+ "TRELLIS.2 (Microsoft, MIT) - 细节最佳(需要令牌)"},
+ {"TRELLIS.2 needs a free Hugging Face token; without one, Hunyuan3D 2.1 runs instead.",
+ "TRELLIS.2 需要免费的 Hugging Face 令牌;没有令牌时会改用 Hunyuan3D 2.1。"},
+ {"Take the tour",
+ "开始导览"},
+ {"Tap View in AR on the phone: the active Part (or the scene) stands on your desk.",
+ "在手机上点“以 AR 查看”:当前部件(或整个场景)就会站在你的桌上。"},
+ {"Target: automatic",
+ "目标:自动"},
+ {"Ten short slides: remeshing, dynamic topology, retopology, levels, masking, cut, brushes and baking, each with a Show me button.",
+ "十张简短幻灯片:重新网格化、动态拓扑、重拓扑、级别、遮罩、切割、笔刷和烘焙,每张都有“演示给我看”按钮。"},
+ {"Test connection",
+ "测试连接"},
+ {"Text to 3D (AI)",
+ "文本转 3D(AI)"},
+ {"Thank you to everyone who supports SculptForge:",
+ "感谢所有支持 SculptForge 的人:"},
+ {"The %s brush of the same name is used again.",
+ "会再次使用同名的 %s 笔刷。"},
+ {"The %s brush stays as it is; the renamed copy goes into your library.",
+ "%s 笔刷保持原样;重命名的副本会放入你的资源库。"},
+ {"The 2.5 GB model needs about 4 GB of free memory and works without a graphics card (10-20 s per brush on a laptop CPU, a few seconds with a GPU).",
+ "这个 2.5 GB 的模型需要约 4 GB 可用内存,没有显卡也能运行(笔记本 CPU 每个笔刷 10-20 秒,有 GPU 则只需几秒)。"},
+ {"The 52 Apple ARKit blend shapes for rigs and live face capture, fitted to this head.",
+ "52 个 Apple ARKit 混合形状,用于绑定和实时面部捕捉,已贴合这个头部。"},
+ {"The current scene is replaced. Save your work first.",
+ "当前场景会被替换。请先保存你的作品。"},
+ {"The first %d members are Founding Members: a badge, their name in the credits and their price locked for good.",
+ "前 %d 位会员是创始会员:获得徽章、列名于致谢名单,价格永久锁定。"},
+ {"The first %d members, with our thanks for good:",
+ "前 %d 位会员,永远感谢你们:"},
+ {"The gallery is empty.",
+ "画廊是空的。"},
+ {"The page may be closed or the phone asleep: open it again to carry on.",
+ "页面可能已关闭或手机进入休眠:重新打开即可继续。"},
+ {"The phone can't open the page?",
+ "手机打不开页面?"},
+ {"The phone link couldn't start.",
+ "无法启动手机连接。"},
+ {"Theme (64 characters at most)",
+ "主题(最多 64 个字符)"},
+ {"There is no ready-made %s for this computer. %s",
+ "没有适用于这台电脑的现成 %s。%s"},
+ {"Thickness",
+ "厚度"},
+ {"Third-party notices",
+ "第三方声明"},
+ {"This build has no WebRTC, so the phone's face page can't connect.",
+ "此版本没有 WebRTC,因此手机的面部页面无法连接。"},
+ {"This code expires in %.0f s",
+ "此代码将在 %.0f 秒后失效"},
+ {"This computer isn't on a local network.",
+ "这台电脑不在局域网中。"},
+ {"This stays in the Model tooltip.",
+ "这段说明会保留在“模型”的提示中。"},
+ {"Threads (next start)",
+ "线程(下次启动)"},
+ {"Tier: automatic",
+ "等级:自动"},
+ {"Tools",
+ "工具"},
+ {"Train from capture",
+ "从捕捉训练"},
+ {"Trainer: Brush is not installed yet (it is offered when you start).",
+ "训练工具:尚未安装 Brush(开始时会提供安装)。"},
+ {"Training - progress is over the viewport",
+ "训练中 - 进度显示在视口上方"},
+ {"Training splat - %s",
+ "正在训练 Splat - %s"},
+ {"Try an idea below, or ask for changes to the selected brush, like \"sharper\" or \"less buildup\".",
+ "试试下面的点子,或要求修改所选笔刷,例如“更锐利”或“少一点堆积”。"},
+ {"Try it",
+ "试用"},
+ {"Turn 90",
+ "旋转 90"},
+ {"Turn off VPNs on the phone and the computer.",
+ "关闭手机和电脑上的 VPN。"},
+ {"Turn upside down (most captures are)",
+ "上下翻转(大多数捕捉文件都是颠倒的)"},
+ {"Two settings in Preferences > Performance help most on big meshes:",
+ "偏好设置 > 性能 中有两个设置对大型网格最有帮助:"},
+ {"Type a letter to narrow the brushes, then press its orange key",
+ "输入字母缩小笔刷范围,再按它的橙色按键"},
+ {"Type help and press Enter to list the commands.",
+ "输入 help 并按 Enter 即可列出命令。"},
+ {"UVs, no texture yet",
+ "已有 UV,尚无纹理"},
+ {"Unlock (allow painting)",
+ "解除锁定(允许绘制)"},
+ {"Unwrapping...",
+ "正在展开..."},
+ {"Uploads per frame (MB)",
+ "每帧上传量 (MB)"},
+ {"Use",
+ "使用"},
+ {"Using FAL_KEY from the environment.",
+ "使用环境变量中的 FAL_KEY。"},
+ {"Using MESHY_API_KEY from the environment.",
+ "使用环境变量中的 MESHY_API_KEY。"},
+ {"Value %.2f",
+ "数值 %.2f"},
+ {"View budget (M triangles)",
+ "视图预算(百万三角形)"},
+ {"View in AR",
+ "以 AR 查看"},
+ {"View resolution 75%%: draws about half the pixels, for integrated graphics and big screens.",
+ "视图分辨率 75%%:约只绘制一半像素,适合集成显卡和大屏幕。"},
+ {"Voxel remesh",
+ "体素重新网格化"},
+ {"Welcome to SculptForge",
+ "欢迎使用 SculptForge"},
+ {"Windows: allow SculptForge on private networks\nwhen the firewall asks.",
+ "Windows:防火墙询问时,\n请允许 SculptForge 使用专用网络。"},
+ {"Workflow",
+ "工作流"},
+ {"Working...",
+ "处理中..."},
+ {"Workstation",
+ "工作站"},
+ {"Your first sculpt: a cute owl head from this sphere, step by step, in about ten minutes.",
+ "你的第一件雕刻:从这个球一步步做出可爱的猫头鹰头,大约十分钟。"},
+ {"and type the code %.3s %.3s",
+ "并输入代码 %.3s %.3s"},
+ {"by %s - %s - %s",
+ "作者 %s - %s - %s"},
+ {"e.g. bark of an old oak tree",
+ "例如:老橡树的树皮"},
+ {"editable",
+ "可编辑"},
+ {"face_weights isn't in this build: the model doesn't move yet.",
+ "此版本没有 face_weights:模型还不会动。"},
+ {"fal.ai - paid, your key",
+ "fal.ai - 付费,使用你的密钥"},
+ {"help, or a command such as remesh resolution=200",
+ "help,或例如 remesh resolution=200 的命令"},
+ {"high",
+ "高"},
+ {"low",
+ "低"},
+ {"medium",
+ "中"},
+ {"macOS: allow incoming connections for SculptForge\n(System Settings > Network > Firewall).",
+ "macOS:允许 SculptForge 的传入连接\n(系统设置 > 网络 > 防火墙)。"},
+ {"not found (photos without positions need it)",
+ "未找到(没有位置信息的照片需要它)"},
+ {"not found (videos need it)",
+ "未找到(视频需要它)"},
+ {"not installed",
+ "未安装"},
+ {"off",
+ "关闭"},
+ {"opacity %.2f",
+ "不透明度 %.2f"},
+ {"weight %.2f",
+ "权重 %.2f"},
+ {"x%.2f / level",
+ "x%.2f / 级别"},
+ {"triangles",
+ "三角形"},
+ {"vertices",
+ "顶点"},
+ {"Studio mode",
+ "工作室模式"},
+ {"Studio build for %s",
+ "%s 专用的工作室版本"},
};
} // namespace
diff --git a/src/app/I18nSpanish.cpp b/src/app/I18nSpanish.cpp
index 2289a7f4..1133ff63 100644
--- a/src/app/I18nSpanish.cpp
+++ b/src/app/I18nSpanish.cpp
@@ -3817,6 +3817,849 @@ constexpr Entry kSpanish[] = {
"Guarda sobre el proyecto"},
{"Replaces the scene: your unsaved changes would be lost",
"Reemplaza la escena: se perderían los cambios sin guardar"},
+ // --- Labels that were shown without tr() until 11-06 (coverage.py --raw-check), Generate 3D first ---
+ {"%d frames, %.1f s",
+ "%d fotogramas, %.1f s"},
+ {"%s connected",
+ "%s conectado"},
+ {"%s: not seen for %.0f s",
+ "%s: sin verse desde hace %.0f s"},
+ {"Fill Layer",
+ "Capa de relleno"},
+ {"Filter alphas",
+ "Filtrar alphas"},
+ {"Filter shortcuts and gestures",
+ "Filtrar atajos y gestos"},
+ {"New",
+ "Nuevo"},
+ {"Save now",
+ "Guardar ahora"},
+ {"Sculpted before? Take the quick tour",
+ "¿Ya has esculpido? Haz el recorrido rápido"},
+ {"Search actions",
+ "Buscar acciones"},
+ {"Search the guide (Ctrl+F)",
+ "Buscar en la guía (Ctrl+F)"},
+ {"See memberships",
+ "Ver membresías"},
+ {"Show library folder",
+ "Mostrar la carpeta de la biblioteca"},
+ {"Show me",
+ "Muéstramelo"},
+ {"Start from a head",
+ "Empezar con una cabeza"},
+ {"Start the 10-minute lesson",
+ "Empezar la lección de 10 minutos"},
+ {"Waiting for your phone...",
+ "Esperando a tu teléfono..."},
+ {" Designing brush%.*s",
+ " Diseñando el pincel%.*s"},
+ {"%.1f%% of texels found no surface: raise Front / Rear",
+ "El %.1f%% de los téxeles no encontró superficie: sube Delante / Detrás"},
+ {"%d commands",
+ "%d comandos"},
+ {"%d items",
+ "%d elementos"},
+ {"%dx%d in %.1f s from %zu tris",
+ "%dx%d en %.1f s desde %zu triángulos"},
+ {"%dx%d texture, %d layer",
+ "Textura de %dx%d, %d capa"},
+ {"%dx%d texture, %d layers",
+ "Textura de %dx%d, %d capas"},
+ {"%s - %s unpacked",
+ "%s - %s descomprimido"},
+ {"%s %zu branch",
+ "%s %zu rama"},
+ {"%s %zu branches",
+ "%s %zu ramas"},
+ {"%s elapsed",
+ "%s transcurrido"},
+ {"%s elapsed - %d photos",
+ "%s transcurrido - %d fotos"},
+ {"%s elapsed, about %s left",
+ "%s transcurrido, quedan unos %s"},
+ {"%s of memory free now (%s)",
+ "%s de memoria libre ahora (%s)"},
+ {"%s on '%s'",
+ "%s en '%s'"},
+ {"%s: %s, %s, %d%%\nClick: on / off. Right-click: blend and opacity.",
+ "%s: %s, %s, %d%%\nClic: activar / desactivar. Clic derecho: fusión y opacidad."},
+ {"%s: roughness %.2f, metallic %.0f",
+ "%s: rugosidad %.2f, metálico %.0f"},
+ {"%zu points, height %.3g, reach %.2f radii",
+ "%zu puntos, altura %.3g, alcance %.2f radios"},
+ {"%zu result",
+ "%zu resultado"},
+ {"%zu results",
+ "%zu resultados"},
+ {"%zu results (best 50)",
+ "%zu resultados (los 50 mejores)"},
+ {"%zu splats (SH %d)",
+ "%zu splats (SH %d)"},
+ {"(contains) Backspace: undo a letter Enter: first match",
+ "(contiene) Retroceso: borrar una letra Intro: primera coincidencia"},
+ {"(root selected)",
+ "(raíz seleccionada)"},
+ {"(sphere %d selected)",
+ "(esfera %d seleccionada)"},
+ {"1. Install Ollama (or use your package manager, e.g. sudo pacman -S ollama):\n curl -fsSL https://ollama.com/install.sh | sh\n2. Start it if needed:\n sudo systemctl enable --now ollama\n3. Download the model:\n ollama pull qwen3:4b-instruct\n4. Pick Ollama above, then Find models.",
+ "1. Instala Ollama (o usa tu gestor de paquetes, p. ej. sudo pacman -S ollama):\n curl -fsSL https://ollama.com/install.sh | sh\n2. Inícialo si hace falta:\n sudo systemctl enable --now ollama\n3. Descarga el modelo:\n ollama pull qwen3:4b-instruct\n4. Elige Ollama arriba y luego Buscar modelos."},
+ {"1. Install Ollama from ollama.com/download and drag it to Applications.\n2. Download the model (in Terminal):\n ollama pull qwen3:4b-instruct\n3. Ollama runs in the menu bar. Pick Ollama above, then Find models.",
+ "1. Instala Ollama desde ollama.com/download y arrástralo a Aplicaciones.\n2. Descarga el modelo (en Terminal):\n ollama pull qwen3:4b-instruct\n3. Ollama se ejecuta en la barra de menús. Elige Ollama arriba y luego Buscar modelos."},
+ {"1. Install Ollama from ollama.com/download, or in PowerShell:\n winget install Ollama.Ollama\n2. Download the model (in PowerShell):\n ollama pull qwen3:4b-instruct\n3. Ollama runs in the system tray. Pick Ollama above, then Find models.",
+ "1. Instala Ollama desde ollama.com/download, o en PowerShell:\n winget install Ollama.Ollama\n2. Descarga el modelo (en PowerShell):\n ollama pull qwen3:4b-instruct\n3. Ollama se ejecuta en la bandeja del sistema. Elige Ollama arriba y luego Buscar modelos."},
+ {"A live display shows the frame rate, frame times (median, 95th, 99th percentile), how far the stroke trails the pointer, and memory. The result is saved as JSON beside a video of the run:",
+ "Una pantalla en vivo muestra los fotogramas por segundo, los tiempos de fotograma (mediana, percentil 95 y 99), cuánto se retrasa el trazo respecto al puntero y la memoria. El resultado se guarda como JSON junto a un vídeo de la prueba:"},
+ {"A neutral human head with clean quads and eye and mouth loops, ready for a portrait.",
+ "Una cabeza humana neutra con cuadriláteros limpios y bucles de ojos y boca, lista para un retrato."},
+ {"A two-second check of the GPU, the CPU and memory, so big scenes stay smooth. Once, then again only when the graphics card, its driver or SculptForge changes. Nothing leaves this computer.",
+ "Una comprobación de dos segundos de la GPU, la CPU y la memoria, para que las escenas grandes sigan fluidas. Una vez, y de nuevo solo si cambian la tarjeta gráfica, su controlador o SculptForge. Nada sale de este ordenador."},
+ {"AI features:",
+ "Funciones de IA:"},
+ {"AI provider",
+ "Proveedor de IA"},
+ {"About %d quads, then 1 subdivision level",
+ "Unos %d cuadriláteros, luego 1 nivel de subdivisión"},
+ {"Add a brush to the shelf",
+ "Añadir un pincel al estante"},
+ {"Add to bottom shelf",
+ "Añadir al estante inferior"},
+ {"All tags",
+ "Todas las etiquetas"},
+ {"All visible Parts",
+ "Todas las piezas visibles"},
+ {"Android Chrome says \"This site can't be reached\"\n(ERR_TOO_MANY_RETRIES)? Recent Chrome versions can\nblock every home-network address, even your router.\nUse Firefox on the phone instead and allow it to\nreach local devices when it asks.",
+ "¿Chrome en Android dice \"No se puede acceder a este sitio\"\n(ERR_TOO_MANY_RETRIES)? Las versiones recientes de Chrome\npueden bloquear todas las direcciones de la red doméstica,\nincluso el router. Usa Firefox en el teléfono y deja que\nacceda a dispositivos locales cuando lo pida."},
+ {"Any local model or script: {input} = image, {output} = .glb/.obj to write. See docs/generators.md.",
+ "Cualquier modelo o script local: {input} = imagen, {output} = .glb/.obj a escribir. Consulta docs/generators.md."},
+ {"Append another Part first",
+ "Añade antes otra pieza"},
+ {"Auto",
+ "Auto"},
+ {"Back to automatic",
+ "Volver a automático"},
+ {"Back to the tour",
+ "Volver al recorrido"},
+ {"Background Preview (experimental): a big brush shows under the pen while it's still being worked out.",
+ "Vista previa en segundo plano (experimental): un pincel grande se muestra bajo el lápiz mientras aún se calcula."},
+ {"Backspace: undo a letter Enter: first match",
+ "Retroceso: borrar una letra Intro: primera coincidencia"},
+ {"Baked: %s (%.1f s, exports with GLB / USD)",
+ "Horneado: %s (%.1f s, se exporta con GLB / USD)"},
+ {"Be the first: sculptforge.app/support.html",
+ "Sé el primero: sculptforge.app/support.html"},
+ {"Benchmark results",
+ "Resultados del benchmark"},
+ {"Big meshes are faster now",
+ "Las mallas grandes ahora van más rápido"},
+ {"Block out a base mesh from connected spheres, then Make Mesh to sculpt it.",
+ "Bloquea una malla base con esferas conectadas y luego usa Crear malla para esculpirla."},
+ {"Branch from step %zu: %zu step, ending with \"%s\"\nClick to make it the active branch",
+ "Rama desde el paso %zu: %zu paso, termina con \"%s\"\nHaz clic para que sea la rama activa"},
+ {"Branch from step %zu: %zu steps, ending with \"%s\"\nClick to make it the active branch",
+ "Rama desde el paso %zu: %zu pasos, termina con \"%s\"\nHaz clic para que sea la rama activa"},
+ {"Break-up %.2f",
+ "Ruptura %.2f"},
+ {"Bridge folder: %s",
+ "Carpeta de Bridge: %s"},
+ {"Brush Lab",
+ "Laboratorio de pinceles"},
+ {"Brush is a free, open-source Gaussian splat trainer (Apache-2.0) that runs on your graphics card - NVIDIA, AMD, Intel or Apple, no CUDA needed. SculptForge runs it as a separate program.",
+ "Brush es un entrenador de splats gaussianos libre y de código abierto (Apache-2.0) que se ejecuta en tu tarjeta gráfica: NVIDIA, AMD, Intel o Apple, sin necesidad de CUDA. SculptForge lo ejecuta como un programa aparte."},
+ {"Brushes",
+ "Pinceles"},
+ {"Brushes are data only (no code), shared under CC0. Installed brushes join your library.",
+ "Los pinceles son solo datos (sin código), compartidos bajo CC0. Los pinceles instalados se suman a tu biblioteca."},
+ {"Builds a whole model from the description with a generative 3D model, then makes it sculptable.",
+ "Crea un modelo completo a partir de la descripción con un modelo 3D generativo y lo deja listo para esculpir."},
+ {"Builds the whole model - limbs, face, back - from one picture with a reconstruction model, then makes it sculptable. Characters on a transparent background work best.",
+ "Crea el modelo completo (extremidades, cara, espalda) a partir de una sola imagen con un modelo de reconstrucción y lo deja listo para esculpir. Los personajes sobre fondo transparente dan los mejores resultados."},
+ {"Built with SDL 3 (zlib), Dear ImGui (MIT), GLM (MIT), stb (MIT/public domain), ufbx (MIT/public domain), xatlas (MIT), MikkTSpace (zlib), the Inter and JetBrains Mono typefaces (SIL OFL 1.1) and the MIT-licensed colours of the Forge Terminal look's schemes. Quad Remesh follows Instant Meshes (BSD-3-Clause). The phone link uses QR Code generator (MIT), libdatachannel and libjuice (MPL-2.0), usrsctp (BSD-3-Clause) and Mbed TLS (Apache-2.0). Uses libcurl (curl license) where available.",
+ "Creado con SDL 3 (zlib), Dear ImGui (MIT), GLM (MIT), stb (MIT/dominio público), ufbx (MIT/dominio público), xatlas (MIT), MikkTSpace (zlib), las tipografías Inter y JetBrains Mono (SIL OFL 1.1) y los colores con licencia MIT de los esquemas del aspecto Forge Terminal. Quad Remesh sigue a Instant Meshes (BSD-3-Clause). El enlace con el teléfono usa QR Code generator (MIT), libdatachannel y libjuice (MPL-2.0), usrsctp (BSD-3-Clause) y Mbed TLS (Apache-2.0). Usa libcurl (licencia curl) donde está disponible."},
+ {"Bust, full body, hand, foot, ear, eye, stylised and creature heads, torso and bevelled primitives: Library > Tool > Starter meshes.",
+ "Busto, cuerpo entero, mano, pie, oreja, ojo, cabezas estilizadas y de criaturas, torso y primitivas biseladas: Biblioteca > Herramienta > Mallas iniciales."},
+ {"C over the model picks its colour",
+ "C sobre el modelo toma su color"},
+ {"C over the model picks its material",
+ "C sobre el modelo toma su material"},
+ {"COLMAP (BSD licence) works out where each photo was taken, which training needs. SculptForge runs it as a separate program.",
+ "COLMAP (licencia BSD) calcula dónde se tomó cada foto, algo que el entrenamiento necesita. SculptForge lo ejecuta como un programa aparte."},
+ {"Can't reach the brush gallery: %s",
+ "No se puede acceder a la galería de pinceles: %s"},
+ {"Capture again",
+ "Capturar de nuevo"},
+ {"Captures/%s",
+ "Capturas/%s"},
+ {"Centre and scale to the sculpt",
+ "Centrar y escalar a la escultura"},
+ {"Check that the gallery folder exists and has an index.json. Brushes you already installed keep working.",
+ "Comprueba que la carpeta de la galería existe y tiene un index.json. Los pinceles que ya instalaste siguen funcionando."},
+ {"Check your internet connection and try again. Brushes you already installed keep working.",
+ "Comprueba tu conexión a internet y vuelve a intentarlo. Los pinceles que ya instalaste siguen funcionando."},
+ {"Clay at 25, 60 and 120 px, Move, Smooth, a 240 px brush, then an orbit: the scene the website's table uses (same as sculptforge --benchmark %s)",
+ "Clay a 25, 60 y 120 px, Move, Smooth, un pincel de 240 px y luego una órbita: la escena que usa la tabla del sitio web (igual que sculptforge --benchmark %s)"},
+ {"Clean floaters",
+ "Limpiar flotantes"},
+ {"Clear Base",
+ "Borrar base"},
+ {"Clear chat",
+ "Borrar el chat"},
+ {"Clear layer",
+ "Borrar la capa"},
+ {"Click %s.",
+ "Haz clic en %s."},
+ {"Click a level to inspect it in the viewport.",
+ "Haz clic en un nivel para verlo en el visor."},
+ {"ComfyUI - your server",
+ "ComfyUI: tu servidor"},
+ {"Coming from:",
+ "Vienes de:"},
+ {"Community gallery (or a URL / folder for a studio mirror)",
+ "Galería de la comunidad (o una URL / carpeta para una réplica del estudio)"},
+ {"Connected (%s), no face for %.0f s",
+ "Conectado (%s), sin cara desde hace %.0f s"},
+ {"Connected - %d model installed",
+ "Conectado: %d modelo instalado"},
+ {"Connected - %d models installed",
+ "Conectado: %d modelos instalados"},
+ {"Contrast %.2f",
+ "Contraste %.2f"},
+ {"Copy brush code",
+ "Copiar el código del pincel"},
+ {"Copyright (C) 2026 The SculptForge contributors. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3 or later. It comes with ABSOLUTELY NO WARRANTY.",
+ "Copyright (C) 2026 Los colaboradores de SculptForge. Este programa es software libre: puedes redistribuirlo y/o modificarlo según los términos de la Licencia Pública General de GNU, versión 3 o posterior. Se ofrece SIN NINGUNA GARANTÍA."},
+ {"Create",
+ "Crear"},
+ {"Custom bridge folder (optional)",
+ "Carpeta de Bridge personalizada (opcional)"},
+ {"Delete '%s' from your brush library?",
+ "¿Eliminar '%s' de tu biblioteca de pinceles?"},
+ {"Delete Sphere",
+ "Eliminar esfera"},
+ {"Describe a brush the way you'd describe it to another sculptor.",
+ "Describe un pincel como se lo describirías a otro escultor."},
+ {"Describe one object: \"a stylised dragon head with curled horns\", \"a cartoon fox sitting\".",
+ "Describe un objeto: \"una cabeza de dragón estilizada con cuernos curvos\", \"un zorro de dibujos animados sentado\"."},
+ {"Detected %s, %s -> %s",
+ "Detectado %s, %s -> %s"},
+ {"DirectX (Y-)",
+ "DirectX (Y-)"},
+ {"Displacement: mid-grey = 0, white = +%.4g",
+ "Desplazamiento: gris medio = 0, blanco = +%.4g"},
+ {"Downloading...",
+ "Descargando..."},
+ {"Draft brushes: always",
+ "Pinceles de borrador: siempre"},
+ {"Draft brushes: automatic",
+ "Pinceles de borrador: automático"},
+ {"Draft brushes: never",
+ "Pinceles de borrador: nunca"},
+ {"Drag the dots to move the landmarks (the other side follows). The lines are the loops Quad Remesh will follow.",
+ "Arrastra los puntos para mover las referencias (el otro lado los sigue). Las líneas son los bucles que seguirá Quad Remesh."},
+ {"Drop on a shelf to add",
+ "Suelta en un estante para añadir"},
+ {"Drop on a shelf to move, elsewhere to remove",
+ "Suelta en un estante para mover, en otro sitio para quitar"},
+ {"Effort",
+ "Esfuerzo"},
+ {"Either way: Preferences > Interface > Look changes it later.",
+ "En cualquier caso: Preferencias > Interfaz > Aspecto lo cambia más tarde."},
+ {"Exchange folder: %s",
+ "Carpeta de intercambio: %s"},
+ {"Export Bridge file...",
+ "Exportar archivo de Bridge..."},
+ {"Faces down",
+ "Mira hacia abajo"},
+ {"Faces the camera",
+ "Mira a la cámara"},
+ {"Faces up",
+ "Mira hacia arriba"},
+ {"Fit",
+ "Ajustar"},
+ {"Flip",
+ "Voltear"},
+ {"Folder",
+ "Carpeta"},
+ {"Folder: %s",
+ "Carpeta: %s"},
+ {"Founding Members",
+ "Miembros fundadores"},
+ {"Free and open-source digital sculpting.",
+ "Escultura digital libre y de código abierto."},
+ {"From image",
+ "Desde imagen"},
+ {"From text",
+ "Desde texto"},
+ {"From text, Hunyuan3D 3.1 Rapid runs. Choose a Rodin model to use Rodin for text.",
+ "Desde texto se usa Hunyuan3D 3.1 Rapid. Elige un modelo Rodin para usar Rodin con texto."},
+ {"Full 3D model (AI reconstruction)",
+ "Modelo 3D completo (reconstrucción con IA)"},
+ {"Full guide: Windows, macOS, Linux, LM Studio",
+ "Guía completa: Windows, macOS, Linux, LM Studio"},
+ {"GLB + blend shapes",
+ "GLB + blend shapes"},
+ {"GPU memory budget (GB)",
+ "Presupuesto de memoria de GPU (GB)"},
+ {"Gallery",
+ "Galería"},
+ {"Gamma %.2f",
+ "Gamma %.2f"},
+ {"Generate 3D model",
+ "Generar modelo 3D"},
+ {"Generate LOD chain",
+ "Generar cadena de LOD"},
+ {"Generate the shapes first.",
+ "Genera primero las formas."},
+ {"Get a key at fal.ai/dashboard/keys",
+ "Consigue una clave en fal.ai/dashboard/keys"},
+ {"Get a key at meshy.ai (API settings)",
+ "Consigue una clave en meshy.ai (ajustes de API)"},
+ {"Getting to know this computer",
+ "Conociendo este ordenador"},
+ {"Got it",
+ "Entendido"},
+ {"HF token",
+ "Token de HF"},
+ {"Height",
+ "Altura"},
+ {"Height %.2f",
+ "Altura %.2f"},
+ {"Height alpha",
+ "Alpha de altura"},
+ {"Hide layer",
+ "Ocultar la capa"},
+ {"Hold Alt for the scripting parameters.",
+ "Mantén Alt para ver los parámetros de script."},
+ {"Hold Ctrl over any control to see what it does. The User Guide (Shift+F1) explains every tool, and the quick tour shows what is where.",
+ "Mantén Ctrl sobre cualquier control para ver qué hace. La Guía del usuario (Mayús+F1) explica cada herramienta y el recorrido rápido muestra dónde está cada cosa."},
+ {"How to share results",
+ "Cómo compartir los resultados"},
+ {"Hugging Face - free models",
+ "Hugging Face: modelos gratuitos"},
+ {"Hunyuan3D 2 (Tencent) - free",
+ "Hunyuan3D 2 (Tencent): gratis"},
+ {"Hunyuan3D 2 mini Turbo (Tencent) - free, fastest",
+ "Hunyuan3D 2 mini Turbo (Tencent): gratis, el más rápido"},
+ {"Hunyuan3D 2.1 (Tencent) - free, no token",
+ "Hunyuan3D 2.1 (Tencent): gratis, sin token"},
+ {"Hunyuan3D 3.1 Rapid (Tencent) - fast",
+ "Hunyuan3D 3.1 Rapid (Tencent): rápido"},
+ {"Hunyuan3D licence",
+ "Licencia de Hunyuan3D"},
+ {"Hunyuan3D models are under the Tencent Hunyuan Community License, which doesn't cover use in the EU, UK or South Korea. There, choose TRELLIS.2 (free token) or another model.",
+ "Los modelos Hunyuan3D están bajo la Tencent Hunyuan Community License, que no cubre su uso en la UE, el Reino Unido ni Corea del Sur. Allí, elige TRELLIS.2 (token gratuito) u otro modelo."},
+ {"Import Bridge file...",
+ "Importar archivo de Bridge..."},
+ {"Imports (or updates) the asset in the open Unreal Editor.\nNeeds the Python Editor Script Plugin and Project Settings > Python > Enable Remote Execution.",
+ "Importa (o actualiza) el recurso en el Unreal Editor abierto.\nNecesita el Python Editor Script Plugin y Project Settings > Python > Enable Remote Execution."},
+ {"In ComfyUI use Workflow > Export (API). The Load Image node (title it sf_image) gets the picture; the first mesh it saves is imported. See docs/comfyui.md.",
+ "En ComfyUI usa Workflow > Export (API). El nodo Load Image (titúlalo sf_image) recibe la imagen; se importa la primera malla que guarde. Consulta docs/comfyui.md."},
+ {"In ComfyUI use Workflow > Export (API). The node titled sf_prompt gets the description; the first mesh it saves is imported. See docs/comfyui.md.",
+ "En ComfyUI usa Workflow > Export (API). El nodo titulado sf_prompt recibe la descripción; se importa la primera malla que guarde. Consulta docs/comfyui.md."},
+ {"In Unreal: Project Settings > Plugins > Python > Advanced:\nMulticast Time-To-Live = 1, Multicast Bind Address = 0.0.0.0",
+ "En Unreal: Project Settings > Plugins > Python > Advanced:\nMulticast Time-To-Live = 1, Multicast Bind Address = 0.0.0.0"},
+ {"In high %.2f",
+ "Entrada alta %.2f"},
+ {"In low %.2f",
+ "Entrada baja %.2f"},
+ {"Inflates the outline into a rounded blob - good for simple shapes, not characters.",
+ "Infla el contorno en una masa redondeada: va bien para formas sencillas, no para personajes."},
+ {"Insert a copy of another Part into the active one",
+ "Insertar una copia de otra pieza en la activa"},
+ {"Install .sfbrush...",
+ "Instalar .sfbrush..."},
+ {"Install a brush someone shared: a brush code (sfbrush1:...) or .sfbrush text on the clipboard (Ctrl+V in the viewport)",
+ "Instala un pincel que alguien compartió: un código de pincel (sfbrush1:...) o texto .sfbrush en el portapapeles (Ctrl+V en el visor)"},
+ {"Its .sfbrush file is removed. Copy its brush code first if you might want it back.",
+ "Se elimina su archivo .sfbrush. Copia antes su código de pincel si quizá lo quieras recuperar."},
+ {"Keep my layout",
+ "Mantener mi diseño"},
+ {"KelvinGrab moves like Move with elastic, volume-keeping falloff. KelvinTwist and KelvinScale act where you press: drag right to turn clockwise or swell, left to turn back or pinch. KelvinSnake pulls tapering horns. Detail Clone stamps the VDM brush's map along the stroke: capture one from the model with Capture from view.",
+ "KelvinGrab mueve como Move con una caída elástica que conserva el volumen. KelvinTwist y KelvinScale actúan donde presionas: arrastra a la derecha para girar en sentido horario o hinchar, a la izquierda para girar al revés o pellizcar. KelvinSnake estira cuernos que se afinan. Detail Clone estampa el mapa del pincel VDM a lo largo del trazo: captura uno del modelo con Capturar desde la vista."},
+ {"LOD chain (GLB per level)",
+ "Cadena de LOD (un GLB por nivel)"},
+ {"LODs",
+ "LOD"},
+ {"Laptop / Budget",
+ "Portátil / Económico"},
+ {"Learns from frames while the view moves.",
+ "Aprende de los fotogramas mientras la vista se mueve."},
+ {"Legacy",
+ "Clásico"},
+ {"Level %.2f",
+ "Nivel %.2f"},
+ {"Light areas rise: logos, coins, emblems, height maps, texture photos.",
+ "Las zonas claras se elevan: logotipos, monedas, emblemas, mapas de altura, fotos de texturas."},
+ {"Linux: allow port %d (TCP and UDP) through the\nfirewall, e.g. sudo ufw allow from\n<your network>/24 to any port %d",
+ "Linux: permite el puerto %d (TCP y UDP) en el\ncortafuegos, p. ej. sudo ufw allow from\n<tu red>/24 to any port %d"},
+ {"Lit Spheres (no folder)",
+ "Lit Spheres (sin carpeta)"},
+ {"Live over %s, %.0f fps",
+ "En vivo por %s, %.0f fps"},
+ {"Load",
+ "Cargar"},
+ {"Loading the brush gallery...",
+ "Cargando la galería de pinceles..."},
+ {"Lock against painting",
+ "Bloquear contra la pintura"},
+ {"Make relief",
+ "Crear relieve"},
+ {"Manual overrides",
+ "Ajustes manuales"},
+ {"Mask brushes (Ctrl)",
+ "Pinceles de máscara (Ctrl)"},
+ {"Mask stroke (Ctrl)",
+ "Trazo de máscara (Ctrl)"},
+ {"Material Channels",
+ "Canales del material"},
+ {"Maybe later",
+ "Quizá más tarde"},
+ {"Meshy - paid, your key",
+ "Meshy: de pago, tu clave"},
+ {"Model id",
+ "ID del modelo"},
+ {"More starter meshes",
+ "Más mallas iniciales"},
+ {"More",
+ "Más"},
+ {"Motion proxy from (M triangles)",
+ "Proxy de movimiento desde (M triángulos)"},
+ {"Move to folder",
+ "Mover a una carpeta"},
+ {"My generator command",
+ "Mi comando generador"},
+ {"Name of the new VDM",
+ "Nombre del nuevo VDM"},
+ {"Needs the SculptForge add-on in Blender\n(Help > User Guide > Working with Blender).",
+ "Necesita el complemento de SculptForge en Blender\n(Ayuda > Guía del usuario > Trabajar con Blender)."},
+ {"Needs the SculptForge shelf script in Maya\n(Help > User Guide > Working with Maya).",
+ "Necesita el script de estante de SculptForge en Maya\n(Ayuda > Guía del usuario > Trabajar con Maya)."},
+ {"Neutral grey panels with one orange accent, and the SculptForge layout: menus by task, a status bar and a one-row tool shelf. Your layout stays as it is unless you try it.",
+ "Paneles gris neutro con un acento naranja, y el diseño de SculptForge: menús por tarea, una barra de estado y un estante de herramientas de una fila. Tu diseño se queda como está salvo que lo pruebes."},
+ {"New folder...",
+ "Nueva carpeta..."},
+ {"New from Starter Mesh",
+ "Nuevo desde malla inicial"},
+ {"New to SculptForge? A quick tour",
+ "¿Nuevo en SculptForge? Un recorrido rápido"},
+ {"New to SculptForge? A two-minute tour shows where everything is.",
+ "¿Nuevo en SculptForge? Un recorrido de dos minutos muestra dónde está todo."},
+ {"Next",
+ "Siguiente"},
+ {"No UVs: Auto UV makes them",
+ "Sin UV: Auto UV las crea"},
+ {"No UVs: Tool > Texture Map > Auto UV",
+ "Sin UV: Herramienta > Mapa de textura > Auto UV"},
+ {"No alpha matches \"%s\"",
+ "Ningún alpha coincide con \"%s\""},
+ {"No brush matches \"%s\"",
+ "Ningún pincel coincide con \"%s\""},
+ {"No brushes match your search.",
+ "Ningún pincel coincide con tu búsqueda."},
+ {"No camera? Open this in the phone's browser:",
+ "¿Sin cámara? Abre esto en el navegador del teléfono:"},
+ {"No default bridge folder on this system;\nBridge files still import and export.",
+ "No hay carpeta de Bridge predeterminada en este sistema;\nlos archivos de Bridge se siguen importando y exportando."},
+ {"No face found: Place by hand, or Finish without face loops.",
+ "No se encontró ninguna cara: Colocar a mano, o Terminar sin bucles faciales."},
+ {"No menus",
+ "Sin menús"},
+ {"No parameters.",
+ "Sin parámetros."},
+ {"No thanks",
+ "No, gracias"},
+ {"Noise size %.3f",
+ "Tamaño del ruido %.3f"},
+ {"Normal view",
+ "Vista normal"},
+ {"Not enough free memory for %s: it will be skipped. Close other apps first.",
+ "No hay memoria libre suficiente para %s: se omitirá. Cierra antes otras aplicaciones."},
+ {"Not now",
+ "Ahora no"},
+ {"Nothing about memberships for a week.",
+ "Nada sobre membresías durante una semana."},
+ {"Nothing else is sent: no folders, no user name, no model details. Needs the Discord app running.",
+ "No se envía nada más: ni carpetas, ni nombre de usuario, ni detalles del modelo. Necesita la aplicación de Discord abierta."},
+ {"Off (raw mesh)",
+ "Desactivado (malla original)"},
+ {"Off in this run: tests, renders and recordings use fixed settings.",
+ "Desactivado en esta ejecución: las pruebas, renders y grabaciones usan ajustes fijos."},
+ {"Off: choose an exchange folder first.",
+ "Desactivado: elige antes una carpeta de intercambio."},
+ {"Offline - showing the gallery from your last visit (%s).",
+ "Sin conexión: se muestra la galería de tu última visita (%s)."},
+ {"Offline and instant, but only a puffy blockout of the outline - not a real reconstruction.",
+ "Sin conexión e instantáneo, pero solo un bloqueo hinchado del contorno, no una reconstrucción real."},
+ {"Offline blockout (inflate silhouette)",
+ "Bloqueo sin conexión (inflar silueta)"},
+ {"Offline: no outside connections. Updates come only from your studio's channel.",
+ "Sin conexión: ninguna conexión externa. Las actualizaciones llegan solo desde el canal de tu estudio."},
+ {"On a dense scan with micro levels, big brushes now keep up with the pen and the view turns smoothly right after a stroke.",
+ "En un escaneo denso con micro niveles, los pinceles grandes ahora siguen el ritmo del lápiz y la vista gira con fluidez justo después de un trazo."},
+ {"On the phone: %s",
+ "En el teléfono: %s"},
+ {"On the phone: Face capture. The front camera tracks 52 expressions on the phone; only the numbers come here.",
+ "En el teléfono: Captura facial. La cámara frontal sigue 52 expresiones en el teléfono; aquí solo llegan los números."},
+ {"One line of text to share in chat, email or a forum",
+ "Una línea de texto para compartir en un chat, un correo o un foro"},
+ {"Only brushes in your own library can be deleted",
+ "Solo se pueden eliminar los pinceles de tu propia biblioteca"},
+ {"Onto %s (%zu tris, UVs)",
+ "Sobre %s (%zu triángulos, UV)"},
+ {"Open or drop a .ply capture (Polycam, Luma, Postshot, Scaniverse...) to sculpt against it.",
+ "Abre o suelta una captura .ply (Polycam, Luma, Postshot, Scaniverse...) para esculpir sobre ella."},
+ {"Open the User Guide",
+ "Abrir la Guía del usuario"},
+ {"OpenGL (Y+)",
+ "OpenGL (Y+)"},
+ {"Opens it in SculptForge; the tour waits at the bottom.",
+ "Lo abre en SculptForge; el recorrido espera abajo."},
+ {"Opens sculptforge.app/support.html in your browser.",
+ "Abre sculptforge.app/support.html en tu navegador."},
+ {"Or drop a sketch, concept, logo, photo or height map onto the window.",
+ "O suelta un boceto, concepto, logotipo, foto o mapa de altura en la ventana."},
+ {"Other file (API format)...",
+ "Otro archivo (formato API)..."},
+ {"Output folder (default: last export's)",
+ "Carpeta de salida (predeterminada: la de la última exportación)"},
+ {"Output folder (default: project / library)",
+ "Carpeta de salida (predeterminada: proyecto / biblioteca)"},
+ {"Own micro level",
+ "Micro nivel propio"},
+ {"Own top subdivision level",
+ "Nivel de subdivisión superior propio"},
+ {"Page won't open? Use Firefox on the phone: some Chrome versions block home-network addresses.",
+ "¿No se abre la página? Usa Firefox en el teléfono: algunas versiones de Chrome bloquean las direcciones de la red doméstica."},
+ {"Pause",
+ "Pausa"},
+ {"Pen detected",
+ "Lápiz detectado"},
+ {"Performance settings",
+ "Ajustes de rendimiento"},
+ {"Phone and computer on the same Wi-Fi. No app to install.",
+ "Teléfono y ordenador en la misma Wi-Fi. No hay que instalar ninguna aplicación."},
+ {"Pick a look:",
+ "Elige un aspecto:"},
+ {"Play",
+ "Reproducir"},
+ {"Preparing the model for the phone...",
+ "Preparando el modelo para el teléfono..."},
+ {"Press Esc to stop the run.",
+ "Pulsa Esc para detener la prueba."},
+ {"Pressure -",
+ "Presión -"},
+ {"Project page",
+ "Página del proyecto"},
+ {"Projects the image onto the model from the current view as surface detail (uses the active layer).",
+ "Proyecta la imagen sobre el modelo desde la vista actual como detalle de superficie (usa la capa activa)."},
+ {"Proof mode measures how responsive sculpting is on this computer. For each mesh size it builds a sphere with subdivision levels, then plays a scripted pen stroke through the same code your pen goes through (240 samples a second), with a normal and a large brush, and turns the view.",
+ "El modo prueba mide lo ágil que es esculpir en este ordenador. Para cada tamaño de malla crea una esfera con niveles de subdivisión, reproduce un trazo de lápiz programado por el mismo código que usa tu lápiz (240 muestras por segundo), con un pincel normal y uno grande, y gira la vista."},
+ {"Q W E R: Draw, Move, Scale, Rotate",
+ "Q W E R: Dibujar, Mover, Escalar, Rotar"},
+ {"Quad Remesh (default): clean quads ready for sculpting and subdividing, with one subdivision level holding the detail. Voxel remesh: an even, watertight triangle surface. Off: the model as the service made it.",
+ "Quad Remesh (predeterminado): cuadriláteros limpios listos para esculpir y subdividir, con un nivel de subdivisión que guarda el detalle. Remallado vóxel: una superficie de triángulos uniforme y cerrada. Desactivado: el modelo tal como lo hizo el servicio."},
+ {"Quad Remesh 2",
+ "Quad Remesh 2"},
+ {"Questions, tips and work in progress: opens the invite in your browser.",
+ "Preguntas, consejos y trabajos en curso: abre la invitación en tu navegador."},
+ {"Quick shapes (offline)",
+ "Formas rápidas (sin conexión)"},
+ {"Radius %.0f px",
+ "Radio %.0f px"},
+ {"Receive",
+ "Recibir"},
+ {"Received",
+ "Recibido"},
+ {"Receiving %s (%s)",
+ "Recibiendo %s (%s)"},
+ {"Reduction",
+ "Reducción"},
+ {"Refresh",
+ "Actualizar"},
+ {"Refresh failed: %s",
+ "Error al actualizar: %s"},
+ {"Regenerate",
+ "Regenerar"},
+ {"Result: %s",
+ "Resultado: %s"},
+ {"Reveal in folder",
+ "Mostrar en la carpeta"},
+ {"Right-click to share, rename or delete",
+ "Clic derecho para compartir, renombrar o eliminar"},
+ {"Rodin 2.5 Fast (Hyper3D) - cheaper",
+ "Rodin 2.5 Fast (Hyper3D): más barato"},
+ {"Root sphere",
+ "Esfera raíz"},
+ {"Run a model on this computer",
+ "Ejecutar un modelo en este ordenador"},
+ {"Runs a workflow on your own ComfyUI - this computer or a studio GPU server - with whatever models it has (Hunyuan3D, TRELLIS and more). Nothing goes anywhere else.",
+ "Ejecuta un flujo de trabajo en tu propio ComfyUI (este ordenador o un servidor GPU del estudio) con los modelos que tenga (Hunyuan3D, TRELLIS y más). Nada va a ningún otro sitio."},
+ {"Runs free on Hugging Face's shared GPUs with a small daily allowance. A free token (huggingface.co/settings/tokens, read access) raises it; TRELLIS.2 needs one.",
+ "Se ejecuta gratis en las GPU compartidas de Hugging Face con una pequeña cuota diaria. Un token gratuito (huggingface.co/settings/tokens, acceso de lectura) la aumenta; TRELLIS.2 lo necesita."},
+ {"Runs on Hugging Face's shared GPUs with your account's free daily allowance.",
+ "Se ejecuta en las GPU compartidas de Hugging Face con la cuota diaria gratuita de tu cuenta."},
+ {"Same Wi-Fi: not a guest network, not mobile data.",
+ "La misma Wi-Fi: ni una red de invitados ni datos móviles."},
+ {"Save .sfbrush...",
+ "Guardar .sfbrush..."},
+ {"Save as .sfbrush...",
+ "Guardar como .sfbrush..."},
+ {"Save settings",
+ "Guardar ajustes"},
+ {"Save splats...",
+ "Guardar splats..."},
+ {"Save your brush from Brush Lab, then open a pull request on the gallery.\nOpens %s",
+ "Guarda tu pincel desde el Laboratorio de pinceles y luego abre un pull request en la galería.\nAbre %s"},
+ {"Saved in %s/Captures. Only devices on your network can connect, and only while this window is open.",
+ "Se guarda en %s/Captures. Solo pueden conectarse dispositivos de tu red, y solo mientras esta ventana esté abierta."},
+ {"Scan with your phone's camera",
+ "Escanea con la cámara del teléfono"},
+ {"Sculpt a stroke to see what it costs.",
+ "Esculpe un trazo para ver lo que cuesta."},
+ {"Sculpt expressions & correctives;\nexported as glTF morph targets.",
+ "Esculpe expresiones y correctivos;\nse exportan como morph targets de glTF."},
+ {"Sculpt to splats",
+ "Esculpir sobre splats"},
+ {"SculptForge has a new look",
+ "SculptForge tiene un aspecto nuevo"},
+ {"SculptForge is free. A membership adds betas and early builds, a vote on what we build next, Member Requests (ask for a brush or an alpha) and your name in the credits. %s",
+ "SculptForge es gratis. Una membresía añade betas y versiones anticipadas, voto sobre lo próximo que hacemos, Peticiones de miembros (pide un pincel o un alpha) y tu nombre en los créditos. %s"},
+ {"Search brushes (scales, skin, stone...)",
+ "Buscar pinceles (escamas, piel, piedra...)"},
+ {"Selection brushes (Ctrl+Shift)",
+ "Pinceles de selección (Ctrl+Mayús)"},
+ {"Selection stroke (Ctrl+Shift)",
+ "Trazo de selección (Ctrl+Mayús)"},
+ {"Send",
+ "Enviar"},
+ {"Sending to Unreal...",
+ "Enviando a Unreal..."},
+ {"Server",
+ "Servidor"},
+ {"Several networks? Pick the Wi-Fi one under Network.",
+ "¿Varias redes? Elige la de Wi-Fi en Red."},
+ {"Share yours",
+ "Comparte el tuyo"},
+ {"Shift snaps (15 deg, grid, 10%%). Alt+drag the gizmo: move it only. Alt+click the model: pivot there.",
+ "Mayús ajusta (15 grados, cuadrícula, 10%%). Alt+arrastrar el gizmo: solo lo mueve. Alt+clic en el modelo: pivote ahí."},
+ {"Show layer",
+ "Mostrar la capa"},
+ {"Show only the active Part",
+ "Mostrar solo la pieza activa"},
+ {"Show the folder",
+ "Mostrar la carpeta"},
+ {"Show the memberships",
+ "Ver las membresías"},
+ {"Show the other Parts again",
+ "Volver a mostrar las otras piezas"},
+ {"Sign in with GitHub (the member builds' sign-in): no more cards.",
+ "Inicia sesión con GitHub (el inicio de sesión de las versiones para miembros): no más tarjetas."},
+ {"Silhouette blockout",
+ "Bloqueo de silueta"},
+ {"Skeletal mesh with %zu morph targets.",
+ "Malla esquelética con %zu morph targets."},
+ {"Skip",
+ "Omitir"},
+ {"Softness %.2f",
+ "Suavidad %.2f"},
+ {"Software (safe mode)",
+ "Software (modo seguro)"},
+ {"Splat training needs Brush",
+ "El entrenamiento de splats necesita Brush"},
+ {"Splat training needs COLMAP",
+ "El entrenamiento de splats necesita COLMAP"},
+ {"Stable Fast 3D (Stability AI) - free, quick and simple",
+ "Stable Fast 3D (Stability AI): gratis, rápido y sencillo"},
+ {"Stamp from this view",
+ "Estampar desde esta vista"},
+ {"Stamp onto model",
+ "Estampar en el modelo"},
+ {"Stamp with Drag Stamp (drag sets size and turn) or Slide Stamp. Intensity 50 presses the map at its own size; Alt digs it in. A VDM moves points sideways, so it needs a dense mesh: divide first, and stamp at the highest subdivision level.",
+ "Estampa con Drag Stamp (arrastrar fija tamaño y giro) o Slide Stamp. Intensidad 50 presiona el mapa a su propio tamaño; Alt lo hunde. Un VDM mueve los puntos de lado, así que necesita una malla densa: divide primero y estampa en el nivel de subdivisión más alto."},
+ {"Start",
+ "Iniciar"},
+ {"Static mesh with %d LODs.",
+ "Malla estática con %d LOD."},
+ {"Step %d: %s (%s)\n%u %s, %s%s\nClick or drag to show the model here; right-click to re-tune",
+ "Paso %d: %s (%s)\n%u %s, %s%s\nHaz clic o arrastra para ver el modelo aquí; clic derecho para reajustar"},
+ {"Stop",
+ "Detener"},
+ {"Stop download",
+ "Detener la descarga"},
+ {"Strokes",
+ "Trazos"},
+ {"Subdivision limit (M triangles)",
+ "Límite de subdivisión (M triángulos)"},
+ {"Supporters",
+ "Colaboradores"},
+ {"TRELLIS.2 (Microsoft) - detailed, open model",
+ "TRELLIS.2 (Microsoft): detallado, modelo abierto"},
+ {"TRELLIS.2 (Microsoft, MIT) - Best detail (needs token)",
+ "TRELLIS.2 (Microsoft, MIT): el mejor detalle (necesita token)"},
+ {"TRELLIS.2 needs a free Hugging Face token; without one, Hunyuan3D 2.1 runs instead.",
+ "TRELLIS.2 necesita un token gratuito de Hugging Face; sin él se usa Hunyuan3D 2.1."},
+ {"Take the tour",
+ "Hacer el recorrido"},
+ {"Tap View in AR on the phone: the active Part (or the scene) stands on your desk.",
+ "Toca Ver en RA en el teléfono: la pieza activa (o la escena) aparece sobre tu mesa."},
+ {"Target: automatic",
+ "Objetivo: automático"},
+ {"Ten short slides: remeshing, dynamic topology, retopology, levels, masking, cut, brushes and baking, each with a Show me button.",
+ "Diez diapositivas breves: remallado, topología dinámica, retopología, niveles, máscaras, corte, pinceles y horneado, cada una con un botón Muéstramelo."},
+ {"Test connection",
+ "Probar la conexión"},
+ {"Text to 3D (AI)",
+ "Texto a 3D (IA)"},
+ {"Thank you to everyone who supports SculptForge:",
+ "Gracias a todas las personas que apoyan SculptForge:"},
+ {"The %s brush of the same name is used again.",
+ "Se vuelve a usar el pincel %s del mismo nombre."},
+ {"The %s brush stays as it is; the renamed copy goes into your library.",
+ "El pincel %s se queda como está; la copia renombrada va a tu biblioteca."},
+ {"The 2.5 GB model needs about 4 GB of free memory and works without a graphics card (10-20 s per brush on a laptop CPU, a few seconds with a GPU).",
+ "El modelo de 2,5 GB necesita unos 4 GB de memoria libre y funciona sin tarjeta gráfica (10-20 s por pincel en la CPU de un portátil, unos segundos con GPU)."},
+ {"The 52 Apple ARKit blend shapes for rigs and live face capture, fitted to this head.",
+ "Las 52 blend shapes de Apple ARKit para rigs y captura facial en vivo, ajustadas a esta cabeza."},
+ {"The current scene is replaced. Save your work first.",
+ "Se reemplaza la escena actual. Guarda antes tu trabajo."},
+ {"The first %d members are Founding Members: a badge, their name in the credits and their price locked for good.",
+ "Los primeros %d miembros son Miembros fundadores: una insignia, su nombre en los créditos y su precio fijo para siempre."},
+ {"The first %d members, with our thanks for good:",
+ "Los primeros %d miembros, con nuestro agradecimiento para siempre:"},
+ {"The gallery is empty.",
+ "La galería está vacía."},
+ {"The page may be closed or the phone asleep: open it again to carry on.",
+ "Puede que la página esté cerrada o el teléfono en reposo: ábrela otra vez para seguir."},
+ {"The phone can't open the page?",
+ "¿El teléfono no puede abrir la página?"},
+ {"The phone link couldn't start.",
+ "No se pudo iniciar el enlace con el teléfono."},
+ {"Theme (64 characters at most)",
+ "Tema (64 caracteres como máximo)"},
+ {"There is no ready-made %s for this computer. %s",
+ "No hay un %s listo para este ordenador. %s"},
+ {"Thickness",
+ "Grosor"},
+ {"Third-party notices",
+ "Avisos de terceros"},
+ {"This build has no WebRTC, so the phone's face page can't connect.",
+ "Esta versión no tiene WebRTC, así que la página facial del teléfono no puede conectarse."},
+ {"This code expires in %.0f s",
+ "Este código caduca en %.0f s"},
+ {"This computer isn't on a local network.",
+ "Este ordenador no está en una red local."},
+ {"This stays in the Model tooltip.",
+ "Esto queda en la información sobre Modelo."},
+ {"Threads (next start)",
+ "Hilos (próximo inicio)"},
+ {"Tier: automatic",
+ "Nivel: automático"},
+ {"Tools",
+ "Herramientas"},
+ {"Train from capture",
+ "Entrenar desde captura"},
+ {"Trainer: Brush is not installed yet (it is offered when you start).",
+ "Entrenador: Brush aún no está instalado (se ofrece al empezar)."},
+ {"Training - progress is over the viewport",
+ "Entrenando: el progreso se muestra sobre el visor"},
+ {"Training splat - %s",
+ "Entrenando splat - %s"},
+ {"Try an idea below, or ask for changes to the selected brush, like \"sharper\" or \"less buildup\".",
+ "Prueba una idea de abajo o pide cambios al pincel seleccionado, como \"más nítido\" o \"menos acumulación\"."},
+ {"Try it",
+ "Probarlo"},
+ {"Turn 90",
+ "Girar 90"},
+ {"Turn off VPNs on the phone and the computer.",
+ "Desactiva las VPN del teléfono y del ordenador."},
+ {"Turn upside down (most captures are)",
+ "Dar la vuelta (la mayoría de capturas lo están)"},
+ {"Two settings in Preferences > Performance help most on big meshes:",
+ "Dos ajustes de Preferencias > Rendimiento son los que más ayudan con mallas grandes:"},
+ {"Type a letter to narrow the brushes, then press its orange key",
+ "Escribe una letra para filtrar los pinceles y luego pulsa su tecla naranja"},
+ {"Type help and press Enter to list the commands.",
+ "Escribe help y pulsa Intro para ver la lista de comandos."},
+ {"UVs, no texture yet",
+ "UV, aún sin textura"},
+ {"Unlock (allow painting)",
+ "Desbloquear (permitir pintar)"},
+ {"Unwrapping...",
+ "Desplegando..."},
+ {"Uploads per frame (MB)",
+ "Subidas por fotograma (MB)"},
+ {"Use",
+ "Usar"},
+ {"Using FAL_KEY from the environment.",
+ "Se usa FAL_KEY del entorno."},
+ {"Using MESHY_API_KEY from the environment.",
+ "Se usa MESHY_API_KEY del entorno."},
+ {"Value %.2f",
+ "Valor %.2f"},
+ {"View budget (M triangles)",
+ "Presupuesto de la vista (M triángulos)"},
+ {"View in AR",
+ "Ver en RA"},
+ {"View resolution 75%%: draws about half the pixels, for integrated graphics and big screens.",
+ "Resolución de vista 75%%: dibuja más o menos la mitad de los píxeles, para gráficos integrados y pantallas grandes."},
+ {"Voxel remesh",
+ "Remallado vóxel"},
+ {"Welcome to SculptForge",
+ "Te damos la bienvenida a SculptForge"},
+ {"Windows: allow SculptForge on private networks\nwhen the firewall asks.",
+ "Windows: permite SculptForge en redes privadas\ncuando el cortafuegos lo pregunte."},
+ {"Workflow",
+ "Flujo de trabajo"},
+ {"Working...",
+ "Trabajando..."},
+ {"Workstation",
+ "Estación de trabajo"},
+ {"Your first sculpt: a cute owl head from this sphere, step by step, in about ten minutes.",
+ "Tu primera escultura: una tierna cabeza de búho a partir de esta esfera, paso a paso, en unos diez minutos."},
+ {"and type the code %.3s %.3s",
+ "y escribe el código %.3s %.3s"},
+ {"by %s - %s - %s",
+ "por %s - %s - %s"},
+ {"e.g. bark of an old oak tree",
+ "p. ej. corteza de un roble viejo"},
+ {"editable",
+ "editable"},
+ {"face_weights isn't in this build: the model doesn't move yet.",
+ "face_weights no está en esta versión: el modelo aún no se mueve."},
+ {"fal.ai - paid, your key",
+ "fal.ai: de pago, tu clave"},
+ {"help, or a command such as remesh resolution=200",
+ "help, o un comando como remesh resolution=200"},
+ {"high",
+ "alto"},
+ {"low",
+ "bajo"},
+ {"medium",
+ "medio"},
+ {"macOS: allow incoming connections for SculptForge\n(System Settings > Network > Firewall).",
+ "macOS: permite las conexiones entrantes de SculptForge\n(Ajustes del Sistema > Red > Firewall)."},
+ {"not found (photos without positions need it)",
+ "no encontrado (las fotos sin posiciones lo necesitan)"},
+ {"not found (videos need it)",
+ "no encontrado (los vídeos lo necesitan)"},
+ {"not installed",
+ "no instalado"},
+ {"off",
+ "desactivado"},
+ {"opacity %.2f",
+ "opacidad %.2f"},
+ {"weight %.2f",
+ "peso %.2f"},
+ {"x%.2f / level",
+ "x%.2f / nivel"},
+ {"triangles",
+ "triángulos"},
+ {"vertices",
+ "vértices"},
+ {"Studio mode",
+ "Modo estudio"},
+ {"Studio build for %s",
+ "Versión de estudio para %s"},
};
} // namespace
diff --git a/src/app/I18nTraditionalChinese.cpp b/src/app/I18nTraditionalChinese.cpp
index 2c4a040c..f42fdc8c 100644
--- a/src/app/I18nTraditionalChinese.cpp
+++ b/src/app/I18nTraditionalChinese.cpp
@@ -3343,6 +3343,849 @@ constexpr Entry kTraditionalChinese[] = {
"會覆蓋儲存專案"},
{"Replaces the scene: your unsaved changes would be lost",
"會取代場景:未儲存的變更將會遺失"},
+ // --- Labels that were shown without tr() until 11-06 (coverage.py --raw-check), Generate 3D first ---
+ {"%d frames, %.1f s",
+ "%d 影格,%.1f 秒"},
+ {"%s connected",
+ "%s 已連線"},
+ {"%s: not seen for %.0f s",
+ "%s: 已 %.0f 秒未偵測到"},
+ {"Fill Layer",
+ "填充圖層"},
+ {"Filter alphas",
+ "篩選 Alpha"},
+ {"Filter shortcuts and gestures",
+ "篩選快速鍵與手勢"},
+ {"New",
+ "新增"},
+ {"Save now",
+ "立即儲存"},
+ {"Sculpted before? Take the quick tour",
+ "雕刻過嗎?看看快速導覽"},
+ {"Search actions",
+ "搜尋動作"},
+ {"Search the guide (Ctrl+F)",
+ "搜尋指南(Ctrl+F)"},
+ {"See memberships",
+ "查看會員方案"},
+ {"Show library folder",
+ "顯示資源庫資料夾"},
+ {"Show me",
+ "示範給我看"},
+ {"Start from a head",
+ "從頭部開始"},
+ {"Start the 10-minute lesson",
+ "開始 10 分鐘課程"},
+ {"Waiting for your phone...",
+ "正在等待你的手機..."},
+ {" Designing brush%.*s",
+ " 正在設計筆刷%.*s"},
+ {"%.1f%% of texels found no surface: raise Front / Rear",
+ "%.1f%% 的紋素找不到表面:請提高前方 / 後方"},
+ {"%d commands",
+ "%d 個指令"},
+ {"%d items",
+ "%d 個項目"},
+ {"%dx%d in %.1f s from %zu tris",
+ "%dx%d,耗時 %.1f 秒,來自 %zu 個三角形"},
+ {"%dx%d texture, %d layer",
+ "%dx%d 紋理,%d 個圖層"},
+ {"%dx%d texture, %d layers",
+ "%dx%d 紋理,%d 個圖層"},
+ {"%s - %s unpacked",
+ "%s - 解壓後 %s"},
+ {"%s %zu branch",
+ "%s %zu 個分支"},
+ {"%s %zu branches",
+ "%s %zu 個分支"},
+ {"%s elapsed",
+ "已用時 %s"},
+ {"%s elapsed - %d photos",
+ "已用時 %s - %d 張照片"},
+ {"%s elapsed, about %s left",
+ "已用時 %s,約剩 %s"},
+ {"%s of memory free now (%s)",
+ "目前可用記憶體 %s (%s)"},
+ {"%s on '%s'",
+ "%s 於「%s」"},
+ {"%s: %s, %s, %d%%\nClick: on / off. Right-click: blend and opacity.",
+ "%s: %s,%s,%d%%\n點一下:開啟 / 關閉。按右鍵:混合與不透明度。"},
+ {"%s: roughness %.2f, metallic %.0f",
+ "%s: 粗糙度 %.2f,金屬度 %.0f"},
+ {"%zu points, height %.3g, reach %.2f radii",
+ "%zu 個點,高度 %.3g,範圍 %.2f 倍半徑"},
+ {"%zu result",
+ "%zu 個結果"},
+ {"%zu results",
+ "%zu 個結果"},
+ {"%zu results (best 50)",
+ "%zu 個結果(前 50 個)"},
+ {"%zu splats (SH %d)",
+ "%zu 個 Splat (SH %d)"},
+ {"(contains) Backspace: undo a letter Enter: first match",
+ "(包含) Backspace:刪除一個字母 Enter:第一個符合項"},
+ {"(root selected)",
+ "(已選取根球)"},
+ {"(sphere %d selected)",
+ "(已選取球 %d)"},
+ {"1. Install Ollama (or use your package manager, e.g. sudo pacman -S ollama):\n curl -fsSL https://ollama.com/install.sh | sh\n2. Start it if needed:\n sudo systemctl enable --now ollama\n3. Download the model:\n ollama pull qwen3:4b-instruct\n4. Pick Ollama above, then Find models.",
+ "1. 安裝 Ollama(或使用套件管理員,例如 sudo pacman -S ollama):\n curl -fsSL https://ollama.com/install.sh | sh\n2. 視需要啟動它:\n sudo systemctl enable --now ollama\n3. 下載模型:\n ollama pull qwen3:4b-instruct\n4. 在上方選擇 Ollama,再按「尋找模型」。"},
+ {"1. Install Ollama from ollama.com/download and drag it to Applications.\n2. Download the model (in Terminal):\n ollama pull qwen3:4b-instruct\n3. Ollama runs in the menu bar. Pick Ollama above, then Find models.",
+ "1. 從 ollama.com/download 安裝 Ollama,並拖到「應用程式」。\n2. 下載模型(在「終端機」中):\n ollama pull qwen3:4b-instruct\n3. Ollama 在選單列中執行。在上方選擇 Ollama,再按「尋找模型」。"},
+ {"1. Install Ollama from ollama.com/download, or in PowerShell:\n winget install Ollama.Ollama\n2. Download the model (in PowerShell):\n ollama pull qwen3:4b-instruct\n3. Ollama runs in the system tray. Pick Ollama above, then Find models.",
+ "1. 從 ollama.com/download 安裝 Ollama,或在 PowerShell 中:\n winget install Ollama.Ollama\n2. 下載模型(在 PowerShell 中):\n ollama pull qwen3:4b-instruct\n3. Ollama 在系統匣中執行。在上方選擇 Ollama,再按「尋找模型」。"},
+ {"A live display shows the frame rate, frame times (median, 95th, 99th percentile), how far the stroke trails the pointer, and memory. The result is saved as JSON beside a video of the run:",
+ "即時顯示影格率、影格時間(中位數、第 95 與第 99 百分位)、筆觸落後指標的距離及記憶體。結果會存成 JSON,並附上這次執行的影片:"},
+ {"A neutral human head with clean quads and eye and mouth loops, ready for a portrait.",
+ "中性的人類頭部,四邊面乾淨,眼部和嘴部有環狀佈線,可直接用於肖像。"},
+ {"A two-second check of the GPU, the CPU and memory, so big scenes stay smooth. Once, then again only when the graphics card, its driver or SculptForge changes. Nothing leaves this computer.",
+ "兩秒鐘檢查 GPU、CPU 和記憶體,讓大型場景保持流暢。只做一次,之後只在顯示卡、驅動程式或 SculptForge 變更時再做。不會有任何資料離開這台電腦。"},
+ {"AI features:",
+ "AI 功能:"},
+ {"AI provider",
+ "AI 供應商"},
+ {"About %d quads, then 1 subdivision level",
+ "約 %d 個四邊面,再加 1 個細分層級"},
+ {"Add a brush to the shelf",
+ "將筆刷加入工具列"},
+ {"Add to bottom shelf",
+ "加入底部工具列"},
+ {"All tags",
+ "所有標籤"},
+ {"All visible Parts",
+ "所有可見部件"},
+ {"Android Chrome says \"This site can't be reached\"\n(ERR_TOO_MANY_RETRIES)? Recent Chrome versions can\nblock every home-network address, even your router.\nUse Firefox on the phone instead and allow it to\nreach local devices when it asks.",
+ "Android 版 Chrome 顯示「無法連上這個網站」\n(ERR_TOO_MANY_RETRIES)?新版 Chrome 可能\n封鎖所有家用網路位址,連路由器也不例外。\n請改用手機上的 Firefox,並在它詢問時\n允許存取本機裝置。"},
+ {"Any local model or script: {input} = image, {output} = .glb/.obj to write. See docs/generators.md.",
+ "任何本機模型或指令碼:{input} = 圖片,{output} = 要寫入的 .glb/.obj。請參閱 docs/generators.md。"},
+ {"Append another Part first",
+ "請先附加另一個部件"},
+ {"Auto",
+ "自動"},
+ {"Back to automatic",
+ "回到自動"},
+ {"Back to the tour",
+ "回到導覽"},
+ {"Background Preview (experimental): a big brush shows under the pen while it's still being worked out.",
+ "背景預覽(實驗性):大筆刷在計算完成前就先顯示在筆下。"},
+ {"Backspace: undo a letter Enter: first match",
+ "Backspace:刪除一個字母 Enter:第一個符合項"},
+ {"Baked: %s (%.1f s, exports with GLB / USD)",
+ "已烘焙:%s (%.1f 秒,隨 GLB / USD 匯出)"},
+ {"Be the first: sculptforge.app/support.html",
+ "成為第一位:sculptforge.app/support.html"},
+ {"Benchmark results",
+ "效能基準測試結果"},
+ {"Big meshes are faster now",
+ "大型網格現在更快了"},
+ {"Block out a base mesh from connected spheres, then Make Mesh to sculpt it.",
+ "用相連的球體搭出基礎網格,再按「建立網格」開始雕刻。"},
+ {"Branch from step %zu: %zu step, ending with \"%s\"\nClick to make it the active branch",
+ "從步驟 %zu 分支:%zu 個步驟,結尾為「%s」\n點一下設為使用中的分支"},
+ {"Branch from step %zu: %zu steps, ending with \"%s\"\nClick to make it the active branch",
+ "從步驟 %zu 分支:%zu 個步驟,結尾為「%s」\n點一下設為使用中的分支"},
+ {"Break-up %.2f",
+ "打散 %.2f"},
+ {"Bridge folder: %s",
+ "Bridge 資料夾:%s"},
+ {"Brush Lab",
+ "筆刷實驗室"},
+ {"Brush is a free, open-source Gaussian splat trainer (Apache-2.0) that runs on your graphics card - NVIDIA, AMD, Intel or Apple, no CUDA needed. SculptForge runs it as a separate program.",
+ "Brush 是免費、開放原始碼的高斯 Splat 訓練工具(Apache-2.0),在你的顯示卡上執行:NVIDIA、AMD、Intel 或 Apple 皆可,不需要 CUDA。SculptForge 會把它當作獨立程式執行。"},
+ {"Brushes",
+ "筆刷"},
+ {"Brushes are data only (no code), shared under CC0. Installed brushes join your library.",
+ "筆刷只是資料(不含程式碼),以 CC0 分享。安裝的筆刷會加入你的資源庫。"},
+ {"Builds a whole model from the description with a generative 3D model, then makes it sculptable.",
+ "用生成式 3D 模型依描述建立完整模型,再轉為可雕刻的網格。"},
+ {"Builds the whole model - limbs, face, back - from one picture with a reconstruction model, then makes it sculptable. Characters on a transparent background work best.",
+ "用重建模型從一張圖片建立完整模型(四肢、臉部、背面),再轉為可雕刻的網格。透明背景上的角色效果最好。"},
+ {"Built with SDL 3 (zlib), Dear ImGui (MIT), GLM (MIT), stb (MIT/public domain), ufbx (MIT/public domain), xatlas (MIT), MikkTSpace (zlib), the Inter and JetBrains Mono typefaces (SIL OFL 1.1) and the MIT-licensed colours of the Forge Terminal look's schemes. Quad Remesh follows Instant Meshes (BSD-3-Clause). The phone link uses QR Code generator (MIT), libdatachannel and libjuice (MPL-2.0), usrsctp (BSD-3-Clause) and Mbed TLS (Apache-2.0). Uses libcurl (curl license) where available.",
+ "使用 SDL 3 (zlib)、Dear ImGui (MIT)、GLM (MIT)、stb (MIT/公有領域)、ufbx (MIT/公有領域)、xatlas (MIT)、MikkTSpace (zlib)、Inter 與 JetBrains Mono 字體 (SIL OFL 1.1),以及 Forge Terminal 外觀配色中採 MIT 授權的顏色建置。四邊形重拓樸依循 Instant Meshes (BSD-3-Clause)。手機連線使用 QR Code generator (MIT)、libdatachannel 與 libjuice (MPL-2.0)、usrsctp (BSD-3-Clause) 和 Mbed TLS (Apache-2.0)。在可用時使用 libcurl (curl 授權)。"},
+ {"Bust, full body, hand, foot, ear, eye, stylised and creature heads, torso and bevelled primitives: Library > Tool > Starter meshes.",
+ "半身像、全身、手、腳、耳朵、眼睛、風格化與生物頭部、軀幹及倒角基本形:資源庫 > 工具 > 起始網格。"},
+ {"C over the model picks its colour",
+ "在模型上按 C 可吸取顏色"},
+ {"C over the model picks its material",
+ "在模型上按 C 可吸取材質"},
+ {"COLMAP (BSD licence) works out where each photo was taken, which training needs. SculptForge runs it as a separate program.",
+ "COLMAP(BSD 授權)會算出每張照片的拍攝位置,這是訓練所需的。SculptForge 會把它當作獨立程式執行。"},
+ {"Can't reach the brush gallery: %s",
+ "無法連上筆刷藝廊:%s"},
+ {"Capture again",
+ "重新擷取"},
+ {"Captures/%s",
+ "Captures/%s"},
+ {"Centre and scale to the sculpt",
+ "置中並縮放到雕刻模型"},
+ {"Check that the gallery folder exists and has an index.json. Brushes you already installed keep working.",
+ "請確認藝廊資料夾存在且含有 index.json。已安裝的筆刷仍可使用。"},
+ {"Check your internet connection and try again. Brushes you already installed keep working.",
+ "請檢查網路連線後再試一次。已安裝的筆刷仍可使用。"},
+ {"Clay at 25, 60 and 120 px, Move, Smooth, a 240 px brush, then an orbit: the scene the website's table uses (same as sculptforge --benchmark %s)",
+ "Clay 25、60 與 120 px,Move、Smooth、240 px 筆刷,再環繞檢視:網站表格所用的場景(等同 sculptforge --benchmark %s)"},
+ {"Clean floaters",
+ "清除漂浮點"},
+ {"Clear Base",
+ "清除基礎"},
+ {"Clear chat",
+ "清除對話"},
+ {"Clear layer",
+ "清除圖層"},
+ {"Click %s.",
+ "點一下 %s。"},
+ {"Click a level to inspect it in the viewport.",
+ "點一下層級即可在檢視區中查看。"},
+ {"ComfyUI - your server",
+ "ComfyUI - 你的伺服器"},
+ {"Coming from:",
+ "你之前使用:"},
+ {"Community gallery (or a URL / folder for a studio mirror)",
+ "社群藝廊(或工作室鏡像的 URL / 資料夾)"},
+ {"Connected (%s), no face for %.0f s",
+ "已連線 (%s),已 %.0f 秒沒有偵測到臉"},
+ {"Connected - %d model installed",
+ "已連線 - 已安裝 %d 個模型"},
+ {"Connected - %d models installed",
+ "已連線 - 已安裝 %d 個模型"},
+ {"Contrast %.2f",
+ "對比 %.2f"},
+ {"Copy brush code",
+ "複製筆刷代碼"},
+ {"Copyright (C) 2026 The SculptForge contributors. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3 or later. It comes with ABSOLUTELY NO WARRANTY.",
+ "Copyright (C) 2026 SculptForge 貢獻者。本程式為自由軟體:你可以依 GNU 通用公共授權條款第 3 版或更新版本重新散布及/或修改。本程式完全不提供任何擔保。"},
+ {"Create",
+ "建立"},
+ {"Custom bridge folder (optional)",
+ "自訂 Bridge 資料夾(選用)"},
+ {"Delete '%s' from your brush library?",
+ "要從筆刷資源庫刪除「%s」嗎?"},
+ {"Delete Sphere",
+ "刪除球體"},
+ {"Describe a brush the way you'd describe it to another sculptor.",
+ "像向另一位雕刻師說明那樣描述筆刷。"},
+ {"Describe one object: \"a stylised dragon head with curled horns\", \"a cartoon fox sitting\".",
+ "描述一個物件:「有捲角的風格化龍頭」、「坐著的卡通狐狸」。"},
+ {"Detected %s, %s -> %s",
+ "偵測到 %s,%s -> %s"},
+ {"DirectX (Y-)",
+ "DirectX (Y-)"},
+ {"Displacement: mid-grey = 0, white = +%.4g",
+ "置換:中灰 = 0,白 = +%.4g"},
+ {"Downloading...",
+ "正在下載..."},
+ {"Draft brushes: always",
+ "草稿筆刷:一律"},
+ {"Draft brushes: automatic",
+ "草稿筆刷:自動"},
+ {"Draft brushes: never",
+ "草稿筆刷:永不"},
+ {"Drag the dots to move the landmarks (the other side follows). The lines are the loops Quad Remesh will follow.",
+ "拖曳圓點移動特徵點(另一側會跟著動)。這些線是四邊形重拓樸會依循的環狀線。"},
+ {"Drop on a shelf to add",
+ "放到工具列上即可加入"},
+ {"Drop on a shelf to move, elsewhere to remove",
+ "放到工具列上即可移動,放到別處即可移除"},
+ {"Effort",
+ "精細度"},
+ {"Either way: Preferences > Interface > Look changes it later.",
+ "無論哪種:之後都可在 偏好設定 > 介面 > 外觀 中更改。"},
+ {"Exchange folder: %s",
+ "交換資料夾:%s"},
+ {"Export Bridge file...",
+ "匯出 Bridge 檔案..."},
+ {"Faces down",
+ "朝下"},
+ {"Faces the camera",
+ "朝向攝影機"},
+ {"Faces up",
+ "朝上"},
+ {"Fit",
+ "符合"},
+ {"Flip",
+ "翻轉"},
+ {"Folder",
+ "資料夾"},
+ {"Folder: %s",
+ "資料夾:%s"},
+ {"Founding Members",
+ "創始會員"},
+ {"Free and open-source digital sculpting.",
+ "免費、開放原始碼的數位雕刻。"},
+ {"From image",
+ "從圖片"},
+ {"From text",
+ "從文字"},
+ {"From text, Hunyuan3D 3.1 Rapid runs. Choose a Rodin model to use Rodin for text.",
+ "從文字時會執行 Hunyuan3D 3.1 Rapid。若要以 Rodin 處理文字,請選擇 Rodin 模型。"},
+ {"Full 3D model (AI reconstruction)",
+ "完整 3D 模型(AI 重建)"},
+ {"Full guide: Windows, macOS, Linux, LM Studio",
+ "完整指南:Windows、macOS、Linux、LM Studio"},
+ {"GLB + blend shapes",
+ "GLB + 混合形狀"},
+ {"GPU memory budget (GB)",
+ "GPU 記憶體預算 (GB)"},
+ {"Gallery",
+ "藝廊"},
+ {"Gamma %.2f",
+ "Gamma %.2f"},
+ {"Generate 3D model",
+ "生成 3D 模型"},
+ {"Generate LOD chain",
+ "生成 LOD 鏈"},
+ {"Generate the shapes first.",
+ "請先生成形狀。"},
+ {"Get a key at fal.ai/dashboard/keys",
+ "到 fal.ai/dashboard/keys 取得金鑰"},
+ {"Get a key at meshy.ai (API settings)",
+ "到 meshy.ai(API 設定)取得金鑰"},
+ {"Getting to know this computer",
+ "正在認識這台電腦"},
+ {"Got it",
+ "知道了"},
+ {"HF token",
+ "HF 權杖"},
+ {"Height",
+ "高度"},
+ {"Height %.2f",
+ "高度 %.2f"},
+ {"Height alpha",
+ "高度 Alpha"},
+ {"Hide layer",
+ "隱藏圖層"},
+ {"Hold Alt for the scripting parameters.",
+ "按住 Alt 可查看指令碼參數。"},
+ {"Hold Ctrl over any control to see what it does. The User Guide (Shift+F1) explains every tool, and the quick tour shows what is where.",
+ "在任何控制項上按住 Ctrl 即可查看其用途。使用者指南(Shift+F1)說明每項工具,快速導覽則告訴你各功能的位置。"},
+ {"How to share results",
+ "如何分享結果"},
+ {"Hugging Face - free models",
+ "Hugging Face - 免費模型"},
+ {"Hunyuan3D 2 (Tencent) - free",
+ "Hunyuan3D 2 (Tencent) - 免費"},
+ {"Hunyuan3D 2 mini Turbo (Tencent) - free, fastest",
+ "Hunyuan3D 2 mini Turbo (Tencent) - 免費,最快"},
+ {"Hunyuan3D 2.1 (Tencent) - free, no token",
+ "Hunyuan3D 2.1 (Tencent) - 免費,不需權杖"},
+ {"Hunyuan3D 3.1 Rapid (Tencent) - fast",
+ "Hunyuan3D 3.1 Rapid (Tencent) - 快速"},
+ {"Hunyuan3D licence",
+ "Hunyuan3D 授權"},
+ {"Hunyuan3D models are under the Tencent Hunyuan Community License, which doesn't cover use in the EU, UK or South Korea. There, choose TRELLIS.2 (free token) or another model.",
+ "Hunyuan3D 模型採用 Tencent Hunyuan Community License,不涵蓋在歐盟、英國或南韓使用。在這些地區請選擇 TRELLIS.2(免費權杖)或其他模型。"},
+ {"Import Bridge file...",
+ "匯入 Bridge 檔案..."},
+ {"Imports (or updates) the asset in the open Unreal Editor.\nNeeds the Python Editor Script Plugin and Project Settings > Python > Enable Remote Execution.",
+ "在開啟的 Unreal Editor 中匯入(或更新)資產。\n需要 Python Editor Script Plugin 並啟用 Project Settings > Python > Enable Remote Execution。"},
+ {"In ComfyUI use Workflow > Export (API). The Load Image node (title it sf_image) gets the picture; the first mesh it saves is imported. See docs/comfyui.md.",
+ "在 ComfyUI 中使用 Workflow > Export (API)。Load Image 節點(標題設為 sf_image)會收到圖片;它儲存的第一個網格會被匯入。請參閱 docs/comfyui.md。"},
+ {"In ComfyUI use Workflow > Export (API). The node titled sf_prompt gets the description; the first mesh it saves is imported. See docs/comfyui.md.",
+ "在 ComfyUI 中使用 Workflow > Export (API)。標題為 sf_prompt 的節點會收到描述;它儲存的第一個網格會被匯入。請參閱 docs/comfyui.md。"},
+ {"In Unreal: Project Settings > Plugins > Python > Advanced:\nMulticast Time-To-Live = 1, Multicast Bind Address = 0.0.0.0",
+ "在 Unreal 中:Project Settings > Plugins > Python > Advanced:\nMulticast Time-To-Live = 1,Multicast Bind Address = 0.0.0.0"},
+ {"In high %.2f",
+ "輸入高 %.2f"},
+ {"In low %.2f",
+ "輸入低 %.2f"},
+ {"Inflates the outline into a rounded blob - good for simple shapes, not characters.",
+ "把輪廓膨脹成圓潤的團塊:適合簡單形狀,不適合角色。"},
+ {"Insert a copy of another Part into the active one",
+ "將另一個部件的副本插入使用中的部件"},
+ {"Install .sfbrush...",
+ "安裝 .sfbrush..."},
+ {"Install a brush someone shared: a brush code (sfbrush1:...) or .sfbrush text on the clipboard (Ctrl+V in the viewport)",
+ "安裝別人分享的筆刷:剪貼簿中的筆刷代碼(sfbrush1:...)或 .sfbrush 文字(在檢視區按 Ctrl+V)"},
+ {"Its .sfbrush file is removed. Copy its brush code first if you might want it back.",
+ "它的 .sfbrush 檔案會被移除。若之後可能想找回,請先複製它的筆刷代碼。"},
+ {"Keep my layout",
+ "保留我的版面"},
+ {"KelvinGrab moves like Move with elastic, volume-keeping falloff. KelvinTwist and KelvinScale act where you press: drag right to turn clockwise or swell, left to turn back or pinch. KelvinSnake pulls tapering horns. Detail Clone stamps the VDM brush's map along the stroke: capture one from the model with Capture from view.",
+ "KelvinGrab 像 Move 一樣移動,帶有彈性且保持體積的衰減。KelvinTwist 和 KelvinScale 作用於按下的位置:向右拖曳為順時針旋轉或膨脹,向左為反轉或收縮。KelvinSnake 拉出漸細的角。Detail Clone 沿筆觸蓋印 VDM 筆刷的貼圖:用「從視角擷取」從模型擷取一張。"},
+ {"LOD chain (GLB per level)",
+ "LOD 鏈(每層一個 GLB)"},
+ {"LODs",
+ "LOD 數"},
+ {"Laptop / Budget",
+ "筆電 / 入門"},
+ {"Learns from frames while the view moves.",
+ "在視角移動時從影格學習。"},
+ {"Legacy",
+ "舊版"},
+ {"Level %.2f",
+ "色階 %.2f"},
+ {"Light areas rise: logos, coins, emblems, height maps, texture photos.",
+ "亮處隆起:標誌、硬幣、徽章、高度圖、紋理照片。"},
+ {"Linux: allow port %d (TCP and UDP) through the\nfirewall, e.g. sudo ufw allow from\n<your network>/24 to any port %d",
+ "Linux:在防火牆中允許連接埠 %d(TCP 與 UDP),\n例如 sudo ufw allow from\n<你的網路>/24 to any port %d"},
+ {"Lit Spheres (no folder)",
+ "Lit Sphere(無資料夾)"},
+ {"Live over %s, %.0f fps",
+ "透過 %s 即時連線,%.0f fps"},
+ {"Load",
+ "載入"},
+ {"Loading the brush gallery...",
+ "正在載入筆刷藝廊..."},
+ {"Lock against painting",
+ "鎖定以防繪製"},
+ {"Make relief",
+ "建立浮雕"},
+ {"Manual overrides",
+ "手動覆寫"},
+ {"Mask brushes (Ctrl)",
+ "遮罩筆刷(Ctrl)"},
+ {"Mask stroke (Ctrl)",
+ "遮罩筆觸(Ctrl)"},
+ {"Material Channels",
+ "材質通道"},
+ {"Maybe later",
+ "稍後再說"},
+ {"Meshy - paid, your key",
+ "Meshy - 付費,使用你的金鑰"},
+ {"Model id",
+ "模型 ID"},
+ {"More starter meshes",
+ "更多起始網格"},
+ {"More",
+ "更多"},
+ {"Motion proxy from (M triangles)",
+ "動態代理起始(百萬三角形)"},
+ {"Move to folder",
+ "移至資料夾"},
+ {"My generator command",
+ "我的生成器指令"},
+ {"Name of the new VDM",
+ "新 VDM 的名稱"},
+ {"Needs the SculptForge add-on in Blender\n(Help > User Guide > Working with Blender).",
+ "需要 Blender 中的 SculptForge 附加元件\n(說明 > 使用者指南 > 搭配 Blender 使用)。"},
+ {"Needs the SculptForge shelf script in Maya\n(Help > User Guide > Working with Maya).",
+ "需要 Maya 中的 SculptForge 工具架指令碼\n(說明 > 使用者指南 > 搭配 Maya 使用)。"},
+ {"Neutral grey panels with one orange accent, and the SculptForge layout: menus by task, a status bar and a one-row tool shelf. Your layout stays as it is unless you try it.",
+ "中性灰面板搭配一抹橘色,並採用 SculptForge 版面:依工作分類的選單、狀態列和單列工具列。除非你試用,否則版面維持原樣。"},
+ {"New folder...",
+ "新增資料夾..."},
+ {"New from Starter Mesh",
+ "從起始網格新增"},
+ {"New to SculptForge? A quick tour",
+ "第一次用 SculptForge?快速導覽"},
+ {"New to SculptForge? A two-minute tour shows where everything is.",
+ "第一次用 SculptForge?兩分鐘的導覽告訴你各功能的位置。"},
+ {"Next",
+ "下一步"},
+ {"No UVs: Auto UV makes them",
+ "沒有 UV:Auto UV 會建立"},
+ {"No UVs: Tool > Texture Map > Auto UV",
+ "沒有 UV:工具 > 紋理貼圖 > Auto UV"},
+ {"No alpha matches \"%s\"",
+ "沒有符合「%s」的 Alpha"},
+ {"No brush matches \"%s\"",
+ "沒有符合「%s」的筆刷"},
+ {"No brushes match your search.",
+ "沒有符合搜尋的筆刷。"},
+ {"No camera? Open this in the phone's browser:",
+ "沒有相機?在手機瀏覽器中開啟:"},
+ {"No default bridge folder on this system;\nBridge files still import and export.",
+ "此系統沒有預設的 Bridge 資料夾;\nBridge 檔案仍可匯入與匯出。"},
+ {"No face found: Place by hand, or Finish without face loops.",
+ "找不到臉:請「手動放置」,或「完成」但不使用臉部環線。"},
+ {"No menus",
+ "沒有選單"},
+ {"No parameters.",
+ "沒有參數。"},
+ {"No thanks",
+ "不用了,謝謝"},
+ {"Noise size %.3f",
+ "雜訊大小 %.3f"},
+ {"Normal view",
+ "一般檢視"},
+ {"Not enough free memory for %s: it will be skipped. Close other apps first.",
+ "可用記憶體不足以執行 %s:將會略過。請先關閉其他應用程式。"},
+ {"Not now",
+ "現在不要"},
+ {"Nothing about memberships for a week.",
+ "一週內不再顯示會員方案。"},
+ {"Nothing else is sent: no folders, no user name, no model details. Needs the Discord app running.",
+ "不會傳送其他資料:沒有資料夾、使用者名稱或模型細節。需要 Discord 應用程式正在執行。"},
+ {"Off (raw mesh)",
+ "關閉(原始網格)"},
+ {"Off in this run: tests, renders and recordings use fixed settings.",
+ "本次執行已關閉:測試、算圖與錄影使用固定設定。"},
+ {"Off: choose an exchange folder first.",
+ "已關閉:請先選擇交換資料夾。"},
+ {"Offline - showing the gallery from your last visit (%s).",
+ "離線 - 顯示你上次造訪時的藝廊 (%s)。"},
+ {"Offline and instant, but only a puffy blockout of the outline - not a real reconstruction.",
+ "離線且即時,但只是輪廓的膨脹粗模,不是真正的重建。"},
+ {"Offline blockout (inflate silhouette)",
+ "離線粗模(膨脹剪影)"},
+ {"Offline: no outside connections. Updates come only from your studio's channel.",
+ "離線:沒有對外連線。更新只來自你工作室的頻道。"},
+ {"On a dense scan with micro levels, big brushes now keep up with the pen and the view turns smoothly right after a stroke.",
+ "在帶有微細層級的高密度掃描上,大筆刷現在能跟上筆,筆觸結束後視角也能立即流暢旋轉。"},
+ {"On the phone: %s",
+ "在手機上:%s"},
+ {"On the phone: Face capture. The front camera tracks 52 expressions on the phone; only the numbers come here.",
+ "在手機上:臉部擷取。前鏡頭在手機上追蹤 52 種表情;只有數值會傳到這裡。"},
+ {"One line of text to share in chat, email or a forum",
+ "一行文字,可分享到聊天、電子郵件或論壇"},
+ {"Only brushes in your own library can be deleted",
+ "只能刪除你自己資源庫中的筆刷"},
+ {"Onto %s (%zu tris, UVs)",
+ "到 %s(%zu 個三角形,UV)"},
+ {"Open or drop a .ply capture (Polycam, Luma, Postshot, Scaniverse...) to sculpt against it.",
+ "開啟或拖放 .ply 擷取檔(Polycam、Luma、Postshot、Scaniverse...)作為雕刻參考。"},
+ {"Open the User Guide",
+ "開啟使用者指南"},
+ {"OpenGL (Y+)",
+ "OpenGL (Y+)"},
+ {"Opens it in SculptForge; the tour waits at the bottom.",
+ "在 SculptForge 中開啟;導覽會在底部等你。"},
+ {"Opens sculptforge.app/support.html in your browser.",
+ "在瀏覽器中開啟 sculptforge.app/support.html。"},
+ {"Or drop a sketch, concept, logo, photo or height map onto the window.",
+ "或把草圖、概念圖、標誌、照片或高度圖拖到視窗上。"},
+ {"Other file (API format)...",
+ "其他檔案(API 格式)..."},
+ {"Output folder (default: last export's)",
+ "輸出資料夾(預設:上次匯出的位置)"},
+ {"Output folder (default: project / library)",
+ "輸出資料夾(預設:專案 / 資源庫)"},
+ {"Own micro level",
+ "自有微細層級"},
+ {"Own top subdivision level",
+ "自有最高細分層級"},
+ {"Page won't open? Use Firefox on the phone: some Chrome versions block home-network addresses.",
+ "頁面打不開?請在手機上使用 Firefox:某些 Chrome 版本會封鎖家用網路位址。"},
+ {"Pause",
+ "暫停"},
+ {"Pen detected",
+ "已偵測到筆"},
+ {"Performance settings",
+ "效能設定"},
+ {"Phone and computer on the same Wi-Fi. No app to install.",
+ "手機與電腦連到同一個 Wi-Fi。不需安裝應用程式。"},
+ {"Pick a look:",
+ "選擇外觀:"},
+ {"Play",
+ "播放"},
+ {"Preparing the model for the phone...",
+ "正在為手機準備模型..."},
+ {"Press Esc to stop the run.",
+ "按 Esc 停止執行。"},
+ {"Pressure -",
+ "壓力 -"},
+ {"Project page",
+ "專案頁面"},
+ {"Projects the image onto the model from the current view as surface detail (uses the active layer).",
+ "從目前視角把圖片投射到模型上作為表面細節(使用目前的圖層)。"},
+ {"Proof mode measures how responsive sculpting is on this computer. For each mesh size it builds a sphere with subdivision levels, then plays a scripted pen stroke through the same code your pen goes through (240 samples a second), with a normal and a large brush, and turns the view.",
+ "證明模式會測量這台電腦上雕刻的反應速度。針對每種網格大小,它會建立帶細分層級的球體,再以與你的筆相同的程式路徑(每秒 240 個取樣)播放預錄的筆觸,使用一般與大型筆刷,並旋轉視角。"},
+ {"Q W E R: Draw, Move, Scale, Rotate",
+ "Q W E R:繪製、移動、縮放、旋轉"},
+ {"Quad Remesh (default): clean quads ready for sculpting and subdividing, with one subdivision level holding the detail. Voxel remesh: an even, watertight triangle surface. Off: the model as the service made it.",
+ "四邊形重拓樸(預設):乾淨的四邊面,可直接雕刻與細分,並以一個細分層級保留細節。體素重新網格化:均勻、封閉的三角面。關閉:保留服務產生的原始模型。"},
+ {"Quad Remesh 2",
+ "四邊形重拓樸 2"},
+ {"Questions, tips and work in progress: opens the invite in your browser.",
+ "問題、技巧與進行中的作品:在瀏覽器中開啟邀請連結。"},
+ {"Quick shapes (offline)",
+ "快速形狀(離線)"},
+ {"Radius %.0f px",
+ "半徑 %.0f px"},
+ {"Receive",
+ "接收"},
+ {"Received",
+ "已接收"},
+ {"Receiving %s (%s)",
+ "正在接收 %s (%s)"},
+ {"Reduction",
+ "縮減"},
+ {"Refresh",
+ "重新整理"},
+ {"Refresh failed: %s",
+ "重新整理失敗:%s"},
+ {"Regenerate",
+ "重新生成"},
+ {"Result: %s",
+ "結果:%s"},
+ {"Reveal in folder",
+ "在資料夾中顯示"},
+ {"Right-click to share, rename or delete",
+ "按右鍵可分享、重新命名或刪除"},
+ {"Rodin 2.5 Fast (Hyper3D) - cheaper",
+ "Rodin 2.5 Fast (Hyper3D) - 較便宜"},
+ {"Root sphere",
+ "根球"},
+ {"Run a model on this computer",
+ "在這台電腦上執行模型"},
+ {"Runs a workflow on your own ComfyUI - this computer or a studio GPU server - with whatever models it has (Hunyuan3D, TRELLIS and more). Nothing goes anywhere else.",
+ "在你自己的 ComfyUI(這台電腦或工作室的 GPU 伺服器)上以它擁有的模型(Hunyuan3D、TRELLIS 等)執行工作流程。資料不會傳到其他地方。"},
+ {"Runs free on Hugging Face's shared GPUs with a small daily allowance. A free token (huggingface.co/settings/tokens, read access) raises it; TRELLIS.2 needs one.",
+ "在 Hugging Face 的共用 GPU 上免費執行,每日額度不多。免費權杖(huggingface.co/settings/tokens,讀取權限)可提高額度;TRELLIS.2 需要權杖。"},
+ {"Runs on Hugging Face's shared GPUs with your account's free daily allowance.",
+ "使用你帳號的每日免費額度,在 Hugging Face 的共用 GPU 上執行。"},
+ {"Same Wi-Fi: not a guest network, not mobile data.",
+ "同一個 Wi-Fi:不是訪客網路,也不是行動數據。"},
+ {"Save .sfbrush...",
+ "儲存 .sfbrush..."},
+ {"Save as .sfbrush...",
+ "另存為 .sfbrush..."},
+ {"Save settings",
+ "儲存設定"},
+ {"Save splats...",
+ "儲存 Splat..."},
+ {"Save your brush from Brush Lab, then open a pull request on the gallery.\nOpens %s",
+ "從筆刷實驗室儲存你的筆刷,再到藝廊提交 pull request。\n開啟 %s"},
+ {"Saved in %s/Captures. Only devices on your network can connect, and only while this window is open.",
+ "儲存在 %s/Captures。只有你網路上的裝置能連線,而且只在這個視窗開啟時。"},
+ {"Scan with your phone's camera",
+ "用手機相機掃描"},
+ {"Sculpt a stroke to see what it costs.",
+ "雕刻一筆即可看到它的耗用。"},
+ {"Sculpt expressions & correctives;\nexported as glTF morph targets.",
+ "雕刻表情與修正形狀;\n以 glTF 變形目標匯出。"},
+ {"Sculpt to splats",
+ "雕刻到 Splat"},
+ {"SculptForge has a new look",
+ "SculptForge 換了新外觀"},
+ {"SculptForge is free. A membership adds betas and early builds, a vote on what we build next, Member Requests (ask for a brush or an alpha) and your name in the credits. %s",
+ "SculptForge 是免費的。會員可搶先取得測試版與早期版本、投票決定接下來開發什麼、提出會員請求(索取筆刷或 Alpha),並列名於致謝名單。%s"},
+ {"Search brushes (scales, skin, stone...)",
+ "搜尋筆刷(鱗片、皮膚、石頭...)"},
+ {"Selection brushes (Ctrl+Shift)",
+ "選取筆刷(Ctrl+Shift)"},
+ {"Selection stroke (Ctrl+Shift)",
+ "選取筆觸(Ctrl+Shift)"},
+ {"Send",
+ "傳送"},
+ {"Sending to Unreal...",
+ "正在傳送到 Unreal..."},
+ {"Server",
+ "伺服器"},
+ {"Several networks? Pick the Wi-Fi one under Network.",
+ "有多個網路?在「網路」下選擇 Wi-Fi 那個。"},
+ {"Share yours",
+ "分享你的作品"},
+ {"Shift snaps (15 deg, grid, 10%%). Alt+drag the gizmo: move it only. Alt+click the model: pivot there.",
+ "Shift 對齊(15 度、格線、10%%)。Alt+拖曳操控器:只移動操控器。Alt+點模型:把軸心設在該處。"},
+ {"Show layer",
+ "顯示圖層"},
+ {"Show only the active Part",
+ "只顯示使用中的部件"},
+ {"Show the folder",
+ "顯示資料夾"},
+ {"Show the memberships",
+ "查看會員方案"},
+ {"Show the other Parts again",
+ "重新顯示其他部件"},
+ {"Sign in with GitHub (the member builds' sign-in): no more cards.",
+ "使用 GitHub 登入(會員版本的登入方式):不再顯示卡片。"},
+ {"Silhouette blockout",
+ "剪影粗模"},
+ {"Skeletal mesh with %zu morph targets.",
+ "骨架網格,含 %zu 個變形目標。"},
+ {"Skip",
+ "略過"},
+ {"Softness %.2f",
+ "柔和度 %.2f"},
+ {"Software (safe mode)",
+ "軟體(安全模式)"},
+ {"Splat training needs Brush",
+ "Splat 訓練需要 Brush"},
+ {"Splat training needs COLMAP",
+ "Splat 訓練需要 COLMAP"},
+ {"Stable Fast 3D (Stability AI) - free, quick and simple",
+ "Stable Fast 3D (Stability AI) - 免費、快速又簡單"},
+ {"Stamp from this view",
+ "從此視角蓋印"},
+ {"Stamp onto model",
+ "蓋印到模型上"},
+ {"Stamp with Drag Stamp (drag sets size and turn) or Slide Stamp. Intensity 50 presses the map at its own size; Alt digs it in. A VDM moves points sideways, so it needs a dense mesh: divide first, and stamp at the highest subdivision level.",
+ "使用 Drag Stamp(拖曳設定大小與旋轉)或 Slide Stamp 蓋印。強度 50 會以貼圖本身的大小壓印;按 Alt 則向內壓。VDM 會側向移動頂點,所以需要高密度網格:先細分,再於最高細分層級蓋印。"},
+ {"Start",
+ "開始"},
+ {"Static mesh with %d LODs.",
+ "靜態網格,含 %d 個 LOD。"},
+ {"Step %d: %s (%s)\n%u %s, %s%s\nClick or drag to show the model here; right-click to re-tune",
+ "步驟 %d: %s (%s)\n%u %s,%s%s\n點一下或拖曳可在此顯示模型;按右鍵可重新調整"},
+ {"Stop",
+ "停止"},
+ {"Stop download",
+ "停止下載"},
+ {"Strokes",
+ "筆觸"},
+ {"Subdivision limit (M triangles)",
+ "細分上限(百萬三角形)"},
+ {"Supporters",
+ "支持者"},
+ {"TRELLIS.2 (Microsoft) - detailed, open model",
+ "TRELLIS.2 (Microsoft) - 細節豐富的開放模型"},
+ {"TRELLIS.2 (Microsoft, MIT) - Best detail (needs token)",
+ "TRELLIS.2 (Microsoft, MIT) - 細節最佳(需要權杖)"},
+ {"TRELLIS.2 needs a free Hugging Face token; without one, Hunyuan3D 2.1 runs instead.",
+ "TRELLIS.2 需要免費的 Hugging Face 權杖;沒有權杖時會改用 Hunyuan3D 2.1。"},
+ {"Take the tour",
+ "開始導覽"},
+ {"Tap View in AR on the phone: the active Part (or the scene) stands on your desk.",
+ "在手機上點「以 AR 檢視」:使用中的部件(或整個場景)就會站在你的桌上。"},
+ {"Target: automatic",
+ "目標:自動"},
+ {"Ten short slides: remeshing, dynamic topology, retopology, levels, masking, cut, brushes and baking, each with a Show me button.",
+ "十張簡短投影片:重新網格化、動態拓樸、重拓樸、層級、遮罩、切割、筆刷與烘焙,每張都有「示範給我看」按鈕。"},
+ {"Test connection",
+ "測試連線"},
+ {"Text to 3D (AI)",
+ "文字轉 3D(AI)"},
+ {"Thank you to everyone who supports SculptForge:",
+ "感謝所有支持 SculptForge 的人:"},
+ {"The %s brush of the same name is used again.",
+ "會再次使用同名的 %s 筆刷。"},
+ {"The %s brush stays as it is; the renamed copy goes into your library.",
+ "%s 筆刷維持原樣;重新命名的副本會放入你的資源庫。"},
+ {"The 2.5 GB model needs about 4 GB of free memory and works without a graphics card (10-20 s per brush on a laptop CPU, a few seconds with a GPU).",
+ "這個 2.5 GB 的模型需要約 4 GB 可用記憶體,沒有顯示卡也能執行(筆電 CPU 每個筆刷 10-20 秒,有 GPU 則只需幾秒)。"},
+ {"The 52 Apple ARKit blend shapes for rigs and live face capture, fitted to this head.",
+ "52 個 Apple ARKit 混合形狀,用於綁定與即時臉部擷取,已貼合這顆頭部。"},
+ {"The current scene is replaced. Save your work first.",
+ "目前的場景會被取代。請先儲存你的作品。"},
+ {"The first %d members are Founding Members: a badge, their name in the credits and their price locked for good.",
+ "前 %d 位會員是創始會員:獲得徽章、列名於致謝名單,價格永久鎖定。"},
+ {"The first %d members, with our thanks for good:",
+ "前 %d 位會員,永遠感謝你們:"},
+ {"The gallery is empty.",
+ "藝廊是空的。"},
+ {"The page may be closed or the phone asleep: open it again to carry on.",
+ "頁面可能已關閉或手機進入休眠:重新開啟即可繼續。"},
+ {"The phone can't open the page?",
+ "手機打不開頁面?"},
+ {"The phone link couldn't start.",
+ "無法啟動手機連線。"},
+ {"Theme (64 characters at most)",
+ "主題(最多 64 個字元)"},
+ {"There is no ready-made %s for this computer. %s",
+ "沒有適用於這台電腦的現成 %s。%s"},
+ {"Thickness",
+ "厚度"},
+ {"Third-party notices",
+ "第三方聲明"},
+ {"This build has no WebRTC, so the phone's face page can't connect.",
+ "此版本沒有 WebRTC,因此手機的臉部頁面無法連線。"},
+ {"This code expires in %.0f s",
+ "此代碼將在 %.0f 秒後失效"},
+ {"This computer isn't on a local network.",
+ "這台電腦不在區域網路上。"},
+ {"This stays in the Model tooltip.",
+ "這段說明會保留在「模型」的提示中。"},
+ {"Threads (next start)",
+ "執行緒(下次啟動)"},
+ {"Tier: automatic",
+ "等級:自動"},
+ {"Tools",
+ "工具"},
+ {"Train from capture",
+ "從擷取訓練"},
+ {"Trainer: Brush is not installed yet (it is offered when you start).",
+ "訓練工具:尚未安裝 Brush(開始時會提供安裝)。"},
+ {"Training - progress is over the viewport",
+ "訓練中 - 進度顯示在檢視區上方"},
+ {"Training splat - %s",
+ "正在訓練 Splat - %s"},
+ {"Try an idea below, or ask for changes to the selected brush, like \"sharper\" or \"less buildup\".",
+ "試試下面的點子,或要求修改所選筆刷,例如「更銳利」或「少一點堆積」。"},
+ {"Try it",
+ "試用"},
+ {"Turn 90",
+ "旋轉 90"},
+ {"Turn off VPNs on the phone and the computer.",
+ "關閉手機與電腦上的 VPN。"},
+ {"Turn upside down (most captures are)",
+ "上下翻轉(大多數擷取檔都是顛倒的)"},
+ {"Two settings in Preferences > Performance help most on big meshes:",
+ "偏好設定 > 效能 中有兩個設定對大型網格最有幫助:"},
+ {"Type a letter to narrow the brushes, then press its orange key",
+ "輸入字母縮小筆刷範圍,再按它的橘色按鍵"},
+ {"Type help and press Enter to list the commands.",
+ "輸入 help 並按 Enter 即可列出指令。"},
+ {"UVs, no texture yet",
+ "已有 UV,尚無紋理"},
+ {"Unlock (allow painting)",
+ "解除鎖定(允許繪製)"},
+ {"Unwrapping...",
+ "正在展開..."},
+ {"Uploads per frame (MB)",
+ "每影格上傳量 (MB)"},
+ {"Use",
+ "使用"},
+ {"Using FAL_KEY from the environment.",
+ "使用環境變數中的 FAL_KEY。"},
+ {"Using MESHY_API_KEY from the environment.",
+ "使用環境變數中的 MESHY_API_KEY。"},
+ {"Value %.2f",
+ "數值 %.2f"},
+ {"View budget (M triangles)",
+ "檢視預算(百萬三角形)"},
+ {"View in AR",
+ "以 AR 檢視"},
+ {"View resolution 75%%: draws about half the pixels, for integrated graphics and big screens.",
+ "檢視解析度 75%%:約只繪製一半像素,適合內建顯示晶片與大螢幕。"},
+ {"Voxel remesh",
+ "體素重新網格化"},
+ {"Welcome to SculptForge",
+ "歡迎使用 SculptForge"},
+ {"Windows: allow SculptForge on private networks\nwhen the firewall asks.",
+ "Windows:防火牆詢問時,\n請允許 SculptForge 使用私人網路。"},
+ {"Workflow",
+ "工作流程"},
+ {"Working...",
+ "處理中..."},
+ {"Workstation",
+ "工作站"},
+ {"Your first sculpt: a cute owl head from this sphere, step by step, in about ten minutes.",
+ "你的第一件雕刻:從這顆球一步步做出可愛的貓頭鷹頭,大約十分鐘。"},
+ {"and type the code %.3s %.3s",
+ "並輸入代碼 %.3s %.3s"},
+ {"by %s - %s - %s",
+ "作者 %s - %s - %s"},
+ {"e.g. bark of an old oak tree",
+ "例如:老橡樹的樹皮"},
+ {"editable",
+ "可編輯"},
+ {"face_weights isn't in this build: the model doesn't move yet.",
+ "此版本沒有 face_weights:模型還不會動。"},
+ {"fal.ai - paid, your key",
+ "fal.ai - 付費,使用你的金鑰"},
+ {"help, or a command such as remesh resolution=200",
+ "help,或例如 remesh resolution=200 的指令"},
+ {"high",
+ "高"},
+ {"low",
+ "低"},
+ {"medium",
+ "中"},
+ {"macOS: allow incoming connections for SculptForge\n(System Settings > Network > Firewall).",
+ "macOS:允許 SculptForge 的傳入連線\n(系統設定 > 網路 > 防火牆)。"},
+ {"not found (photos without positions need it)",
+ "找不到(沒有位置資訊的照片需要它)"},
+ {"not found (videos need it)",
+ "找不到(影片需要它)"},
+ {"not installed",
+ "未安裝"},
+ {"off",
+ "關閉"},
+ {"opacity %.2f",
+ "不透明度 %.2f"},
+ {"weight %.2f",
+ "權重 %.2f"},
+ {"x%.2f / level",
+ "x%.2f / 層級"},
+ {"triangles",
+ "三角形"},
+ {"vertices",
+ "頂點"},
+ {"Studio mode",
+ "工作室模式"},
+ {"Studio build for %s",
+ "%s 專用的工作室版本"},
};
} // namespace
diff --git a/src/app/Input.cpp b/src/app/Input.cpp
index 5d5779cd..9537fa2b 100644
--- a/src/app/Input.cpp
+++ b/src/app/Input.cpp
@@ -769,7 +769,7 @@ void App::drawQuickMenu() {
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(8, 8));
ImGui::PushStyleColor(ImGuiCol_WindowBg, theme::u32(theme::panelBg, 0.96f)); // the look's own grey, no blue tint
bool close = false;
- if (ImGui::Begin("Quick Menu##quickmenu", nullptr,
+ if (ImGui::Begin(tr("Quick Menu##quickmenu"), nullptr,
ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings |
ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoFocusOnAppearing)) {
ImGui::BeginGroup();
diff --git a/src/app/LibraryBrowser.cpp b/src/app/LibraryBrowser.cpp
index d2739655..57f2caa2 100644
--- a/src/app/LibraryBrowser.cpp
+++ b/src/app/LibraryBrowser.cpp
@@ -548,7 +548,7 @@ void LibraryBrowser::contextMenu(App& app, const AssetEntry& e) {
ImGui::TextDisabled("%s", e.name.c_str());
ImGui::Separator();
const bool mesh = e.kind == AssetKind::Mesh || e.kind == AssetKind::Project || e.kind == AssetKind::Primitive;
- if (ImGui::MenuItem(e.kind == AssetKind::Folder || e.kind == AssetKind::Up ? "Open folder" : "Open"))
+ if (ImGui::MenuItem(tr(e.kind == AssetKind::Folder || e.kind == AssetKind::Up ? "Open folder" : "Open")))
activate(app, e, false);
if (mesh && ImGui::MenuItem(tr("Append as Part"), "Shift+double-click")) activate(app, e, true);
if (e.kind == AssetKind::Image) {
@@ -766,7 +766,7 @@ void LibraryBrowser::drawHeader(App& app, float width) {
ImGui::SetCursorScreenPos(ImVec2(std::max(leftEnd + 8.0f, groupRight - groupW()), origin.y));
ImGui::PushClipRect(ImVec2(leftEnd, origin.y), ImVec2(groupRight, origin.y + kHeader * scale), true);
if (quickTab) {
- if (ImGui::Button(compact ? ICON_LC_SAVE "###QuickSave now" : ICON_LC_SAVE " Save now###QuickSave now"))
+ if (ImGui::Button(tr(compact ? ICON_LC_SAVE "###QuickSave now" : ICON_LC_SAVE " Save now###QuickSave now")))
app.quickSave();
ui::HelpAction(app, "file.quicksave");
ImGui::SameLine(0, 8 * scale);
@@ -793,14 +793,14 @@ void LibraryBrowser::drawHeader(App& app, float width) {
ui::DelayedTooltip("Capture from phone");
ui::HelpAction(app, "file.capture_phone");
ImGui::SameLine(0, 8 * scale);
- if (ImGui::Button(compact ? ICON_LC_FOLDER_PLUS "###Open folder"
- : ICON_LC_FOLDER_PLUS " Open folder...###Open folder"))
+ if (ImGui::Button(tr(compact ? ICON_LC_FOLDER_PLUS "###Open folder"
+ : ICON_LC_FOLDER_PLUS " Open folder...###Open folder")))
SDL_ShowOpenFolderDialog(onFolderChosen, this, app.window_, nullptr, false);
ui::HelpText("Open folder", nullptr, "Add a folder of your own to the Library (shown at the root of every tab).",
"Library");
ImGui::SameLine(0, 8 * scale);
- if (ImGui::Button(compactFeedback ? ICON_LC_MESSAGE_SQUARE_PLUS "###Fixes & suggestions"
- : ICON_LC_MESSAGE_SQUARE_PLUS " Fixes & suggestions###Fixes & suggestions")) {
+ if (ImGui::Button(tr(compactFeedback ? ICON_LC_MESSAGE_SQUARE_PLUS "###Fixes & suggestions"
+ : ICON_LC_MESSAGE_SQUARE_PLUS " Fixes & suggestions###Fixes & suggestions"))) {
if (app.interactive()) app.actions_.find("help.feedback")->run();
app.status_ = "Submit a request for a fix or a suggestion: "
"https://github.com/islandmed/SculptForge/issues/new/choose";
@@ -862,7 +862,7 @@ void LibraryBrowser::draw(App& app, const CanvasRect& canvas) {
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f);
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);
const bool visible =
- ImGui::Begin("Library", nullptr,
+ ImGui::Begin(tr("Library"), nullptr,
ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings |
ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoScrollWithMouse);
ImGui::PopStyleVar(3);
@@ -1051,7 +1051,7 @@ void LibraryBrowser::draw(App& app, const CanvasRect& canvas) {
ImGui::TextDisabled("%s", e.name.c_str());
ImGui::Separator();
bool done = false;
- if (ai::aiEnabled() && ImGui::MenuItem(ICON_LC_SPARKLES " Generate 3D...")) app.openPath(e.path), done = true;
+ if (ai::aiEnabled() && ImGui::MenuItem(tr(ICON_LC_SPARKLES " Generate 3D..."))) app.openPath(e.path), done = true;
if (ImGui::MenuItem(tr("Relief from image"))) {
app.confirmDiscard([&app, p = e.path] { app.runCommand("image_relief", {{"path", p}}); });
done = true;
@@ -1102,7 +1102,7 @@ void LibraryBrowser::drawPreferences(App& app) {
"Open the Library on the Project tab when SculptForge starts.",
"Preferences > Library");
ImGui::SetNextItemWidth(-1);
- ImGui::SliderInt("##lbrowspref", &layout.libraryRows, 1, 4, "Rows %d");
+ ImGui::SliderInt("##lbrowspref", &layout.libraryRows, 1, 4, tr("Rows %d"));
ui::HelpText("Rows", nullptr, "Rows of thumbnails in the Library strip.", "Preferences > Library");
int placement = layout.libraryBottom ? 1 : 0;
ImGui::TextUnformatted(tr("Placement"));
@@ -1114,7 +1114,7 @@ void LibraryBrowser::drawPreferences(App& app) {
"Preferences > Library");
ImGui::TextDisabled("%s", tr("Library folder"));
ImGui::TextWrapped("%s", app.library_.user.empty() ? "(none)" : app.library_.user.c_str());
- if (!app.library_.user.empty() && ImGui::Button(ICON_LC_FOLDER_OPEN " Show library folder"))
+ if (!app.library_.user.empty() && ImGui::Button(tr(ICON_LC_FOLDER_OPEN " Show library folder")))
SDL_OpenURL(("file://" + app.library_.user).c_str());
}
diff --git a/src/app/Palettes.cpp b/src/app/Palettes.cpp
index 542a065f..681a7afd 100644
--- a/src/app/Palettes.cpp
+++ b/src/app/Palettes.cpp
@@ -520,7 +520,7 @@ void App::drawPalette_Edit() {
void App::drawPalette_File() {
menuAction(*this, "file.new_sphere");
menuAction(*this, "file.new_plane");
- if (ImGui::BeginMenu("New from Starter Mesh")) {
+ if (ImGui::BeginMenu(tr("New from Starter Mesh"))) {
for (const StarterMesh& m : starterMeshes()) {
if (ImGui::MenuItem((std::string(m.name) + "##starter." + m.id).c_str())) {
const std::string id = m.id;
@@ -565,7 +565,7 @@ void App::drawPalette_Generate() {
hint(*this, "AI features are off (Preferences > AI): Relief, Inflate and Stamp work offline.");
}
tray::GroupLabel(*this, "From an image");
- if (ImGui::Button(refImage_.empty() ? "Choose image...##generate" : "Change image...##generate", ImVec2(-1, 0))) {
+ if (ImGui::Button(tr(refImage_.empty() ? "Choose image...##generate" : "Change image...##generate"), ImVec2(-1, 0))) {
static const SDL_DialogFileFilter filters[] = {{"Images", "png;jpg;jpeg;bmp;tga;psd;gif"}, {"All files", "*"}};
SDL_ShowOpenFileDialog(
[](void* user, const char* const* files, int) {
@@ -885,7 +885,7 @@ void App::drawPalette_Tool() {
tray::GroupLabel(*this, "Voxel Remesh");
const float half = (ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.x) * 0.5f;
if (voxelRemesh_) { // remeshing in the background (PanelRetopo.cpp)
- ImGui::ProgressBar(voxelRemesh_->progress->load(), ImVec2(half, 0), "Remeshing...");
+ ImGui::ProgressBar(voxelRemesh_->progress->load(), ImVec2(half, 0), tr("Remeshing..."));
ui::HelpText("Voxel Remesh", nullptr,
"Remeshing in the background (with a painted texture: Auto UV of the new surface, then the "
"texture projected onto it). The result replaces the Part when it's done.",
diff --git a/src/app/PanelBake.cpp b/src/app/PanelBake.cpp
index e85a7711..72795859 100644
--- a/src/app/PanelBake.cpp
+++ b/src/app/PanelBake.cpp
@@ -374,9 +374,9 @@ void App::drawBakeContents() {
// What the maps go onto.
if (!m.hasUvs()) {
- ImGui::TextDisabled("No UVs: Tool > Texture Map > Auto UV");
+ ImGui::TextDisabled(tr("No UVs: Tool > Texture Map > Auto UV"));
} else {
- ImGui::TextDisabled("Onto %s (%zu tris, UVs)", doc_.activePartInfo().name.c_str(), m.triangleCount());
+ ImGui::TextDisabled(tr("Onto %s (%zu tris, UVs)"), doc_.activePartInfo().name.c_str(), m.triangleCount());
}
ui::HelpText("Low-poly", nullptr,
"Maps are baked onto the active Part's UVs: make the low-poly active (it needs UVs from import or "
@@ -393,7 +393,7 @@ void App::drawBakeContents() {
}
if (!found) b.source = 0;
ImGui::AlignTextToFramePadding();
- ImGui::TextUnformatted("Source");
+ ImGui::TextUnformatted(tr("Source"));
ImGui::SameLine();
ImGui::SetNextItemWidth(-1);
const bool hasLevels = subdivLevelCount(m) >= 2, hasMicroLevel = hasMicro(m);
@@ -402,9 +402,9 @@ void App::drawBakeContents() {
if (b.levelSource == 1) current = "Own top subdivision level";
if (b.levelSource == 2) current = "Own micro level";
if (ImGui::BeginCombo("##bakesource", current.c_str())) {
- if (hasLevels && ImGui::Selectable("Own top subdivision level##level", b.levelSource == 1)) b.levelSource = 1, b.source = 0;
- if (hasMicroLevel && ImGui::Selectable("Own micro level##micro", b.levelSource == 2)) b.levelSource = 2, b.source = 0;
- if (ImGui::Selectable("All visible Parts", b.source == 0 && !b.levelSource)) b.source = 0, b.levelSource = 0;
+ if (hasLevels && ImGui::Selectable(tr("Own top subdivision level##level"), b.levelSource == 1)) b.levelSource = 1, b.source = 0;
+ if (hasMicroLevel && ImGui::Selectable(tr("Own micro level##micro"), b.levelSource == 2)) b.levelSource = 2, b.source = 0;
+ if (ImGui::Selectable(tr("All visible Parts"), b.source == 0 && !b.levelSource)) b.source = 0, b.levelSource = 0;
for (int i = 0; i < doc_.partCount(); ++i) {
if (i == doc_.activePart) continue;
const Part& st = doc_.parts[size_t(i)];
@@ -464,7 +464,7 @@ void App::drawBakeContents() {
kPath);
// Ray distances.
- ImGui::Checkbox("Auto distance", &b.settings.autoDistance);
+ ImGui::Checkbox(tr("Auto distance"), &b.settings.autoDistance);
ui::HelpText("Auto distance", nullptr,
"Measure how far the high-poly lies in front of and behind the low-poly before baking, and cast rays just "
"that far. Turn it off to set Front and Rear yourself (e.g. when rays hit a nearby part).",
@@ -492,7 +492,7 @@ void App::drawBakeContents() {
"are mipmapped in an engine. 8 is plenty for 2K; use more for 4K and 8K.",
kPath);
ImGui::SameLine();
- const char* greens[] = {"OpenGL (Y+)", "DirectX (Y-)"};
+ const char* greens[] = {tr("OpenGL (Y+)"), tr("DirectX (Y-)")};
int green = b.settings.flipGreen ? 1 : 0;
ImGui::SetNextItemWidth(-1);
if (ImGui::Combo("##bakegreen", &green, greens, 2)) b.settings.flipGreen = green == 1;
@@ -516,8 +516,8 @@ void App::drawBakeContents() {
// Output.
ImGui::SetNextItemWidth(-ImGui::GetFrameHeight() - style.ItemSpacing.x);
- ImGui::InputTextWithHint("##bakefolder", lastExportFolder_.empty() ? "Output folder (default: project / library)"
- : "Output folder (default: last export's)",
+ ImGui::InputTextWithHint("##bakefolder", tr(lastExportFolder_.empty() ? "Output folder (default: project / library)"
+ : "Output folder (default: last export's)"),
b.folder, sizeof b.folder);
ui::HelpText("Output folder", nullptr,
"Where the maps are written, as <Part>_normal.png, _ao.png, _displacement.png (+ .exr) and so on. "
@@ -525,7 +525,7 @@ void App::drawBakeContents() {
kPath);
ImGui::SameLine();
ui::ActionButton(*this, "bake.choose_folder", ImVec2(ImGui::GetFrameHeight(), 0), ui::Look::Icon);
- ImGui::Checkbox("EXR displacement", &b.exr);
+ ImGui::Checkbox(tr("EXR displacement"), &b.exr);
ui::HelpText("EXR displacement", nullptr,
"Also write the displacement as a 32-bit float OpenEXR in world units (for renderers that take real "
"distances). The 16-bit PNG is always written.",
@@ -533,7 +533,7 @@ void App::drawBakeContents() {
// Bake / progress.
if (b.job) {
- ImGui::ProgressBar(b.job->progress->load(), ImVec2(half, 0), "Baking...");
+ ImGui::ProgressBar(b.job->progress->load(), ImVec2(half, 0), tr("Baking..."));
ui::HelpText("Baking", nullptr, "Baking on every core in the background; you can keep working.", kPath);
ImGui::SameLine();
ui::ActionButton(*this, "bake.cancel", ImVec2(-1, 0));
@@ -544,15 +544,15 @@ void App::drawBakeContents() {
// The last bake.
if (b.result) {
const BakeResult& r = *b.result;
- ImGui::TextDisabled("%dx%d in %.1f s from %zu tris", r.width, r.height, r.seconds, r.sourceTriangles);
+ ImGui::TextDisabled(tr("%dx%d in %.1f s from %zu tris"), r.width, r.height, r.seconds, r.sourceTriangles);
if (r.has(BakeMap::Displacement))
- ImGui::TextDisabled("Displacement: mid-grey = 0, white = +%.4g", double(r.displacementScale));
+ ImGui::TextDisabled(tr("Displacement: mid-grey = 0, white = +%.4g"), double(r.displacementScale));
if (r.missRatio() >= 0.0005f) {
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::ColorConvertU32ToFloat4(ui::color::danger));
- ImGui::TextWrapped("%.1f%% of texels found no surface: raise Front / Rear", double(100.0f * r.missRatio()));
+ ImGui::TextWrapped(tr("%.1f%% of texels found no surface: raise Front / Rear"), double(100.0f * r.missRatio()));
ImGui::PopStyleColor();
}
- ImGui::Checkbox("Preview Normal Map", &b.preview);
+ ImGui::Checkbox(tr("Preview Normal Map"), &b.preview);
ui::HelpAction(*this, "bake.preview");
ImGui::SameLine();
ui::ActionButton(*this, "bake.open_folder", ImVec2(-1, 0));
diff --git a/src/app/PanelBlender.cpp b/src/app/PanelBlender.cpp
index b57e8184..bc80b1a4 100644
--- a/src/app/PanelBlender.cpp
+++ b/src/app/PanelBlender.cpp
@@ -71,17 +71,17 @@ void App::receiveFromBlender() {
}
void App::drawBlenderMenu() {
- if (!ImGui::BeginMenu("Blender")) return;
+ if (!ImGui::BeginMenu(tr("Blender"))) return;
menuAction(*this, "file.send_blender");
menuAction(*this, "file.receive_blender");
- ImGui::MenuItem("Receive automatically##blender", nullptr, &blenderAutoReceive_);
+ ImGui::MenuItem(tr("Receive automatically##blender"), nullptr, &blenderAutoReceive_);
ui::HelpText("Receive automatically", nullptr,
"Load what Blender sends as soon as it arrives (checked once a second). Off: use Receive from "
"Blender.",
"File > Blender");
const std::string root = blenderExchangeRoot();
- ImGui::TextDisabled("Needs the SculptForge add-on in Blender\n(Help > User Guide > Working with Blender).");
- if (ImGui::IsItemHovered() && !root.empty()) ImGui::SetTooltip("Exchange folder: %s", root.c_str());
+ ImGui::TextDisabled(tr("Needs the SculptForge add-on in Blender\n(Help > User Guide > Working with Blender)."));
+ if (ImGui::IsItemHovered() && !root.empty()) ImGui::SetTooltip(tr("Exchange folder: %s"), root.c_str());
ImGui::EndMenu();
}
diff --git a/src/app/PanelBridge.cpp b/src/app/PanelBridge.cpp
index 495d5bce..43b699ea 100644
--- a/src/app/PanelBridge.cpp
+++ b/src/app/PanelBridge.cpp
@@ -49,26 +49,26 @@ void App::runBridgeCommand(const std::string& name, const Args& args) {
void App::drawBridgeMenu() {
if (!bridgeInitialised_) pollBridge(); // sets up the dialogs
- if (!ImGui::BeginMenu("Bridge")) return;
+ if (!ImGui::BeginMenu(tr("Bridge"))) return;
const std::string root = bridgeFolder_[0] ? std::string(bridgeFolder_) : bridgeDefaultRoot();
const bool bridge = !root.empty();
- if (ImGui::MenuItem("Send")) {
+ if (ImGui::MenuItem(tr("Send"))) {
runBridgeCommand("bridge_send");
if (bridge) bridgeAutoReceive_ = true; // a round trip comes back the same way
}
if (!bridge && ImGui::IsItemHovered()) ImGui::SetTooltip("%s", bridgeUnavailableMessage().c_str());
- if (ImGui::MenuItem("Receive")) runBridgeCommand("bridge_receive");
+ if (ImGui::MenuItem(tr("Receive"))) runBridgeCommand("bridge_receive");
if (!bridge && ImGui::IsItemHovered()) ImGui::SetTooltip("%s", bridgeUnavailableMessage().c_str());
- if (ImGui::MenuItem("Receive automatically", nullptr, &bridgeAutoReceive_, bridge) && bridgeAutoReceive_)
+ if (ImGui::MenuItem(tr("Receive automatically"), nullptr, &bridgeAutoReceive_, bridge) && bridgeAutoReceive_)
bridgeListTime_ = fileTime(bridgeObjectListPath(root));
- if (bridge) ImGui::TextDisabled("Bridge folder: %s", root.c_str());
- else ImGui::TextDisabled("No default bridge folder on this system;\nBridge files still import and export.");
+ if (bridge) ImGui::TextDisabled(tr("Bridge folder: %s"), root.c_str());
+ else ImGui::TextDisabled(tr("No default bridge folder on this system;\nBridge files still import and export."));
ImGui::SetNextItemWidth(260.0f * uiScale_);
- ImGui::InputTextWithHint("##bridgefolder", "Custom bridge folder (optional)", bridgeFolder_, sizeof(bridgeFolder_));
+ ImGui::InputTextWithHint("##bridgefolder", tr("Custom bridge folder (optional)"), bridgeFolder_, sizeof(bridgeFolder_));
ImGui::Separator();
- if (ImGui::MenuItem("Import Bridge file..."))
+ if (ImGui::MenuItem(tr("Import Bridge file...")))
SDL_ShowOpenFileDialog(onBridgeFileChosen, &bridgeDialogs_[int(BridgeFile::Import)], window_, kBridgeFilters, 2, nullptr, false);
- if (ImGui::MenuItem("Export Bridge file..."))
+ if (ImGui::MenuItem(tr("Export Bridge file...")))
SDL_ShowSaveFileDialog(onBridgeFileChosen, &bridgeDialogs_[int(BridgeFile::Export)], window_, kBridgeFilters, 2, nullptr);
ImGui::EndMenu();
}
diff --git a/src/app/PanelBrushGallery.cpp b/src/app/PanelBrushGallery.cpp
index 11d40b34..91695540 100644
--- a/src/app/PanelBrushGallery.cpp
+++ b/src/app/PanelBrushGallery.cpp
@@ -193,7 +193,7 @@ void App::drawBrushGallery() {
ImGui::SetNextWindowPos(vp->GetCenter(), ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f));
ImGui::SetNextWindowSizeConstraints(ImVec2(360 * scale, 300 * scale), ImVec2(FLT_MAX, FLT_MAX));
ImGui::SetNextWindowBgAlpha(1.0f); // a browsing window: nothing behind it should show through
- if (!ImGui::Begin("Community brushes", &showBrushGallery_, ImGuiWindowFlags_NoCollapse)) {
+ if (!ImGui::Begin(tr("Community brushes"), &showBrushGallery_, ImGuiWindowFlags_NoCollapse)) {
ImGui::End();
return;
}
@@ -205,7 +205,7 @@ void App::drawBrushGallery() {
const float spacing = ImGui::GetStyle().ItemSpacing.x;
ImGui::SetNextItemWidth(std::max(80.0f, ImGui::GetContentRegionAvail().x - tagW - refreshW - shareW - 3 * spacing));
ImGui::SetNextItemAllowOverlap();
- ImGui::InputTextWithHint("##gallerysearch", "Search brushes (scales, skin, stone...)", g.search, sizeof g.search);
+ ImGui::InputTextWithHint("##gallerysearch", tr("Search brushes (scales, skin, stone...)"), g.search, sizeof g.search);
if (g.search[0]) { // a clear button inside the field's right end
const ImVec2 end = ImGui::GetItemRectMax(), start = ImGui::GetItemRectMin();
const float h = end.y - start.y;
@@ -213,50 +213,50 @@ void App::drawBrushGallery() {
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0));
if (ImGui::Button("x##clearsearch", ImVec2(h, h))) g.search[0] = '\0';
ImGui::PopStyleColor();
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("Clear the search");
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("Clear the search"));
} // SameLine below continues after the field (the button ends where it does)
ImGui::SameLine();
ImGui::SetNextItemWidth(tagW);
- if (ImGui::BeginCombo("##gallerytag", g.tag.empty() ? "All tags" : g.tag.c_str())) {
- if (ImGui::Selectable("All tags", g.tag.empty())) g.tag.clear();
+ if (ImGui::BeginCombo("##gallerytag", tr(g.tag.empty() ? "All tags" : g.tag.c_str()))) {
+ if (ImGui::Selectable(tr("All tags"), g.tag.empty())) g.tag.clear();
for (const auto& t : g.tags)
if (ImGui::Selectable(t.c_str(), g.tag == t)) g.tag = t;
ImGui::EndCombo();
}
ImGui::SameLine();
ImGui::BeginDisabled(running(g.pendingIndex));
- if (ImGui::Button("Refresh")) refreshBrushGallery();
+ if (ImGui::Button(tr("Refresh"))) refreshBrushGallery();
ImGui::EndDisabled();
ImGui::SameLine();
- if (ImGui::Button("Share yours")) {
+ if (ImGui::Button(tr("Share yours"))) {
if (interactive()) SDL_OpenURL(kBrushGalleryShareUrl);
status_ = std::string("Share a brush: ") + kBrushGalleryShareUrl;
}
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("Save your brush from Brush Lab, then open a pull request on the gallery.\nOpens %s",
+ ImGui::SetTooltip(tr("Save your brush from Brush Lab, then open a pull request on the gallery.\nOpens %s"),
kBrushGalleryShareUrl);
// State line: loading, offline, error.
const ImVec4 warnColor(0.95f, 0.70f, 0.30f, 1.0f), errorColor(1.0f, 0.45f, 0.40f, 1.0f);
if (running(g.pendingIndex) && !g.loaded) {
- hint("Loading the brush gallery...");
+ hint(tr("Loading the brush gallery..."));
} else if (!g.error.empty() && !g.loaded) {
ImGui::Spacing();
ImGui::PushStyleColor(ImGuiCol_Text, errorColor);
- ImGui::TextWrapped("Can't reach the brush gallery: %s", g.error.c_str());
+ ImGui::TextWrapped(tr("Can't reach the brush gallery: %s"), g.error.c_str());
ImGui::PopStyleColor();
- hint(galleryLocalPath(g.location).empty()
+ hint(tr(galleryLocalPath(g.location).empty()
? "Check your internet connection and try again. Brushes you already installed keep working."
- : "Check that the gallery folder exists and has an index.json. Brushes you already installed keep working.");
- if (ImGui::Button("Try again")) refreshBrushGallery();
+ : "Check that the gallery folder exists and has an index.json. Brushes you already installed keep working."));
+ if (ImGui::Button(tr("Try again"))) refreshBrushGallery();
} else if (g.loaded) {
if (g.offline) {
ImGui::PushStyleColor(ImGuiCol_Text, warnColor);
- ImGui::TextWrapped("Offline - showing the gallery from your last visit (%s).", g.offlineReason.c_str());
+ ImGui::TextWrapped(tr("Offline - showing the gallery from your last visit (%s)."), g.offlineReason.c_str());
ImGui::PopStyleColor();
} else if (!g.error.empty()) {
ImGui::PushStyleColor(ImGuiCol_Text, errorColor);
- ImGui::TextWrapped("Refresh failed: %s", g.error.c_str());
+ ImGui::TextWrapped(tr("Refresh failed: %s"), g.error.c_str());
ImGui::PopStyleColor();
}
if (!g.installError.empty()) {
@@ -279,7 +279,7 @@ void App::drawBrushGallery() {
const float footer = ImGui::GetFrameHeightWithSpacing() + ImGui::GetTextLineHeightWithSpacing();
if (ImGui::BeginChild("##gallerygrid", ImVec2(0, -footer), ImGuiChildFlags_None)) {
- if (g.loaded && shown.empty()) hint(g.index.brushes.empty() ? "The gallery is empty." : "No brushes match your search.");
+ if (g.loaded && shown.empty()) hint(tr(g.index.brushes.empty() ? "The gallery is empty." : "No brushes match your search."));
const float avail = ImGui::GetContentRegionAvail().x;
const float minCard = 190 * scale;
const int columns = std::max(1, int((avail + spacing) / (minCard + spacing)));
@@ -371,18 +371,18 @@ void App::drawBrushGallery() {
std::snprintf(g.sourceEdit, sizeof g.sourceEdit, "%s", ai::brushGallerySetting().c_str());
g.sourceEditInit = true;
}
- hint("Brushes are data only (no code), shared under CC0. Installed brushes join your library.");
+ hint(tr("Brushes are data only (no code), shared under CC0. Installed brushes join your library."));
if (ai::brushGalleryFromEnvironment()) {
hint(("Gallery: " + g.location + " (from SCULPTFORGE_BRUSH_GALLERY)").c_str());
} else {
ImGui::AlignTextToFramePadding();
- ImGui::TextDisabled("Gallery");
+ ImGui::TextDisabled(tr("Gallery"));
ImGui::SameLine();
ImGui::SetNextItemWidth(-ImGui::CalcTextSize("Use").x - ImGui::GetStyle().FramePadding.x * 2 - spacing);
- ImGui::InputTextWithHint("##gallerysource", "Community gallery (or a URL / folder for a studio mirror)",
+ ImGui::InputTextWithHint("##gallerysource", tr("Community gallery (or a URL / folder for a studio mirror)"),
g.sourceEdit, sizeof g.sourceEdit);
ImGui::SameLine();
- if (ImGui::Button("Use")) {
+ if (ImGui::Button(tr("Use"))) {
std::string err;
if (ai::saveBrushGallerySetting(g.sourceEdit, err)) refreshBrushGallery();
else status_ = err;
diff --git a/src/app/PanelBrushLibrary.cpp b/src/app/PanelBrushLibrary.cpp
index 0266a0ec..6c750187 100644
--- a/src/app/PanelBrushLibrary.cpp
+++ b/src/app/PanelBrushLibrary.cpp
@@ -248,7 +248,7 @@ void App::drawCustomBrushes() {
if (!b.description.empty()) ImGui::TextUnformatted(b.description.c_str());
ImGui::TextDisabled("%s", brushOriginText(b).c_str());
if (!b.origin.path.empty()) ImGui::TextDisabled("%s", b.origin.path.c_str());
- ImGui::TextDisabled("Right-click to share, rename or delete");
+ ImGui::TextDisabled(tr("Right-click to share, rename or delete"));
ImGui::PopTextWrapPos();
ImGui::EndTooltip();
}
@@ -259,14 +259,14 @@ void App::drawCustomBrushes() {
}
ImGui::TextDisabled("%s", b.name.c_str());
ImGui::Separator();
- if (ImGui::MenuItem("Copy brush code")) action = Action::Copy;
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("One line of text to share in chat, email or a forum");
- if (ImGui::MenuItem("Save .sfbrush...")) action = Action::Save;
- if (ImGui::MenuItem("Rename...##brush")) action = Action::Rename;
- if (ImGui::MenuItem("Delete...##brush", nullptr, false, isUserLibraryBrush(b))) action = Action::Delete;
+ if (ImGui::MenuItem(tr("Copy brush code"))) action = Action::Copy;
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("One line of text to share in chat, email or a forum"));
+ if (ImGui::MenuItem(tr("Save .sfbrush..."))) action = Action::Save;
+ if (ImGui::MenuItem(tr("Rename...##brush"))) action = Action::Rename;
+ if (ImGui::MenuItem(tr("Delete...##brush"), nullptr, false, isUserLibraryBrush(b))) action = Action::Delete;
if (!isUserLibraryBrush(b) && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled))
- ImGui::SetTooltip("Only brushes in your own library can be deleted");
- if (ImGui::MenuItem("Reveal in folder", nullptr, false, !b.origin.path.empty())) action = Action::Reveal;
+ ImGui::SetTooltip(tr("Only brushes in your own library can be deleted"));
+ if (ImGui::MenuItem(tr("Reveal in folder"), nullptr, false, !b.origin.path.empty())) action = Action::Reveal;
if (action != Action::None) actionIndex = i;
ImGui::EndPopup();
}
@@ -321,14 +321,14 @@ void App::drawBrushLibraryPopups() {
doc_.brushes[size_t(index)].origin.source != BrushSource::Session &&
doc_.brushes[size_t(index)].origin.source != BrushSource::Project) {
ImGui::PushTextWrapPos(300 * scale);
- ImGui::TextDisabled("The %s brush stays as it is; the renamed copy goes into your library.",
+ ImGui::TextDisabled(tr("The %s brush stays as it is; the renamed copy goes into your library."),
brushSourceName(doc_.brushes[size_t(index)].origin.source));
ImGui::PopTextWrapPos();
}
if (!error.empty()) ImGui::TextColored(ImVec4(1.0f, 0.45f, 0.45f, 1.0f), "%s", error.c_str());
- ok |= ImGui::Button("Rename", buttonSize);
+ ok |= ImGui::Button(tr("Rename"), buttonSize);
ImGui::SameLine();
- if (ImGui::Button("Cancel", buttonSize) || ImGui::IsKeyPressed(ImGuiKey_Escape) || index < 0) ImGui::CloseCurrentPopup();
+ if (ImGui::Button(tr("Cancel"), buttonSize) || ImGui::IsKeyPressed(ImGuiKey_Escape) || index < 0) ImGui::CloseCurrentPopup();
else if (ok) {
runCommand("brush_rename", {{"name", brushPopupName_}, {"to", std::string(brushRenameBuf_)}});
if (lastCommandOk_) ImGui::CloseCurrentPopup();
@@ -341,20 +341,20 @@ void App::drawBrushLibraryPopups() {
if (ImGui::BeginPopupModal(kDeletePopup, nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
if (index >= 0) {
const BrushRecipe& b = doc_.brushes[size_t(index)];
- ImGui::Text("Delete '%s' from your brush library?", b.name.c_str());
+ ImGui::Text(tr("Delete '%s' from your brush library?"), b.name.c_str());
ImGui::PushTextWrapPos(340 * scale);
if (b.origin.overrides != BrushSource::Session)
- ImGui::TextDisabled("The %s brush of the same name is used again.", brushSourceName(b.origin.overrides));
+ ImGui::TextDisabled(tr("The %s brush of the same name is used again."), brushSourceName(b.origin.overrides));
else
- ImGui::TextDisabled("Its .sfbrush file is removed. Copy its brush code first if you might want it back.");
+ ImGui::TextDisabled(tr("Its .sfbrush file is removed. Copy its brush code first if you might want it back."));
ImGui::PopTextWrapPos();
}
- if (ImGui::Button("Delete", buttonSize) && index >= 0) {
+ if (ImGui::Button(tr("Delete"), buttonSize) && index >= 0) {
runCommand("brush_delete", {{"name", brushPopupName_}});
ImGui::CloseCurrentPopup();
}
ImGui::SameLine();
- if (ImGui::Button("Cancel", buttonSize) || ImGui::IsKeyPressed(ImGuiKey_Escape) || index < 0) ImGui::CloseCurrentPopup();
+ if (ImGui::Button(tr("Cancel"), buttonSize) || ImGui::IsKeyPressed(ImGuiKey_Escape) || index < 0) ImGui::CloseCurrentPopup();
ImGui::EndPopup();
}
}
diff --git a/src/app/PanelFace.cpp b/src/app/PanelFace.cpp
index ed499263..5e6f790e 100644
--- a/src/app/PanelFace.cpp
+++ b/src/app/PanelFace.cpp
@@ -281,16 +281,16 @@ void App::drawFaceOverlay() {
void App::drawFaceContents() {
const float s = uiScale_;
- dimText("The 52 Apple ARKit blend shapes for rigs and live face capture, fitted to this head.");
+ dimText(tr("The 52 Apple ARKit blend shapes for rigs and live face capture, fitted to this head."));
actionButton(*this, "face.generate");
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x * 0.5f);
- const char* symmetry[] = {"Auto", "On", "Off"};
- ImGui::Combo("Symmetry##face", &faceSymmetry_, symmetry, 3);
+ const char* symmetry[] = {tr("Auto"), tr("On"), tr("Off")};
+ ImGui::Combo(tr("Symmetry##face"), &faceSymmetry_, symmetry, 3);
ui::HelpText("Symmetry", nullptr,
"Auto: Left and Right shapes are made exact mirror images when the sculpt is symmetric about X = 0. "
"On: always (asymmetric spots take the average). Off: each side as fitted.",
kFacePath);
- ImGui::Checkbox("Parts too##face", &faceParts_);
+ ImGui::Checkbox(tr("Parts too##face"), &faceParts_);
ui::HelpText("Parts too", nullptr,
"Eyes (Parts named Eye...) turn for the eyeLook shapes, Teeth / Tongue follow the jaw below the "
"bite (and tongueOut), and other Parts on the face (brows, lashes, a beard) follow the skin.",
@@ -308,14 +308,14 @@ void App::drawFaceContents() {
ImGui::TextDisabled("%s", placed);
if (faceLandmarks_.count()) {
ImGui::SameLine(ImGui::GetContentRegionAvail().x - 40 * s);
- if (ImGui::SmallButton("Clear##facelm")) runAction(actions_, "face.landmarks_clear");
+ if (ImGui::SmallButton(tr("Clear##facelm"))) runAction(actions_, "face.landmarks_clear");
ui::HelpAction(*this, "face.landmarks_clear");
}
// Face test.
tray::GroupLabel(*this, "Face test");
const bool shapes = hasFaceShapes();
- if (!shapes) dimText("Generate the shapes first.");
+ if (!shapes) dimText(tr("Generate the shapes first."));
ImGui::BeginDisabled(!shapes);
const auto& presets = facePresets();
const float cell = (ImGui::GetContentRegionAvail().x - 3 * ImGui::GetStyle().ItemSpacing.x) / 4.0f;
@@ -357,16 +357,16 @@ void App::drawFaceContents() {
actionButton(*this, "face.take_load");
if (!faceTake_.empty()) {
ImGui::TextDisabled("%s: %.1f / %.1f s", faceTake_.name.c_str(), double(faceTakeTime_), double(faceTake_.duration()));
- if (ImGui::Button(faceTakePlaying_ ? "Pause##facetake" : "Play##facetake", ImVec2(half, 0))) runAction(actions_, "face.take_play");
+ if (ImGui::Button(tr(faceTakePlaying_ ? "Pause##facetake" : "Play##facetake"), ImVec2(half, 0))) runAction(actions_, "face.take_play");
ui::HelpAction(*this, "face.take_play");
ImGui::SameLine();
- ImGui::Checkbox("Loop##facetake", &faceTakeLoop_);
+ ImGui::Checkbox(tr("Loop##facetake"), &faceTakeLoop_);
ui::HelpText("Loop", nullptr, "Play the take again from the start when it ends.", kFacePath);
actionButton(*this, "face.take_bake");
}
MorphAnimation baked;
if (bakedFaceAnimation(doc_, baked)) {
- ImGui::TextDisabled("Baked: %s (%.1f s, exports with GLB / USD)", baked.name.c_str(), double(baked.duration()));
+ ImGui::TextDisabled(tr("Baked: %s (%.1f s, exports with GLB / USD)"), baked.name.c_str(), double(baked.duration()));
actionButton(*this, "face.take_clear");
}
}
diff --git a/src/app/PanelFill.cpp b/src/app/PanelFill.cpp
index f7a6e86a..88e8d6fc 100644
--- a/src/app/PanelFill.cpp
+++ b/src/app/PanelFill.cpp
@@ -167,7 +167,7 @@ void App::drawFillLayerControls() {
ImGui::Spacing();
ImGui::TextDisabled("%s", tr("Fill Layers"));
const float half = (ImGui::GetContentRegionAvail().x - style.ItemSpacing.x) * 0.5f;
- if (ImGui::Button(ICON_LC_PLUS " Fill Layer##fill", ImVec2(half, 0)))
+ if (ImGui::Button(tr(ICON_LC_PLUS " Fill Layer##fill"), ImVec2(half, 0)))
run("fill_layer", {{"name", std::string("Fill")}, {"color", colorToHex(doc_.paintColor)}});
ui::HelpText("New Fill Layer", nullptr,
"Add a Fill layer: a material over the whole Part through a mask you build from effects (Edge Wear, "
@@ -253,9 +253,9 @@ void App::drawFillLayerControls() {
ImGui::SliderFloat(id, &v, 0.0f, 1.0f, fmt);
if (ImGui::IsItemDeactivatedAfterEdit()) run("fill_layer", withLayer({{"action", std::string("set")}, {key, double(v)}}));
};
- materialSlider("##fillrough", "roughness", f.material.roughness, "Roughness %.2f", Channel::Roughness);
- materialSlider("##fillmetal", "metallic", f.material.metallic, "Metallic %.2f", Channel::Metallic);
- materialSlider("##fillheight", "height", f.material.height, "Height %.2f", Channel::Height);
+ materialSlider("##fillrough", "roughness", f.material.roughness, tr("Roughness %.2f"), Channel::Roughness);
+ materialSlider("##fillmetal", "metallic", f.material.metallic, tr("Metallic %.2f"), Channel::Metallic);
+ materialSlider("##fillheight", "height", f.material.height, tr("Height %.2f"), Channel::Height);
// Mask effects, top to bottom.
ImGui::TextDisabled("%s", tr("Mask"));
@@ -294,22 +294,22 @@ void App::drawFillLayerControls() {
};
switch (e.kind) {
case MaskEffectKind::Generator:
- slider("##level", "level", e.level, 0.0f, 1.0f, "Level %.2f");
- slider("##soft", "softness", e.softness, 0.0f, 1.0f, "Softness %.2f");
- slider("##breakup", "breakup", e.breakup, 0.0f, 2.0f, "Break-up %.2f");
- slider("##scale", "scale", e.scale, 0.002f, 0.3f, "Noise size %.3f");
+ slider("##level", "level", e.level, 0.0f, 1.0f, tr("Level %.2f"));
+ slider("##soft", "softness", e.softness, 0.0f, 1.0f, tr("Softness %.2f"));
+ slider("##breakup", "breakup", e.breakup, 0.0f, 2.0f, tr("Break-up %.2f"));
+ slider("##scale", "scale", e.scale, 0.002f, 0.3f, tr("Noise size %.3f"));
break;
case MaskEffectKind::Noise:
- slider("##scale", "scale", e.scale, 0.002f, 0.3f, "Size %.3f");
- slider("##contrast", "contrast", e.contrast, 0.0f, 4.0f, "Contrast %.2f");
+ slider("##scale", "scale", e.scale, 0.002f, 0.3f, tr("Size %.3f"));
+ slider("##contrast", "contrast", e.contrast, 0.0f, 4.0f, tr("Contrast %.2f"));
break;
case MaskEffectKind::Levels:
- slider("##inlow", "in_low", e.inLow, 0.0f, 1.0f, "In low %.2f");
- slider("##inhigh", "in_high", e.inHigh, 0.0f, 1.0f, "In high %.2f");
- slider("##gamma", "gamma", e.gamma, 0.1f, 4.0f, "Gamma %.2f");
+ slider("##inlow", "in_low", e.inLow, 0.0f, 1.0f, tr("In low %.2f"));
+ slider("##inhigh", "in_high", e.inHigh, 0.0f, 1.0f, tr("In high %.2f"));
+ slider("##gamma", "gamma", e.gamma, 0.1f, 4.0f, tr("Gamma %.2f"));
break;
- case MaskEffectKind::Blur: slider("##radius", "radius", e.radius, 0.0f, 32.0f, "Radius %.0f px"); break;
- case MaskEffectKind::Fill: slider("##value", "value", e.value, 0.0f, 1.0f, "Value %.2f"); break;
+ case MaskEffectKind::Blur: slider("##radius", "radius", e.radius, 0.0f, 32.0f, tr("Radius %.0f px")); break;
+ case MaskEffectKind::Fill: slider("##value", "value", e.value, 0.0f, 1.0f, tr("Value %.2f")); break;
case MaskEffectKind::Paint: ImGui::TextDisabled("%s", tr("Paint on the model with this layer active (Alt erases)")); break;
default: break;
}
diff --git a/src/app/PanelForgeSpheres.cpp b/src/app/PanelForgeSpheres.cpp
index 869fce3b..ff85ec71 100644
--- a/src/app/PanelForgeSpheres.cpp
+++ b/src/app/PanelForgeSpheres.cpp
@@ -115,7 +115,7 @@ void App::drawForgeSpheresContents() {
if (!forgesphereActive()) {
ui::ActionButton(*this, "forgesphere.new", ImVec2(full, 0));
ImGui::PushTextWrapPos(0.0f);
- ImGui::TextDisabled("Block out a base mesh from connected spheres, then Make Mesh to sculpt it.");
+ ImGui::TextDisabled(tr("Block out a base mesh from connected spheres, then Make Mesh to sculpt it."));
ImGui::PopTextWrapPos();
return;
}
@@ -137,7 +137,7 @@ void App::drawForgeSpheresContents() {
ImGui::TextDisabled("%zu %s", doc_.mesh.forgespheres.size(), doc_.mesh.forgespheres.size() == 1 ? "sphere" : "spheres");
if (const int sel = forgesphereSelection(); sel >= 0) {
ImGui::SameLine();
- ImGui::TextDisabled(sel == 0 ? "(root selected)" : "(sphere %d selected)", sel);
+ ImGui::TextDisabled(tr(sel == 0 ? "(root selected)" : "(sphere %d selected)"), sel);
}
tray::GroupLabel(*this, "Make Mesh");
ui::ActionButton(*this, "forgesphere.make_mesh", ImVec2(half, 0));
@@ -364,11 +364,11 @@ void App::drawForgeSphereMenu() {
return;
}
Demo::pushScope("Forge Sphere menu");
- ImGui::TextDisabled(i == 0 ? "Root sphere" : "Sphere %d", i);
+ ImGui::TextDisabled(tr(i == 0 ? "Root sphere" : "Sphere %d"), i);
ImGui::Separator();
- if (ImGui::MenuItem("Delete Sphere", nullptr, false, i > 0)) forgesphereEdit(ForgeSphereEdit::Delete, i);
- if (ImGui::MenuItem("Insert Between", nullptr, false, i > 0)) forgesphereEdit(ForgeSphereEdit::Insert, i);
- if (ImGui::MenuItem("Set as Root", nullptr, false, i > 0)) forgesphereEdit(ForgeSphereEdit::SetRoot, i);
+ if (ImGui::MenuItem(tr("Delete Sphere"), nullptr, false, i > 0)) forgesphereEdit(ForgeSphereEdit::Delete, i);
+ if (ImGui::MenuItem(tr("Insert Between"), nullptr, false, i > 0)) forgesphereEdit(ForgeSphereEdit::Insert, i);
+ if (ImGui::MenuItem(tr("Set as Root"), nullptr, false, i > 0)) forgesphereEdit(ForgeSphereEdit::SetRoot, i);
Demo::popScope();
ImGui::EndPopup();
}
diff --git a/src/app/PanelIntegrations.cpp b/src/app/PanelIntegrations.cpp
index 532ad593..977dfc7b 100644
--- a/src/app/PanelIntegrations.cpp
+++ b/src/app/PanelIntegrations.cpp
@@ -48,17 +48,17 @@ void App::updateDiscordPresence() {
void App::drawIntegrationsPrefs() {
const char* path = "Preferences > Integrations";
- bool changed = ImGui::Checkbox("Show SculptForge on Discord##prefs.discord", &discordPrefs_.enabled);
+ bool changed = ImGui::Checkbox(tr("Show SculptForge on Discord##prefs.discord"), &discordPrefs_.enabled);
ui::HelpText("Show SculptForge on Discord", nullptr,
"Your Discord profile shows SculptForge, its icon and how long you've been sculpting. Sent only to "
"the Discord app on this computer, which shows it to your friends. Off by default.",
path);
ImGui::BeginDisabled(!discordPrefs_.enabled);
- changed |= ImGui::Checkbox("Show the monthly challenge##prefs.discord", &discordPrefs_.showChallenge);
+ changed |= ImGui::Checkbox(tr("Show the monthly challenge##prefs.discord"), &discordPrefs_.showChallenge);
ui::HelpText("Show the monthly challenge", nullptr, "Adds \"Monthly challenge: <theme>\", with the theme you type below.", path);
ImGui::BeginDisabled(!discordPrefs_.showChallenge);
ImGui::SetNextItemWidth(-1);
- if (ImGui::InputTextWithHint("##prefs.discord.challenge", "Theme (64 characters at most)", discordChallengeBuf_,
+ if (ImGui::InputTextWithHint("##prefs.discord.challenge", tr("Theme (64 characters at most)"), discordChallengeBuf_,
sizeof discordChallengeBuf_)) {
discordPrefs_.challenge = discord::sanitize(discordChallengeBuf_, discord::kChallengeMax);
}
@@ -67,12 +67,12 @@ void App::drawIntegrationsPrefs() {
changed = true;
}
ImGui::EndDisabled();
- changed |= ImGui::Checkbox("Show the file name##prefs.discord", &discordPrefs_.showFileName);
+ changed |= ImGui::Checkbox(tr("Show the file name##prefs.discord"), &discordPrefs_.showFileName);
ui::HelpText("Show the file name", nullptr, "Adds the name of the file you're working on (never its folder). Off by default.",
path);
ImGui::EndDisabled();
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- ImGui::TextWrapped("Nothing else is sent: no folders, no user name, no model details. Needs the Discord app running.");
+ ImGui::TextWrapped(tr("Nothing else is sent: no folders, no user name, no model details. Needs the Discord app running."));
ImGui::PopStyleColor();
if (changed) {
saveProjectPrefs();
diff --git a/src/app/PanelKelvinlet.cpp b/src/app/PanelKelvinlet.cpp
index ac086d85..a6932804 100644
--- a/src/app/PanelKelvinlet.cpp
+++ b/src/app/PanelKelvinlet.cpp
@@ -263,17 +263,17 @@ void App::drawKelvinletSection() {
ui::SliderInside("##clonespacing", &k.cloneSpacing, 0.25f, 3.0f, "Clone Spacing %.2f");
ui::HelpText("Clone Spacing", nullptr,
"Detail Clone: the distance between stamps along the stroke, in stamp widths (1 = edge to edge).", help);
- ImGui::Checkbox("Clone follows stroke", &k.cloneFollowStroke);
+ ImGui::Checkbox(tr("Clone follows stroke"), &k.cloneFollowStroke);
ui::HelpText("Clone follows stroke", nullptr,
"Detail Clone: each stamp's top turns with the stroke (a row of scales or rivets along a curve); off, "
"every stamp keeps the screen's up.",
help);
ImGui::Dummy(ImVec2(0, 2.0f * uiScale_));
ui::ActionButton(*this, "brush.capture_view", ImVec2(ImGui::GetContentRegionAvail().x, 0));
- hint("KelvinGrab moves like Move with elastic, volume-keeping falloff. KelvinTwist and KelvinScale act where you "
+ hint(tr("KelvinGrab moves like Move with elastic, volume-keeping falloff. KelvinTwist and KelvinScale act where you "
"press: drag right to turn clockwise or swell, left to turn back or pinch. KelvinSnake pulls tapering horns. "
"Detail Clone stamps the VDM brush's map along the stroke: capture one from the model with Capture from "
- "view.");
+ "view."));
}
void App::registerKelvinletActions() {
@@ -413,7 +413,7 @@ void App::drawCaptureWindow() {
ImGui::SetNextWindowSize(ImVec2(340.0f * s, 0.0f), ImGuiCond_Appearing);
const CanvasRect cr = canvasRect();
ImGui::SetNextWindowPos(ImVec2(cr.x + cr.w - 360.0f * s, cr.y + 60.0f * s), ImGuiCond_Appearing);
- if (!ImGui::Begin("Capture from view##capture", &capture_.open, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_AlwaysAutoResize)) {
+ if (!ImGui::Begin(tr("Capture from view##capture"), &capture_.open, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::End();
return;
}
@@ -428,12 +428,12 @@ void App::drawCaptureWindow() {
ImGui::TextDisabled("%s", label);
ImGui::EndGroup();
};
- preview(capture_.alpha.empty() ? ImTextureID(0) : thumbs_.alpha(capture_.alpha), "Height alpha");
+ preview(capture_.alpha.empty() ? ImTextureID(0) : thumbs_.alpha(capture_.alpha), tr("Height alpha"));
ImGui::SameLine();
- preview(capture_.vdm ? thumbs_.vdm(capture_.vdm) : ImTextureID(0), "Vector displacement");
+ preview(capture_.vdm ? thumbs_.vdm(capture_.vdm) : ImTextureID(0), tr("Vector displacement"));
if (!capture_.error.empty()) ImGui::TextColored(ImVec4(1.0f, 0.55f, 0.4f, 1.0f), "%s", capture_.error.c_str());
else
- ImGui::TextDisabled("%zu points, height %.3g, reach %.2f radii", capture_.vdmInfo.vertices,
+ ImGui::TextDisabled(tr("%zu points, height %.3g, reach %.2f radii"), capture_.vdmInfo.vertices,
capture_.alphaInfo.depthRange, capture_.vdmInfo.maxOffset);
bool again = false;
@@ -461,16 +461,16 @@ void App::drawCaptureWindow() {
if (ImGui::SliderInt("##capres", &ri, 0, 3, (std::to_string(kRes[ri]) + " px").c_str())) o.resolution = kRes[ri];
again |= ImGui::IsItemDeactivatedAfterEdit();
ui::HelpText("Resolution", nullptr, "Pixels a side of the alpha and the map (512 or less suits most details).", help);
- again |= ImGui::Checkbox("Fit plane", &o.fitPlane);
+ again |= ImGui::Checkbox(tr("Fit plane"), &o.fitPlane);
ui::HelpText("Fit plane", nullptr,
"Height alpha: measure from a plane fitted to the surface (a tilted surface captures level) instead of "
"the screen's plane.",
help);
ImGui::SameLine();
- again |= ImGui::Checkbox("Invert##capture", &o.invert);
+ again |= ImGui::Checkbox(tr("Invert##capture"), &o.invert);
ui::HelpText("Invert", nullptr, "Height alpha: white = deepest (for carving brushes).", help);
ImGui::SetNextItemWidth(-1);
- if (ImGui::InputTextWithHint("##capname", "Name", capture_.name, sizeof capture_.name)) {
+ if (ImGui::InputTextWithHint("##capname", tr("Name"), capture_.name, sizeof capture_.name)) {
if (!capture_.alpha.empty()) capture_.alpha.name = capture_.name;
}
ui::HelpText("Name", nullptr, "What the alpha and the VDM are called in your library (the same name replaces).", help);
@@ -493,7 +493,7 @@ void App::drawCaptureWindow() {
};
const float w2 = std::floor((ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.x) * 0.5f);
ImGui::BeginDisabled(!ok);
- if (ImGui::Button("Use as Alpha##capture", ImVec2(w2, 0))) {
+ if (ImGui::Button(tr("Use as Alpha##capture"), ImVec2(w2, 0))) {
Args a = args();
a["fit_plane"] = o.fitPlane;
a["invert"] = o.invert;
@@ -501,7 +501,7 @@ void App::drawCaptureWindow() {
}
ui::HelpText("Use as Alpha", nullptr, "Make the height capture the brush alpha (it shapes every brush's stamp).", help);
ImGui::SameLine();
- if (ImGui::Button("Use as VDM##capture", ImVec2(w2, 0))) {
+ if (ImGui::Button(tr("Use as VDM##capture"), ImVec2(w2, 0))) {
Args a = args();
a["save"] = false;
runCommand("capture_vdm", a);
@@ -510,7 +510,7 @@ void App::drawCaptureWindow() {
paintMode_ = false;
}
ui::HelpText("Use as VDM", nullptr, "Make the capture the VDM brush's map and pick the VDM brush (Drag Stamp stamps it).", help);
- if (ImGui::Button("Detail Clone##capture", ImVec2(w2, 0))) {
+ if (ImGui::Button(tr("Detail Clone##capture"), ImVec2(w2, 0))) {
Args a = args();
a["save"] = false;
runCommand("capture_vdm", a);
@@ -520,7 +520,7 @@ void App::drawCaptureWindow() {
}
ui::HelpText("Detail Clone", nullptr, "Paint copies of the captured detail along your strokes, each turned to follow the stroke.", help);
ImGui::SameLine();
- if (ImGui::Button("Save to Library##capture", ImVec2(w2, 0))) {
+ if (ImGui::Button(tr("Save to Library##capture"), ImVec2(w2, 0))) {
// The VDM into the brush library, the alpha into the Library's Alphas folder.
Args a = args();
a["save"] = true;
@@ -542,7 +542,7 @@ void App::drawCaptureWindow() {
"picker, Brush > Vector Displacement and the Library's Brush tab), with thumbnails.",
help);
ImGui::EndDisabled();
- if (ImGui::Button("Capture again##capture", ImVec2(-1, 0))) {
+ if (ImGui::Button(tr("Capture again##capture"), ImVec2(-1, 0))) {
capture_.armed = true;
status_ = "Capture: drag a square over the model (Shift: circle)";
}
diff --git a/src/app/PanelMasking.cpp b/src/app/PanelMasking.cpp
index b5058412..546f1e00 100644
--- a/src/app/PanelMasking.cpp
+++ b/src/app/PanelMasking.cpp
@@ -530,7 +530,7 @@ void App::drawMaskingSection() {
ImGui::SetNextItemWidth(-1);
ui::SliderInside("##maskcolortol", &maskColorTolerance_, 0.01f, 1.0f, "Colour tolerance %.2f");
ImGui::SetNextItemWidth(half);
- const char* facing[] = {"Faces the camera", "Faces up", "Faces down"};
+ const char* facing[] = {tr("Faces the camera"), tr("Faces up"), tr("Faces down")};
ImGui::Combo("##maskfacing", &maskFacingDir_, facing, 3);
ImGui::SameLine();
ImGui::SetNextItemWidth(-1);
diff --git a/src/app/PanelMaya.cpp b/src/app/PanelMaya.cpp
index 91325f55..a0a053a3 100644
--- a/src/app/PanelMaya.cpp
+++ b/src/app/PanelMaya.cpp
@@ -106,11 +106,11 @@ void App::receiveFromMaya() {
}
void App::drawMayaMenu() {
- if (!ImGui::BeginMenu("Maya")) return;
+ if (!ImGui::BeginMenu(tr("Maya"))) return;
menuAction(*this, "file.send_maya");
menuAction(*this, "file.receive_maya");
const bool hasFolder = !uiPrefs_.mayaFolder.empty();
- if (ImGui::MenuItem("Get automatically##maya", nullptr, &uiPrefs_.mayaAutoReceive, hasFolder)) {
+ if (ImGui::MenuItem(tr("Get automatically##maya"), nullptr, &uiPrefs_.mayaAutoReceive, hasFolder)) {
if (uiPrefs_.mayaAutoReceive) { // from now on: what is there already waits for Get from Maya
const std::string inbox = mayaInbox(uiPrefs_.mayaFolder);
mayaSeenRevision_ = mayaRevision(inbox);
@@ -125,8 +125,8 @@ void App::drawMayaMenu() {
ImGui::Separator();
menuAction(*this, "file.maya_folder");
if (hasFolder) {
- ImGui::TextDisabled("Folder: %s", uiPrefs_.mayaFolder.c_str());
- if (ImGui::MenuItem("Turn the Maya bridge off##maya")) {
+ ImGui::TextDisabled(tr("Folder: %s"), uiPrefs_.mayaFolder.c_str());
+ if (ImGui::MenuItem(tr("Turn the Maya bridge off##maya"))) {
uiPrefs_.mayaFolder.clear();
uiPrefs_.mayaAutoReceive = false;
if (!uiConfigDeterministic_) saveMayaPrefs(configDir_, uiPrefs_);
@@ -135,9 +135,9 @@ void App::drawMayaMenu() {
ui::HelpText("Turn the Maya bridge off", nullptr, "Forget the exchange folder; nothing in it is deleted.",
"File > Maya");
} else {
- ImGui::TextDisabled("Off: choose an exchange folder first.");
+ ImGui::TextDisabled(tr("Off: choose an exchange folder first."));
}
- ImGui::TextDisabled("Needs the SculptForge shelf script in Maya\n(Help > User Guide > Working with Maya).");
+ ImGui::TextDisabled(tr("Needs the SculptForge shelf script in Maya\n(Help > User Guide > Working with Maya)."));
ImGui::EndMenu();
}
diff --git a/src/app/PanelPacks.cpp b/src/app/PanelPacks.cpp
index ccaefed8..eef39db9 100644
--- a/src/app/PanelPacks.cpp
+++ b/src/app/PanelPacks.cpp
@@ -317,7 +317,7 @@ void App::drawPackReview() {
}
ImGui::Text("%s %s", tr("Author:"), m.author.c_str());
ImGui::Text("%s %s", tr("License:"), m.license.c_str());
- ImGui::TextDisabled("%s - %s unpacked", utf8(fsPath(packs_.reviewPath).filename()).c_str(),
+ ImGui::TextDisabled(tr("%s - %s unpacked"), utf8(fsPath(packs_.reviewPath).filename()).c_str(),
r->bytes >= 1024 * 1024 ? (std::to_string(r->bytes / (1024 * 1024)) + " MB").c_str()
: (std::to_string(std::max<uint64_t>(1, r->bytes / 1024)) + " KB").c_str());
if (!m.description.empty()) ImGui::TextWrapped("%s", m.description.c_str());
@@ -413,7 +413,7 @@ void App::drawPacksTab(float height) {
std::array<int, kPackItemTypes> counts{};
for (const PackItem& it : m.contents) ++counts[size_t(it.type)];
ImGui::SameLine();
- ImGui::TextDisabled("by %s - %s - %s", m.author.c_str(), m.license.c_str(), packCountsText(counts).c_str());
+ ImGui::TextDisabled(tr("by %s - %s - %s"), m.author.c_str(), m.license.c_str(), packCountsText(counts).c_str());
ImGui::SameLine();
const bool expanded = packs_.expanded == m.id;
if (ImGui::SmallButton((std::string(expanded ? tr("Hide") : tr("Details")) + "##" + m.id).c_str()))
@@ -463,7 +463,7 @@ void App::drawPacksTab(float height) {
ImGui::PushID(mac.path.c_str());
ImGui::TextUnformatted(mac.name.c_str());
ImGui::SameLine();
- ImGui::TextDisabled("%d commands", int(mac.statements.size()));
+ ImGui::TextDisabled(tr("%d commands"), int(mac.statements.size()));
ImGui::SameLine();
if (ImGui::SmallButton((std::string(tr("Run")) + "##run" + mac.path).c_str())) requestMacroRun(mac);
ImGui::SameLine();
@@ -632,7 +632,7 @@ void App::drawNewPack() {
ImGui::InputText(label, buf, size);
ui::HelpText(label, nullptr, help, "Library > Packs > New Pack");
};
- field("Name##newpack", packs_.name, sizeof packs_.name, "The pack's name, shown next to every item it brings.");
+ field(tr("Name##newpack"), packs_.name, sizeof packs_.name, "The pack's name, shown next to every item it brings.");
if (!packs_.id[0] && packs_.name[0]) {
std::string id;
for (unsigned char c : std::string(packs_.name))
@@ -641,11 +641,11 @@ void App::drawNewPack() {
while (!id.empty() && id.back() == '-') id.pop_back();
std::snprintf(packs_.id, sizeof packs_.id, "%s", id.substr(0, 64).c_str());
}
- field("Id##newpack", packs_.id, sizeof packs_.id,
+ field(tr("Id##newpack"), packs_.id, sizeof packs_.id,
"Its folder name: lower-case letters, digits, '.', '_' or '-'. A newer version keeps the same id.");
- field("Version##newpack", packs_.version, sizeof packs_.version, "1.0, 1.1, 2.0 ...");
- field("Author##newpack", packs_.author, sizeof packs_.author, "Who made it (shown when it's installed).");
- field("License##newpack", packs_.license, sizeof packs_.license, "For example CC-BY-4.0, CC0-1.0 or your own terms.");
+ field(tr("Version##newpack"), packs_.version, sizeof packs_.version, "1.0, 1.1, 2.0 ...");
+ field(tr("Author##newpack"), packs_.author, sizeof packs_.author, "Who made it (shown when it's installed).");
+ field(tr("License##newpack"), packs_.license, sizeof packs_.license, "For example CC-BY-4.0, CC0-1.0 or your own terms.");
ImGui::SetNextItemWidth(-110 * s);
ImGui::InputTextMultiline("Description##newpack", packs_.description, sizeof packs_.description,
ImVec2(-110 * s, ImGui::GetTextLineHeight() * 3.0f));
@@ -679,7 +679,7 @@ void App::drawNewPack() {
ui::HelpText("Save Pack", nullptr, "Write the .sfpack, checked exactly as an install would check it.",
"Library > Packs > New Pack");
ImGui::SameLine();
- ImGui::TextDisabled("%d items", chosen);
+ ImGui::TextDisabled(tr("%d items"), chosen);
ImGui::SameLine();
if (ImGui::Button(tr("Cancel##newpack"), ImVec2(100 * s, 0))) open = false;
ImGui::End();
@@ -821,7 +821,7 @@ void App::drawMacroEditor() {
return;
}
ImGui::SetNextItemWidth(-80 * s);
- ImGui::InputText("Name##macroname", macros_.name, sizeof macros_.name);
+ ImGui::InputText(tr("Name##macroname"), macros_.name, sizeof macros_.name);
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
ImGui::TextWrapped("%s", tr("One command per line, as in the console (# starts a comment). Files: a path inside "
"the project folder, or ? to pick one when it runs."));
diff --git a/src/app/PanelPaintLayers.cpp b/src/app/PanelPaintLayers.cpp
index 376d4feb..d38d6506 100644
--- a/src/app/PanelPaintLayers.cpp
+++ b/src/app/PanelPaintLayers.cpp
@@ -196,12 +196,12 @@ void App::drawPaintLayersContents() {
if (l) {
ImGui::TableSetColumnIndex(2);
if (iconToggle(("##lock " + name).c_str(), ICON_LC_LOCK, l->locked,
- l->locked ? "Unlock (allow painting)" : "Lock against painting"))
+ tr(l->locked ? "Unlock (allow painting)" : "Lock against painting")))
toggleLock = i;
ui::HelpText("Lock", nullptr, "Lock the layer: the Paint brush, fills, clears and merges leave it alone.", kPath);
ImGui::TableSetColumnIndex(3);
if (iconToggle(("##eye " + name).c_str(), l->visible ? ICON_LC_EYE : ICON_LC_EYE_OFF, l->visible,
- l->visible ? "Hide layer" : "Show layer"))
+ tr(l->visible ? "Hide layer" : "Show layer")))
toggleVisible = i;
ui::HelpText("Visibility", nullptr, "Show or hide the layer. Hidden layers don't show or export.", kPath);
}
@@ -285,7 +285,7 @@ void App::drawPaintLayersContents() {
const float third = (ImGui::GetContentRegionAvail().x - 2 * style.ItemSpacing.x) / 3.0f;
ImGui::BeginDisabled(mesh.vertexCount() == 0);
- if (ImGui::Button(ICON_LC_PLUS " New", ImVec2(third, 0))) runCommand("paint_layer_add");
+ if (ImGui::Button(tr(ICON_LC_PLUS " New"), ImVec2(third, 0))) runCommand("paint_layer_add");
ImGui::EndDisabled();
ui::HelpText("New paint layer", nullptr, "Add a transparent paint layer above the active one and paint on it.", kPath);
ImGui::SameLine();
@@ -324,7 +324,7 @@ void App::drawPaintLayersContents() {
kPath);
ImGui::BeginDisabled(mesh.vertexCount() == 0 || (cur && cur->locked));
- if (ImGui::Button(cur ? "Clear layer" : "Clear Base", ImVec2(half, 0))) runCommand("paint_layer_clear");
+ if (ImGui::Button(tr(cur ? "Clear layer" : "Clear Base"), ImVec2(half, 0))) runCommand("paint_layer_clear");
ImGui::EndDisabled();
ui::HelpText("Clear", nullptr, "Clear the active layer: a layer becomes transparent, Base white. Undoable.", kPath);
ImGui::SameLine();
diff --git a/src/app/PanelParts.cpp b/src/app/PanelParts.cpp
index 18777c3e..22714b38 100644
--- a/src/app/PanelParts.cpp
+++ b/src/app/PanelParts.cpp
@@ -422,7 +422,7 @@ void App::drawPartsContents() {
const ImVec2 eyeSize(ImGui::GetContentRegionAvail().x, ImGui::GetTextLineHeight());
if (ImGui::InvisibleButton(("##eye " + s.name).c_str(), eyeSize)) toggleIndex = i;
const bool eyeHovered = ImGui::IsItemHovered();
- if (eyeHovered) ImGui::SetTooltip(s.visible ? "Hide %s" : "Show %s", s.name.c_str());
+ if (eyeHovered) ImGui::SetTooltip(tr(s.visible ? "Hide %s" : "Show %s"), s.name.c_str());
const ImU32 eyeCol = ImGui::GetColorU32(eyeHovered ? style.Colors[ImGuiCol_ButtonHovered]
: s.visible ? style.Colors[ImGuiCol_Text]
: style.Colors[ImGuiCol_TextDisabled]);
@@ -522,8 +522,8 @@ void App::drawPartsContents() {
ImGui::EndMenu();
}
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled | ImGuiHoveredFlags_DelayNormal))
- ImGui::SetTooltip(count > 1 ? "Insert a copy of another Part into the active one"
- : "Append another Part first");
+ ImGui::SetTooltip(tr(count > 1 ? "Insert a copy of another Part into the active one"
+ : "Append another Part first"));
if (ImGui::MenuItem(tr("From file...##insert")))
SDL_ShowOpenFileDialog(onAppendChosen, &dialogRequests_[int(FileAction::InsertMesh)], window_,
kInsertFilters, 2, nullptr, false);
@@ -574,7 +574,7 @@ void App::drawPartsContents() {
if (solo) ImGui::PopStyleColor();
ImGui::EndDisabled();
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal))
- ImGui::SetTooltip(solo ? "Show the other Parts again" : "Show only the active Part");
+ ImGui::SetTooltip(tr(solo ? "Show the other Parts again" : "Show only the active Part"));
ImGui::SameLine();
const bool xray = renderSettings_.xray;
if (xray) ImGui::PushStyleColor(ImGuiCol_Button, style.Colors[ImGuiCol_ButtonActive]);
diff --git a/src/app/PanelPbr.cpp b/src/app/PanelPbr.cpp
index b228a018..7e0ed99c 100644
--- a/src/app/PanelPbr.cpp
+++ b/src/app/PanelPbr.cpp
@@ -134,7 +134,7 @@ void App::drawTextureChannelsContents() {
}
} runPending{*this, pending};
const ImGuiStyle& style = ImGui::GetStyle();
- ImGui::SeparatorText("Material Channels");
+ ImGui::SeparatorText(tr("Material Channels"));
// Channel toggles, two per row.
const float half = (ImGui::GetContentRegionAvail().x - style.ItemSpacing.x) * 0.5f;
int column = 0;
@@ -159,7 +159,7 @@ void App::drawTextureChannelsContents() {
const char* viewLabel = doc_.channelView == Channel::BaseColor ? "Normal view" : channelFormat(doc_.channelView).label;
ImGui::SetNextItemWidth(-1);
if (ImGui::BeginCombo("##channelview", viewLabel)) {
- if (ImGui::Selectable("Normal view", doc_.channelView == Channel::BaseColor))
+ if (ImGui::Selectable(tr("Normal view"), doc_.channelView == Channel::BaseColor))
pending.push_back({"channel_view", {{"channel", std::string("off")}}});
for (Channel c : kMaterialChannels) {
if (!channelEnabled(t, c)) continue;
@@ -201,7 +201,7 @@ void App::drawBrushMaterialContents() {
if (!paintsTexture(m) || !hasMaterialChannels(*m.texture)) return;
const PaintTexture& t = *m.texture;
const ImGuiStyle& style = ImGui::GetStyle();
- ImGui::SeparatorText("Material");
+ ImGui::SeparatorText(tr("Material"));
BrushMaterial& mat = doc_.paintMaterial;
// Material swatches: every enabled channel at once.
const float sw = (ImGui::GetContentRegionAvail().x - 3 * style.ItemSpacing.x) / 4.0f;
@@ -218,7 +218,7 @@ void App::drawBrushMaterialContents() {
status_ = std::string("Brush material: ") + s.name;
}
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("%s: roughness %.2f, metallic %.0f", s.name, double(s.roughness), double(s.metallic));
+ ImGui::SetTooltip(tr("%s: roughness %.2f, metallic %.0f"), s.name, double(s.roughness), double(s.metallic));
ImGui::PopID();
if (i % 4 != 3) ImGui::SameLine();
}
@@ -312,14 +312,14 @@ Args App::drawLayerChannelChips(int layer) {
ImGui::PopStyleVar();
ImGui::PopStyleColor(2);
if (ImGui::IsItemHovered() && !ui::CtrlHeld())
- ImGui::SetTooltip("%s: %s, %s, %d%%\nClick: on / off. Right-click: blend and opacity.", channelFormat(c).label,
+ ImGui::SetTooltip(tr("%s: %s, %s, %d%%\nClick: on / off. Right-click: blend and opacity."), channelFormat(c).label,
on ? "on" : "off", channelBlendLabel(blend), int(std::lround(opacity * 100.0f)));
ui::HelpText("Layer channel", nullptr,
"Whether this layer affects the channel. Right-click for the channel's blend mode (Normal "
"Combine lays normal detail onto the normals below) and opacity.",
kLayersPath);
if (ImGui::BeginPopupContextItem("##chipmenu")) {
- ImGui::TextDisabled("%s on '%s'", channelFormat(c).label, l.name.c_str());
+ ImGui::TextDisabled(tr("%s on '%s'"), channelFormat(c).label, l.name.c_str());
const int modes = c == Channel::Normal ? kChannelBlendCount : kBlendModeCount;
for (int b = 0; b < modes; ++b)
if (ImGui::MenuItem(channelBlendLabel(uint8_t(b)), nullptr, b == blend) && b != blend)
@@ -328,7 +328,7 @@ Args App::drawLayerChannelChips(int layer) {
ImGui::Separator();
float pct = opacity * 100.0f;
ImGui::SetNextItemWidth(ImGui::GetFontSize() * 10.0f);
- ImGui::SliderFloat("##chipopacity", &pct, 0.0f, 100.0f, "Opacity %.0f%%");
+ ImGui::SliderFloat("##chipopacity", &pct, 0.0f, 100.0f, tr("Opacity %.0f%%"));
if (ImGui::IsItemDeactivatedAfterEdit())
run = {{"index", double(layer)}, {"channel", std::string(channelFormat(c).id)}, {"opacity", double(pct / 100.0f)}};
ImGui::EndPopup();
diff --git a/src/app/PanelPerformance.cpp b/src/app/PanelPerformance.cpp
index 28216300..94c1ffa7 100644
--- a/src/app/PanelPerformance.cpp
+++ b/src/app/PanelPerformance.cpp
@@ -282,7 +282,7 @@ void App::drawPerformanceSection() {
kPath);
const SculptTimings& t = perf_.lastStroke;
if (t.dabs == 0) {
- dimText("Sculpt a stroke to see what it costs.");
+ dimText(tr("Sculpt a stroke to see what it costs."));
} else {
const double d = double(t.dabs);
const double upload = perf_.lastStrokeFrames ? perf_.lastStrokeSyncMs / perf_.lastStrokeFrames : 0.0;
diff --git a/src/app/PanelPerformanceProfile.cpp b/src/app/PanelPerformanceProfile.cpp
index 73add9f8..99ae3c73 100644
--- a/src/app/PanelPerformanceProfile.cpp
+++ b/src/app/PanelPerformanceProfile.cpp
@@ -326,18 +326,18 @@ void App::drawHardwareProfileOverlay() {
ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings |
ImGuiWindowFlags_AlwaysAutoResize)) {
if (fontBold_) ImGui::PushFont(fontBold_);
- ImGui::TextUnformatted("Getting to know this computer");
+ ImGui::TextUnformatted(tr("Getting to know this computer"));
if (fontBold_) ImGui::PopFont();
- dim("A two-second check of the GPU, the CPU and memory, so big scenes stay smooth. Once, then again only when "
- "the graphics card, its driver or SculptForge changes. Nothing leaves this computer.");
+ dim(tr("A two-second check of the GPU, the CPU and memory, so big scenes stay smooth. Once, then again only when "
+ "the graphics card, its driver or SculptForge changes. Nothing leaves this computer."));
ImGui::ProgressBar(hw.calibrator->progress(), ImVec2(-1.0f, 0.0f), hw.calibrator->stageName());
const bool esc = ImGui::IsKeyPressed(ImGuiKey_Escape, false);
- if (ImGui::Button("Skip") || esc) {
+ if (ImGui::Button(tr("Skip")) || esc) {
hw.calibrator->skip();
finishCalibration();
}
ImGui::SameLine();
- ImGui::TextDisabled("Esc");
+ ImGui::TextDisabled(tr("Esc"));
}
ImGui::End();
}
@@ -386,7 +386,7 @@ void App::registerPerformanceProfileUiActions() {
}
void App::drawPerformanceProfileSection() {
- ImGui::TextUnformatted("Hardware profile");
+ ImGui::TextUnformatted(tr("Hardware profile"));
ui::HelpText("Hardware profile", nullptr,
"SculptForge measures this computer on first launch (and when the graphics card, its driver or the "
"version changes) and picks settings to match: how many triangles the view draws per frame, when big "
@@ -394,7 +394,7 @@ void App::drawPerformanceProfileSection() {
"limits, threads. Nothing is sent anywhere.",
kPath);
if (!hwProfile_) {
- dim("Off in this run: tests, renders and recordings use fixed settings.");
+ dim(tr("Off in this run: tests, renders and recordings use fixed settings."));
ImGui::Spacing();
return;
}
@@ -415,7 +415,7 @@ void App::drawPerformanceProfileSection() {
: h.vramMB ? formatMegabytes(h.vramMB)
: std::string("memory unknown");
if (fontBold_) ImGui::PushFont(fontBold_);
- ImGui::TextWrapped("Detected %s, %s -> %s", h.glRenderer.empty() ? "an unknown GPU" : h.glRenderer.c_str(), vram.c_str(),
+ ImGui::TextWrapped(tr("Detected %s, %s -> %s"), h.glRenderer.empty() ? "an unknown GPU" : h.glRenderer.c_str(), vram.c_str(),
tierName(p.tier));
if (fontBold_) ImGui::PopFont();
// Why (the reason without the "Detected ... -> tier" the line above already says).
@@ -461,7 +461,7 @@ void App::drawPerformanceProfileSection() {
ImGui::LogText("%s", set.c_str());
bool governor = p.overrides.governor;
- if (ImGui::Checkbox("Frame Governor", &governor)) actions_.find("perf.governor")->run();
+ if (ImGui::Checkbox(tr("Frame Governor"), &governor)) actions_.find("perf.governor")->run();
ui::HelpAction(*this, "perf.governor");
if (governor && hw.governor.decisions() > 0) {
const char* action = hw.governor.lastAction() == FrameGovernor::Action::Lowered ? "drawing less"
@@ -470,16 +470,16 @@ void App::drawPerformanceProfileSection() {
dim("Moving view: " + fmt("%.1f ms", hw.governor.lastCostMs()) + " of " + fmt("%.1f ms", hw.governor.targetMs()) + " per frame (" +
(hw.lastGpuMs >= 0.0 ? "GPU timer" : "CPU time") + "), " + action);
} else if (governor) {
- dim("Learns from frames while the view moves.");
+ dim(tr("Learns from frames while the view moves."));
}
- if (ImGui::Button("Re-calibrate")) actions_.find("perf.recalibrate")->run();
+ if (ImGui::Button(tr("Re-calibrate"))) actions_.find("perf.recalibrate")->run();
ui::HelpAction(*this, "perf.recalibrate");
// --- Manual overrides ---
- if (ImGui::TreeNode("Manual overrides")) {
+ if (ImGui::TreeNode(tr("Manual overrides"))) {
ProfileOverrides o = p.overrides;
bool edited = false;
- const char* tiers[] = {"Tier: automatic", "Software (safe mode)", "Laptop / Budget", "Workstation"};
+ const char* tiers[] = {tr("Tier: automatic"), tr("Software (safe mode)"), tr("Laptop / Budget"), tr("Workstation")};
int tierIndex = 0;
ProfileTier forced;
if (!o.tier.empty() && tierFromName(o.tier, forced)) tierIndex = int(forced) + 1;
@@ -502,20 +502,20 @@ void App::drawPerformanceProfileSection() {
ImGui::TextUnformatted(label);
ImGui::PopID();
};
- number("View budget (M triangles)", o.renderTriangleBudget, p.automatic.renderTriangleBudget, 1e6, "M");
- number("Motion proxy from (M triangles)", o.motionProxyThreshold, p.automatic.motionProxyThreshold, 1e6, "M");
- number("GPU memory budget (GB)", o.vramBudgetMB, p.automatic.vramBudgetMB, 1024.0, "GB");
- number("Uploads per frame (MB)", o.uploadBudgetMBPerFrame, p.automatic.uploadBudgetMBPerFrame, 1.0, "MB");
- number("Subdivision limit (M triangles)", o.maxSubdivisionTriangles, p.automatic.maxSubdivisionTriangles, 1e6, "M");
+ number(tr("View budget (M triangles)"), o.renderTriangleBudget, p.automatic.renderTriangleBudget, 1e6, "M");
+ number(tr("Motion proxy from (M triangles)"), o.motionProxyThreshold, p.automatic.motionProxyThreshold, 1e6, "M");
+ number(tr("GPU memory budget (GB)"), o.vramBudgetMB, p.automatic.vramBudgetMB, 1024.0, "GB");
+ number(tr("Uploads per frame (MB)"), o.uploadBudgetMBPerFrame, p.automatic.uploadBudgetMBPerFrame, 1.0, "MB");
+ number(tr("Subdivision limit (M triangles)"), o.maxSubdivisionTriangles, p.automatic.maxSubdivisionTriangles, 1e6, "M");
{
uint64_t threads = uint64_t(o.threads);
- number("Threads (next start)", threads, uint64_t(p.automatic.threads), 1.0, "");
+ number(tr("Threads (next start)"), threads, uint64_t(p.automatic.threads), 1.0, "");
o.threads = int(threads);
}
- const char* draftNames[] = {"Draft brushes: automatic", "Draft brushes: always", "Draft brushes: never"};
+ const char* draftNames[] = {tr("Draft brushes: automatic"), tr("Draft brushes: always"), tr("Draft brushes: never")};
ImGui::SetNextItemWidth(-1.0f);
if (ImGui::Combo("##perf.draft", &o.draftBrush, draftNames, 3)) edited = true;
- const char* fpsNames[] = {"Target: automatic", "30 fps", "60 fps", "120 fps", "144 fps"};
+ const char* fpsNames[] = {tr("Target: automatic"), tr("30 fps"), tr("60 fps"), tr("120 fps"), tr("144 fps")};
const int fpsValues[] = {0, 30, 60, 120, 144};
int fpsIndex = 0;
for (int i = 0; i < 5; ++i)
@@ -525,7 +525,7 @@ void App::drawPerformanceProfileSection() {
o.targetFps = fpsValues[fpsIndex];
edited = true;
}
- if (o.any() && ImGui::Button("Back to automatic")) {
+ if (o.any() && ImGui::Button(tr("Back to automatic"))) {
const bool governorWas = o.governor;
o = ProfileOverrides{};
o.governor = governorWas;
diff --git a/src/app/PanelPhone.cpp b/src/app/PanelPhone.cpp
index 5867acdc..53740845 100644
--- a/src/app/PanelPhone.cpp
+++ b/src/app/PanelPhone.cpp
@@ -362,15 +362,15 @@ void App::drawPhoneWindow() {
ImGui::SetNextWindowPos(ImVec2(c.x + c.w * 0.5f, c.y + 12 * scale), ImGuiCond_Appearing, ImVec2(0.5f, 0.0f));
}
ImGui::SetNextWindowBgAlpha(1.0f);
- if (!ImGui::Begin("Capture from phone", &showPhone_, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize |
+ if (!ImGui::Begin(tr("Capture from phone"), &showPhone_, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize |
ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::End();
return;
}
if (!phoneError_.empty() || !phone_ || !phone_->running()) {
- ImGui::TextColored(kBad, "The phone link couldn't start.");
+ ImGui::TextColored(kBad, tr("The phone link couldn't start."));
ImGui::TextWrapped("%s", phoneError_.empty() ? "Starting..." : phoneError_.c_str());
- if (ImGui::Button("Try again##phone")) phoneError_.clear();
+ if (ImGui::Button(tr("Try again##phone"))) phoneError_.clear();
ImGui::End();
return;
}
@@ -413,13 +413,13 @@ void App::drawPhoneWindow() {
"Point your phone's camera at it and tap the link: the capture page opens, paired with this window. "
"A new code is made every time the window opens.",
"File > Capture from phone");
- ImGui::TextUnformatted("Scan with your phone's camera");
- hint("Phone and computer on the same Wi-Fi. No app to install.");
- hint("Page won't open? Use Firefox on the phone: some Chrome versions block home-network addresses.");
+ ImGui::TextUnformatted(tr("Scan with your phone's camera"));
+ hint(tr("Phone and computer on the same Wi-Fi. No app to install."));
+ hint(tr("Page won't open? Use Firefox on the phone: some Chrome versions block home-network addresses."));
ImGui::Spacing();
- ImGui::TextDisabled("No camera? Open this in the phone's browser:");
- ImGui::Text("http://%s", st.address.c_str());
- ImGui::Text("and type the code %.3s %.3s", st.code.c_str(), st.code.size() > 3 ? st.code.c_str() + 3 : "");
+ ImGui::TextDisabled(tr("No camera? Open this in the phone's browser:"));
+ ImGui::Text(tr("http://%s"), st.address.c_str());
+ ImGui::Text(tr("and type the code %.3s %.3s"), st.code.c_str(), st.code.size() > 3 ? st.code.c_str() + 3 : "");
ui::HelpText("Pairing code", nullptr,
"For a phone that can't scan: open the address in its browser and type these 6 digits. After 5 wrong "
"tries the code changes.",
@@ -428,7 +428,7 @@ void App::drawPhoneWindow() {
if (addresses.size() > 1) {
ImGui::SetNextItemWidth(leftW - ImGui::CalcTextSize("Network").x - ImGui::GetStyle().ItemInnerSpacing.x - 4 * scale);
const std::string current = addresses[size_t(std::clamp(phoneAddress_, 0, int(addresses.size()) - 1))];
- if (ImGui::BeginCombo("Network##phoneaddr", current.c_str())) {
+ if (ImGui::BeginCombo(tr("Network##phoneaddr"), current.c_str())) {
for (int i = 0; i < int(addresses.size()); ++i)
if (ImGui::Selectable(addresses[size_t(i)].c_str(), i == phoneAddress_)) {
phoneAddress_ = i;
@@ -441,34 +441,34 @@ void App::drawPhoneWindow() {
"the Wi-Fi the phone uses (often 192.168.x.x).",
"File > Capture from phone");
} else if (addresses.empty()) {
- ImGui::TextColored(kWarn, "This computer isn't on a local network.");
+ ImGui::TextColored(kWarn, tr("This computer isn't on a local network."));
}
if (st.tokenExpiresIn > 0 && st.tokenExpiresIn < 120 && st.secondsSinceSeen < 0)
- ImGui::TextColored(kWarn, "This code expires in %.0f s", st.tokenExpiresIn);
+ ImGui::TextColored(kWarn, tr("This code expires in %.0f s"), st.tokenExpiresIn);
ImGui::PopTextWrapPos();
// --- Right: the phone, what it sent, AR and the face ---
ImGui::TableSetColumnIndex(1);
ImGui::Indent(10 * scale);
if (st.secondsSinceSeen >= 0 && st.secondsSinceSeen < 8) {
- ImGui::TextColored(kOk, ICON_LC_SMARTPHONE " %s connected", st.device.c_str());
+ ImGui::TextColored(kOk, tr(ICON_LC_SMARTPHONE " %s connected"), st.device.c_str());
ImGui::SameLine();
ImGui::TextDisabled("(%s)", st.deviceAddress.c_str());
} else if (st.secondsSinceSeen >= 0) {
- ImGui::TextColored(kWarn, ICON_LC_SMARTPHONE " %s: not seen for %.0f s", st.device.c_str(), st.secondsSinceSeen);
- hint("The page may be closed or the phone asleep: open it again to carry on.");
+ ImGui::TextColored(kWarn, tr(ICON_LC_SMARTPHONE " %s: not seen for %.0f s"), st.device.c_str(), st.secondsSinceSeen);
+ hint(tr("The page may be closed or the phone asleep: open it again to carry on."));
} else {
- ImGui::TextDisabled(ICON_LC_SMARTPHONE " Waiting for your phone...");
- if (ImGui::TreeNode("The phone can't open the page?")) {
- ImGui::BulletText("Same Wi-Fi: not a guest network, not mobile data.");
- ImGui::BulletText("Turn off VPNs on the phone and the computer.");
- ImGui::BulletText("Windows: allow SculptForge on private networks\nwhen the firewall asks.");
- ImGui::BulletText("macOS: allow incoming connections for SculptForge\n(System Settings > Network > Firewall).");
- ImGui::BulletText("Several networks? Pick the Wi-Fi one under Network.");
- ImGui::BulletText("Android Chrome says \"This site can't be reached\"\n(ERR_TOO_MANY_RETRIES)? Recent Chrome versions can\n"
+ ImGui::TextDisabled(tr(ICON_LC_SMARTPHONE " Waiting for your phone..."));
+ if (ImGui::TreeNode(tr("The phone can't open the page?"))) {
+ ImGui::BulletText(tr("Same Wi-Fi: not a guest network, not mobile data."));
+ ImGui::BulletText(tr("Turn off VPNs on the phone and the computer."));
+ ImGui::BulletText(tr("Windows: allow SculptForge on private networks\nwhen the firewall asks."));
+ ImGui::BulletText(tr("macOS: allow incoming connections for SculptForge\n(System Settings > Network > Firewall)."));
+ ImGui::BulletText(tr("Several networks? Pick the Wi-Fi one under Network."));
+ ImGui::BulletText(tr("Android Chrome says \"This site can't be reached\"\n(ERR_TOO_MANY_RETRIES)? Recent Chrome versions can\n"
"block every home-network address, even your router.\nUse Firefox on the phone instead and allow it to\n"
- "reach local devices when it asks.");
- ImGui::BulletText("Linux: allow port %d (TCP and UDP) through the\nfirewall, e.g. sudo ufw allow from\n<your network>/24 to any port %d",
+ "reach local devices when it asks."));
+ ImGui::BulletText(tr("Linux: allow port %d (TCP and UDP) through the\nfirewall, e.g. sudo ufw allow from\n<your network>/24 to any port %d"),
int(phone_->port()), int(phone_->port()));
ImGui::TreePop();
}
@@ -480,62 +480,62 @@ void App::drawPhoneWindow() {
const float frac = u.size ? float(double(u.received) / double(u.size)) : 0.0f;
const std::string label = megabytes(double(u.received)) + " of " + megabytes(double(u.size)) +
(u.bytesPerSecond > 0 ? " " + megabytes(u.bytesPerSecond) + "/s" : std::string());
- ImGui::Text("Receiving %s (%s)", u.name.c_str(), link::captureKindName(u.kind));
+ ImGui::Text(tr("Receiving %s (%s)"), u.name.c_str(), link::captureKindName(u.kind));
ImGui::ProgressBar(frac, ImVec2(-1, 0), label.c_str());
}
if (!phoneCaptures_.empty()) {
- ImGui::SeparatorText("Received");
+ ImGui::SeparatorText(tr("Received"));
const size_t first = phoneCaptures_.size() > 3 ? phoneCaptures_.size() - 3 : 0;
for (size_t i = phoneCaptures_.size(); i-- > first;) {
ImGui::PushID(int(i));
if (ImGui::SmallButton(ICON_LC_FOLDER_OPEN) && interactive()) SDL_OpenURL(fileUrl(phoneCaptures_[i]).c_str());
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("Show the folder");
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("Show the folder"));
ImGui::PopID();
ImGui::SameLine();
- ImGui::Text("Captures/%s", folderName(phoneCaptures_[i]).c_str());
+ ImGui::Text(tr("Captures/%s"), folderName(phoneCaptures_[i]).c_str());
}
}
- ImGui::Checkbox("Generate from a photo at once##phone", &phoneAutoGenerate_);
+ ImGui::Checkbox(tr("Generate from a photo at once##phone"), &phoneAutoGenerate_);
ui::HelpText("Generate from a photo at once", nullptr,
"A photo sent from the phone starts Image to 3D straight away with the service chosen there "
"(free Hugging Face by default). Off: it opens in Image to 3D and waits for Generate.",
"File > Capture from phone");
// AR on the desk.
- ImGui::SeparatorText("View in AR");
- if (st.arBusy) ImGui::TextColored(kWarn, "Preparing the model for the phone...");
+ ImGui::SeparatorText(tr("View in AR"));
+ if (st.arBusy) ImGui::TextColored(kWarn, tr("Preparing the model for the phone..."));
else if (!st.arError.empty()) ImGui::TextColored(kBad, "%s", st.arError.c_str());
- else if (st.arVersion > 0) ImGui::Text("On the phone: %s", st.arSummary.c_str());
- else hint("Tap View in AR on the phone: the active Part (or the scene) stands on your desk.");
- ImGui::Checkbox("Update after each stroke##phone", &phoneLiveAr_);
+ else if (st.arVersion > 0) ImGui::Text(tr("On the phone: %s"), st.arSummary.c_str());
+ else hint(tr("Tap View in AR on the phone: the active Part (or the scene) stands on your desk."));
+ ImGui::Checkbox(tr("Update after each stroke##phone"), &phoneLiveAr_);
ui::HelpText("Update after each stroke", nullptr,
"While the phone shows the model, sculpting re-exports it (at most every few seconds); the phone offers "
"the new version.",
"File > Capture from phone");
// Live face.
- ImGui::SeparatorText("Face");
+ ImGui::SeparatorText(tr("Face"));
drawFacePreview(ImVec2(112 * scale, 112 * scale));
ImGui::SameLine(0, 12 * scale);
ImGui::BeginGroup();
ImGui::PushTextWrapPos(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x);
if (st.faceConnected && st.secondsSinceFace >= 0 && st.secondsSinceFace < 2.0) {
- ImGui::TextColored(kOk, "Live over %s, %.0f fps", st.faceTransport.c_str(), st.faceFps);
+ ImGui::TextColored(kOk, tr("Live over %s, %.0f fps"), st.faceTransport.c_str(), st.faceFps);
} else if (st.faceConnected) {
- ImGui::TextColored(kWarn, "Connected (%s), no face for %.0f s", st.faceTransport.c_str(), st.secondsSinceFace);
+ ImGui::TextColored(kWarn, tr("Connected (%s), no face for %.0f s"), st.faceTransport.c_str(), st.secondsSinceFace);
} else if (!link::webrtcAvailable()) {
- hint("This build has no WebRTC, so the phone's face page can't connect.");
+ hint(tr("This build has no WebRTC, so the phone's face page can't connect."));
} else {
- hint("On the phone: Face capture. The front camera tracks 52 expressions on the phone; only the numbers "
- "come here.");
+ hint(tr("On the phone: Face capture. The front camera tracks 52 expressions on the phone; only the numbers "
+ "come here."));
}
- if (phoneFaceCommandMissing_) ImGui::TextColored(kWarn, "face_weights isn't in this build: the model doesn't move yet.");
+ if (phoneFaceCommandMissing_) ImGui::TextColored(kWarn, tr("face_weights isn't in this build: the model doesn't move yet."));
ui::ActionButton(*this, "phone.record_face");
if (st.recording) {
ImGui::SameLine();
- ImGui::TextColored(kBad, ICON_LC_CIRCLE_DOT " %d frames, %.1f s", st.takeFrames, st.takeSeconds);
+ ImGui::TextColored(kBad, tr(ICON_LC_CIRCLE_DOT " %d frames, %.1f s"), st.takeFrames, st.takeSeconds);
}
- ImGui::Checkbox("Mirror left and right##phone", &phoneMirror_);
+ ImGui::Checkbox(tr("Mirror left and right##phone"), &phoneMirror_);
ui::HelpText("Mirror left and right", nullptr,
"Swap the left and right expressions (and the head's turn), if the character winks with the wrong eye.",
"File > Capture from phone");
@@ -545,7 +545,7 @@ void App::drawPhoneWindow() {
ImGui::EndTable();
ImGui::Separator();
- ImGui::TextDisabled("Saved in %s/Captures. Only devices on your network can connect, and only while this window is open.",
+ ImGui::TextDisabled(tr("Saved in %s/Captures. Only devices on your network can connect, and only while this window is open."),
library_.user.c_str());
ImGui::End();
}
diff --git a/src/app/PanelProject.cpp b/src/app/PanelProject.cpp
index edd2ad41..034cef7d 100644
--- a/src/app/PanelProject.cpp
+++ b/src/app/PanelProject.cpp
@@ -679,7 +679,7 @@ void App::drawFileMenuProjectItems() {
if (ImGui::MenuItem(tr("Save"), "Ctrl+S")) saveProjectAs(false);
if (ImGui::MenuItem(tr("Save As..."), "Ctrl+Shift+S")) saveProjectAs(true);
ImGui::SetNextItemWidth(120.0f * uiScale_);
- ImGui::SliderInt(tr("Autosave (min)"), &autosaveMinutes_, 0, 60, autosaveMinutes_ ? "%d" : "off");
+ ImGui::SliderInt(tr("Autosave (min)"), &autosaveMinutes_, 0, 60, tr(autosaveMinutes_ ? "%d" : "off"));
if (ImGui::IsItemDeactivatedAfterEdit()) saveProjectPrefs();
}
diff --git a/src/app/PanelRetopo.cpp b/src/app/PanelRetopo.cpp
index 7be853a4..429a37c3 100644
--- a/src/app/PanelRetopo.cpp
+++ b/src/app/PanelRetopo.cpp
@@ -434,7 +434,7 @@ void App::drawQRemeshContents() {
const float third = (full - 2.0f * style.ItemSpacing.x) / 3.0f;
if (qremesh_) {
- ImGui::ProgressBar(qremesh_->progress->load(), ImVec2(half, 0), "Remeshing...");
+ ImGui::ProgressBar(qremesh_->progress->load(), ImVec2(half, 0), tr("Remeshing..."));
ui::HelpText("Quad Remesh", nullptr, "Remeshing in the background. The result replaces the Part when it's done.",
kQRemeshPath);
ImGui::SameLine();
@@ -448,7 +448,7 @@ void App::drawQRemeshContents() {
}
{
- static const char* methods[] = {"Quad Remesh 2", "Legacy"};
+ const char* methods[] = {tr("Quad Remesh 2"), tr("Legacy")};
ImGui::SetNextItemWidth(-1);
ImGui::Combo("##qmethod", &retopo_.method, methods, 2);
ui::HelpText("Method", nullptr,
diff --git a/src/app/PanelSculptable.cpp b/src/app/PanelSculptable.cpp
index e93b0521..5c94129b 100644
--- a/src/app/PanelSculptable.cpp
+++ b/src/app/PanelSculptable.cpp
@@ -318,28 +318,28 @@ void App::drawSculptableSection() {
const float third = (full - 2.0f * style.ItemSpacing.x) / 3.0f;
if (s.job) {
- ImGui::ProgressBar(s.job->progress->load(), ImVec2(half, 0), s.job->stage == 2 ? "Remeshing..." : "Working...");
+ ImGui::ProgressBar(s.job->progress->load(), ImVec2(half, 0), tr(s.job->stage == 2 ? "Remeshing..." : "Working..."));
ui::HelpText("Make sculptable", nullptr, "Working in the background; the new Part appears when it's done.", kPath);
ImGui::SameLine();
- if (ImGui::Button("Cancel##sculptable", ImVec2(-1, 0))) s.job->cancel->store(true);
+ if (ImGui::Button(tr("Cancel##sculptable"), ImVec2(-1, 0))) s.job->cancel->store(true);
ui::HelpText("Cancel", nullptr, "Stop Make sculptable; nothing changes.", kPath);
} else if (s.reviewing) {
ui::ActionButton(*this, "splats.sculptable_finish", ImVec2(half, 0));
ImGui::SameLine();
- if (ImGui::Button("Back##sculptable", ImVec2(-1, 0))) {
+ if (ImGui::Button(tr("Back##sculptable"), ImVec2(-1, 0))) {
s.reviewing = false;
s.placing = -1;
status_ = "Review closed; the scan Part stays";
}
ui::HelpText("Back", nullptr, "Leave the review without remeshing (the scan Part stays as it is).", kPath);
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- if (s.placing >= 0) ImGui::TextWrapped("Click %s.", kLandmarkPrompts[s.placing]);
- else if (s.landmarks.valid) ImGui::TextWrapped("Drag the dots to move the landmarks (the other side follows). The lines are the loops Quad Remesh will follow.");
- else ImGui::TextWrapped("No face found: Place by hand, or Finish without face loops.");
+ if (s.placing >= 0) ImGui::TextWrapped(tr("Click %s."), kLandmarkPrompts[s.placing]);
+ else if (s.landmarks.valid) ImGui::TextWrapped(tr("Drag the dots to move the landmarks (the other side follows). The lines are the loops Quad Remesh will follow."));
+ else ImGui::TextWrapped(tr("No face found: Place by hand, or Finish without face loops."));
ImGui::PopStyleColor();
ui::ActionButton(*this, "splats.sculptable_place", ImVec2(half, 0));
ImGui::SameLine();
- if (ImGui::Button("Find again##sculptable", ImVec2(-1, 0))) {
+ if (ImGui::Button(tr("Find again##sculptable"), ImVec2(-1, 0))) {
Args a{{"target", double(sculptablePresetQuads(kPresets[s.preset]))}};
const Args view = sculptableArgs(0);
for (const char* k : {"front", "up"})
@@ -373,7 +373,7 @@ void App::drawSculptableSection() {
"ready to sculpt with levels."};
ui::HelpText(kPresetLabels[i], nullptr, help[i], kPath);
}
- ImGui::Checkbox("Face loops", &s.faceLoops);
+ ImGui::Checkbox(tr("Face loops"), &s.faceLoops);
ui::HelpText("Face loops", nullptr,
"When the capture is a head, find the eyes, nose, mouth and chin as seen from the current view and "
"give Quad Remesh edge loops round the eyes and mouth and along the nasolabial folds, mirrored across "
@@ -382,43 +382,43 @@ void App::drawSculptableSection() {
ImGui::SameLine();
ImGui::SetCursorPosX(x0 + half + style.ItemSpacing.x); // the right column, inside the section indent
ImGui::BeginDisabled(!s.faceLoops);
- ImGui::Checkbox("Review##sculptable", &s.review);
+ ImGui::Checkbox(tr("Review##sculptable"), &s.review);
ImGui::EndDisabled();
ui::HelpText("Review", nullptr,
"Stop after the scan to check the face landmarks and the loops: drag a dot to move it, or place them "
"by hand, then Finish.",
kPath);
- ImGui::RadioButton("Vertex Paint##sculptcolor", &s.color, 0);
+ ImGui::RadioButton(tr("Vertex Paint##sculptcolor"), &s.color, 0);
ui::HelpText("Vertex Paint", nullptr, "The capture's colours go into the vertices (vertex paint): more polygons, more colour detail.", kPath);
ImGui::SameLine();
ImGui::SetCursorPosX(x0 + half + style.ItemSpacing.x); // the right column, inside the section indent
- ImGui::RadioButton("Texture##sculptcolor", &s.color, 1);
+ ImGui::RadioButton(tr("Texture##sculptcolor"), &s.color, 1);
ui::HelpText("Texture", nullptr,
"Auto UV the result and bake the capture's colours into a 2K texture (sharp colour on a light mesh, "
"for games and exports).",
kPath);
- ImGui::Checkbox("Keep scan", &s.keepScan);
+ ImGui::Checkbox(tr("Keep scan"), &s.keepScan);
ui::HelpText("Keep scan", nullptr,
"Keep the dense voxel surface as a hidden \"<name> Scan\" Part, to Project Detail more detail from later.",
kPath);
ImGui::SameLine();
ImGui::SetCursorPosX(x0 + half + style.ItemSpacing.x); // the right column, inside the section indent
ui::ActionButton(*this, "splats.sculptable_crop", ImVec2(-1, 0));
- if (ImGui::TreeNode("More##sculptable")) {
+ if (ImGui::TreeNode(tr("More##sculptable"))) {
ImGui::SetNextItemWidth(-1);
ui::SliderInside("##sculptopacity", &s.minOpacity, 0.0f, 0.9f, "Min Opacity %.2f");
ui::HelpText("Min Opacity", nullptr, "Splats fainter than this are ignored (haze and floaters are usually faint).", kPath);
ImGui::SetNextItemWidth(-1);
tray::SliderInt("##sculptclose", &s.close, 0, 8, "Close Gaps %d");
ui::HelpText("Close Gaps", nullptr, "Seal gaps up to this many voxels between splats.", kPath);
- ImGui::Checkbox("Fill holes", &s.fillHoles);
+ ImGui::Checkbox(tr("Fill holes"), &s.fillHoles);
ui::HelpText("Fill holes", nullptr,
"Fill big holes such as the open bottom of a subject standing on a table (space boxed in on five "
"sides counts as inside). Turn off for open cavities like a cup.",
kPath);
ImGui::SameLine();
ImGui::SetCursorPosX(x0 + half + style.ItemSpacing.x); // the right column, inside the section indent
- ImGui::Checkbox("All pieces", &s.keepParts);
+ ImGui::Checkbox(tr("All pieces"), &s.keepParts);
ui::HelpText("All pieces", nullptr, "Keep every solid piece instead of only the largest (floaters come back too).", kPath);
ImGui::TreePop();
}
diff --git a/src/app/PanelSplatTrain.cpp b/src/app/PanelSplatTrain.cpp
index 75507903..1a08e54e 100644
--- a/src/app/PanelSplatTrain.cpp
+++ b/src/app/PanelSplatTrain.cpp
@@ -317,7 +317,7 @@ void App::drawSplatTrainSection() {
if (!splatTrain_) return;
SplatTrainUi& s = *splatTrain_;
if (!s.toolsKnown) s.findTools();
- ImGui::SeparatorText("Train from capture");
+ ImGui::SeparatorText(tr("Train from capture"));
const bool busy = splatTrainBusy();
ImGui::BeginDisabled(busy);
const auto& presets = capture::trainPresets();
@@ -345,13 +345,13 @@ void App::drawSplatTrainSection() {
ImGui::SameLine();
ui::ActionButton(*this, "splats.train_folder", ImVec2((avail - gap) * 0.5f, 0), ui::Look::IconLabel);
if (s.job.busy()) {
- ImGui::TextDisabled("Training - progress is over the viewport");
+ ImGui::TextDisabled(tr("Training - progress is over the viewport"));
} else if (s.brush.empty()) {
ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled));
- ImGui::TextWrapped("Trainer: Brush is not installed yet (it is offered when you start).");
+ ImGui::TextWrapped(tr("Trainer: Brush is not installed yet (it is offered when you start)."));
ImGui::PopStyleColor();
}
- if (ImGui::TreeNode("Tools##splattrain")) {
+ if (ImGui::TreeNode(tr("Tools##splattrain"))) {
auto row = [](const char* name, const std::string& path, const char* missing) {
ImGui::TextUnformatted(name);
ImGui::SameLine();
@@ -359,9 +359,9 @@ void App::drawSplatTrainSection() {
else ImGui::TextDisabled("%s", utf8(fsPath(path).filename()).c_str());
if (!path.empty() && ImGui::IsItemHovered()) ImGui::SetTooltip("%s", path.c_str());
};
- row("Brush", s.brush, "not installed");
- row("COLMAP", s.colmap, "not found (photos without positions need it)");
- row("ffmpeg", s.ffmpeg, "not found (videos need it)");
+ row(tr("Brush"), s.brush, tr("not installed"));
+ row(tr("COLMAP"), s.colmap, tr("not found (photos without positions need it)"));
+ row(tr("ffmpeg"), s.ffmpeg, tr("not found (videos need it)"));
ui::ActionButton(*this, "splats.train_choose_brush", ImVec2((avail - gap) * 0.5f, 0));
ImGui::SameLine();
ui::ActionButton(*this, "splats.train_choose_colmap", ImVec2(-1, 0));
@@ -384,22 +384,22 @@ void App::drawSplatTrainOverlay() {
ImGui::SetNextWindowPos(ImVec2(c.x + c.w * 0.5f, c.y + c.h * 0.4f), ImGuiCond_Always, ImVec2(0.5f, 0.5f));
ImGui::SetNextWindowSize(ImVec2(440 * scale, 0), ImGuiCond_Always);
if (ImGui::Begin("##splat_tool_prompt", nullptr, flags & ~ImGuiWindowFlags_AlwaysAutoResize)) {
- ImGui::TextUnformatted(s.promptFor == Pick::Brush ? "Splat training needs Brush" : "Splat training needs COLMAP");
+ ImGui::TextUnformatted(tr(s.promptFor == Pick::Brush ? "Splat training needs Brush" : "Splat training needs COLMAP"));
ImGui::Spacing();
if (s.promptFor == Pick::Brush)
- ImGui::TextWrapped("Brush is a free, open-source Gaussian splat trainer (Apache-2.0) that runs on your "
+ ImGui::TextWrapped(tr("Brush is a free, open-source Gaussian splat trainer (Apache-2.0) that runs on your "
"graphics card - NVIDIA, AMD, Intel or Apple, no CUDA needed. SculptForge runs it "
- "as a separate program.");
+ "as a separate program."));
else
- ImGui::TextWrapped("COLMAP (BSD licence) works out where each photo was taken, which training needs. "
- "SculptForge runs it as a separate program.");
+ ImGui::TextWrapped(tr("COLMAP (BSD licence) works out where each photo was taken, which training needs. "
+ "SculptForge runs it as a separate program."));
ImGui::Spacing();
if (d) {
- ImGui::TextWrapped("Download %s %s (%s) from %s into %s. Its SHA-256 checksum is checked before it is "
- "used.",
+ ImGui::TextWrapped(tr("Download %s %s (%s) from %s into %s. Its SHA-256 checksum is checked before it is "
+ "used."),
d->tool, d->version, megabytes(d->bytes).c_str(), d->url, ai::splatToolsDir().c_str());
} else {
- ImGui::TextWrapped("There is no ready-made %s for this computer. %s", tool,
+ ImGui::TextWrapped(tr("There is no ready-made %s for this computer. %s"), tool,
s.promptFor == Pick::Brush
? "Build it with Rust (cargo build --release in a Brush checkout) and choose "
"brush_app below, or set SCULPTFORGE_BRUSH."
@@ -408,8 +408,8 @@ void App::drawSplatTrainOverlay() {
if (!s.promptError.empty()) ImGui::TextColored(ImVec4(0.95f, 0.45f, 0.35f, 1), "%s", s.promptError.c_str());
ImGui::Spacing();
if (s.download.valid()) {
- ImGui::ProgressBar(s.downloadProgress->load(), ImVec2(-1, 0), "Downloading...");
- if (ImGui::Button("Stop download")) s.downloadCancel->store(true);
+ ImGui::ProgressBar(s.downloadProgress->load(), ImVec2(-1, 0), tr("Downloading..."));
+ if (ImGui::Button(tr("Stop download"))) s.downloadCancel->store(true);
} else {
if (d) {
const std::string label = "Download " + std::string(d->tool) + " (" + megabytes(d->bytes) + ")";
@@ -432,11 +432,11 @@ void App::drawSplatTrainOverlay() {
}
ui::ActionButton(*this, s.promptFor == Pick::Brush ? "splats.train_choose_brush" : "splats.train_choose_colmap");
ImGui::SameLine();
- if (ImGui::Button("Project page")) SDL_OpenURL(d ? d->home
+ if (ImGui::Button(tr("Project page"))) SDL_OpenURL(d ? d->home
: s.promptFor == Pick::Brush ? "https://github.com/ArthurBrussee/brush"
: "https://colmap.github.io/install.html");
ImGui::SameLine();
- if (ImGui::Button("Not now")) s.prompt = false;
+ if (ImGui::Button(tr("Not now"))) s.prompt = false;
}
}
ImGui::End();
@@ -449,7 +449,7 @@ void App::drawSplatTrainOverlay() {
ImGui::SetNextWindowSize(ImVec2(400 * scale, 0), ImGuiCond_Always);
if (ImGui::Begin("##splat_train_overlay", nullptr, flags & ~ImGuiWindowFlags_AlwaysAutoResize)) {
const capture::TrainPreset& preset = capture::trainPreset(s.preset);
- ImGui::Text("Training splat - %s", preset.label);
+ ImGui::Text(tr("Training splat - %s"), preset.label);
ImGui::SameLine();
ImGui::TextDisabled("%s", utf8(fsPath(s.source).filename()).c_str());
if (st.stage == ai::TrainStage::Training && st.step > 0) {
@@ -466,13 +466,13 @@ void App::drawSplatTrainOverlay() {
}
if (st.splats > 0) line += " " + std::to_string((st.splats + 500) / 1000) + "k splats";
ImGui::TextUnformatted(line.c_str());
- ImGui::TextDisabled("%s elapsed, about %s left", clock(st.elapsed).c_str(), clock(st.eta).c_str());
+ ImGui::TextDisabled(tr("%s elapsed, about %s left"), clock(st.elapsed).c_str(), clock(st.eta).c_str());
} else {
const float f = st.stageProgress;
ImGui::ProgressBar(f >= 0 ? f : float(std::fmod(ImGui::GetTime() * 0.4, 1.0)), ImVec2(-1, 0),
st.message.c_str());
- const std::string photos = st.frames ? " - " + std::to_string(st.frames) + " photos" : std::string();
- ImGui::TextDisabled("%s elapsed%s", clock(st.elapsed).c_str(), photos.c_str());
+ if (st.frames) ImGui::TextDisabled(tr("%s elapsed - %d photos"), clock(st.elapsed).c_str(), st.frames);
+ else ImGui::TextDisabled(tr("%s elapsed"), clock(st.elapsed).c_str());
}
const float avail = ImGui::GetContentRegionAvail().x, gap = ImGui::GetStyle().ItemSpacing.x;
ImGui::BeginDisabled(st.stage != ai::TrainStage::Training || s.previews == 0);
diff --git a/src/app/PanelSupport.cpp b/src/app/PanelSupport.cpp
index 2df6c830..99c805e1 100644
--- a/src/app/PanelSupport.cpp
+++ b/src/app/PanelSupport.cpp
@@ -66,16 +66,16 @@ void App::openDiscordPage() {
void App::drawSupportersSection() {
const FoundingMembers& founding = foundingMembers();
if (!founding.names.empty()) {
- ImGui::SeparatorText("Founding Members");
- ImGui::TextWrapped("The first %d members, with our thanks for good:", founding.limit);
+ ImGui::SeparatorText(tr("Founding Members"));
+ ImGui::TextWrapped(tr("The first %d members, with our thanks for good:"), founding.limit);
for (const std::string& name : founding.names) ImGui::BulletText("%s", name.c_str()); // (plain text, sanitised)
}
- ImGui::SeparatorText("Supporters");
+ ImGui::SeparatorText(tr("Supporters"));
const std::vector<std::string>& names = supporterNames();
if (names.empty()) {
- ImGui::TextDisabled("Be the first: sculptforge.app/support.html");
+ ImGui::TextDisabled(tr("Be the first: sculptforge.app/support.html"));
} else {
- ImGui::TextWrapped("Thank you to everyone who supports SculptForge:");
+ ImGui::TextWrapped(tr("Thank you to everyone who supports SculptForge:"));
// Plain text only (TextUnformatted: no format strings, markup or links), sanitised by parseSupporters.
const float rows = float(std::min<size_t>(names.size(), 8));
if (ImGui::BeginChild("##supporters", ImVec2(0, rows * ImGui::GetTextLineHeightWithSpacing() + 4.0f * uiScale_),
@@ -88,7 +88,7 @@ void App::drawSupportersSection() {
ImGui::EndChild();
}
ImGui::TextWrapped("%s", kFreeReleaseNote);
- if (ImGui::Button("Support SculptForge##about")) openSupportPage();
+ if (ImGui::Button(tr("Support SculptForge##about"))) openSupportPage();
}
void App::chooseNewLook(bool tryIt) {
@@ -170,35 +170,35 @@ void App::drawSupportUi() {
ImGui::SetNextWindowPos(ImVec2(c.x + c.w * 0.5f, c.y + c.h * 0.3f), ImGuiCond_Appearing, ImVec2(0.5f, 0.5f));
ImGui::SetNextWindowSize(ImVec2(500.0f * s, 0.0f), ImGuiCond_Appearing);
const ImGuiWindowFlags flags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize;
- if (ImGui::Begin("Welcome to SculptForge", &showWelcome_, flags)) {
+ if (ImGui::Begin(tr("Welcome to SculptForge"), &showWelcome_, flags)) {
// New to sculpting: the lesson first, big (docs/guide/first-sculpt.md).
ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetStyleColorVec4(ImGuiCol_ButtonActive));
- if (ImGui::Button(ICON_LC_GRADUATION_CAP " Start the 10-minute lesson##welcome.lesson", ImVec2(-1, 40.0f * s))) {
+ if (ImGui::Button(tr(ICON_LC_GRADUATION_CAP " Start the 10-minute lesson##welcome.lesson"), ImVec2(-1, 40.0f * s))) {
guide_.open("first-sculpt.md");
showWelcome_ = false;
}
ImGui::PopStyleColor();
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("Your first sculpt: a cute owl head from this sphere, step by step, in about ten minutes.");
+ ImGui::SetTooltip(tr("Your first sculpt: a cute owl head from this sphere, step by step, in about ten minutes."));
// Sculpted before: the quick tour (QuickTour.cpp), where everything is in ten slides.
- if (ImGui::Button(ICON_LC_COMPASS " Sculpted before? Take the quick tour##welcome.tour", ImVec2(-1, 0)))
+ if (ImGui::Button(tr(ICON_LC_COMPASS " Sculpted before? Take the quick tour##welcome.tour"), ImVec2(-1, 0)))
showQuickTour(0);
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("Ten short slides: remeshing, dynamic topology, retopology, levels, masking, cut, "
- "brushes and baking, each with a Show me button.");
+ ImGui::SetTooltip(tr("Ten short slides: remeshing, dynamic topology, retopology, levels, masking, cut, "
+ "brushes and baking, each with a Show me button."));
ImGui::Spacing();
- ImGui::TextWrapped("Hold Ctrl over any control to see what it does. The User Guide (Shift+F1) explains every "
- "tool, and the quick tour shows what is where.");
+ ImGui::TextWrapped(tr("Hold Ctrl over any control to see what it does. The User Guide (Shift+F1) explains every "
+ "tool, and the quick tour shows what is where."));
// The look (0.10.9, #U6): three cards, the first the default. Existing installs never see this window
// unless they open Help > Welcome, so nobody's look changes by itself.
ImGui::Spacing();
- ImGui::TextUnformatted("Pick a look:");
+ ImGui::TextUnformatted(tr("Pick a look:"));
drawLookPicker();
// Where you come from sets the keys and the layout together (Preferences > Input and > Interface > Look
// change them later; both are remembered on its own).
ImGui::Spacing();
ImGui::AlignTextToFramePadding();
- ImGui::TextUnformatted("Coming from:");
+ ImGui::TextUnformatted(tr("Coming from:"));
struct Origin {
const char* label;
int style, layout;
@@ -228,30 +228,30 @@ void App::drawSupportUi() {
}
// A base mesh to start from (core/StarterMeshes.h), instead of the sphere.
ImGui::Spacing();
- if (ImGui::Button(ICON_LC_USER_ROUND " Start from a head##welcome")) {
+ if (ImGui::Button(tr(ICON_LC_USER_ROUND " Start from a head##welcome"))) {
confirmDiscard([this] { runCommand("new_starter_mesh", {{"name", std::string("human-head")}}); });
showWelcome_ = false;
}
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("A neutral human head with clean quads and eye and mouth loops, ready for a portrait.");
+ ImGui::SetTooltip(tr("A neutral human head with clean quads and eye and mouth loops, ready for a portrait."));
ImGui::SameLine();
- if (ImGui::Button("More starter meshes##welcome")) {
+ if (ImGui::Button(tr("More starter meshes##welcome"))) {
showStarterMeshes();
showWelcome_ = false;
}
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("Bust, full body, hand, foot, ear, eye, stylised and creature heads, torso and "
- "bevelled primitives: Library > Tool > Starter meshes.");
+ ImGui::SetTooltip(tr("Bust, full body, hand, foot, ear, eye, stylised and creature heads, torso and "
+ "bevelled primitives: Library > Tool > Starter meshes."));
// AI (Preferences > AI changes it later; saved at once).
ImGui::Spacing();
ImGui::AlignTextToFramePadding();
- ImGui::TextUnformatted("AI features:");
+ ImGui::TextUnformatted(tr("AI features:"));
for (const bool choice : {true, false}) {
ImGui::SameLine();
const bool on = ai::aiEnabled() == choice;
if (on) ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetStyleColorVec4(ImGuiCol_ButtonActive));
ImGui::BeginDisabled(ai::aiPolicyLocked());
- if (ImGui::Button(choice ? "On##welcome.ai" : "Off##welcome.ai")) setAiFeatures(choice);
+ if (ImGui::Button(tr(choice ? "On##welcome.ai" : "Off##welcome.ai"))) setAiFeatures(choice);
ImGui::EndDisabled();
if (on) ImGui::PopStyleColor();
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled))
@@ -262,21 +262,21 @@ void App::drawSupportUi() {
ImGui::TextWrapped("%s", ai::kPrivacyLine);
ImGui::PopStyleColor();
ImGui::Spacing();
- if (ImGui::Button("Open the User Guide##welcome")) {
+ if (ImGui::Button(tr("Open the User Guide##welcome"))) {
guide_.open();
showWelcome_ = false;
}
ImGui::SameLine();
- if (ImGui::Button("Join the community on Discord##welcome")) openDiscordPage();
+ if (ImGui::Button(tr("Join the community on Discord##welcome"))) openDiscordPage();
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("Questions, tips and work in progress: opens the invite in your browser.");
+ ImGui::SetTooltip(tr("Questions, tips and work in progress: opens the invite in your browser."));
ImGui::Spacing();
ImGui::Separator();
ImGui::Spacing();
- ImGui::TextWrapped("SculptForge is free. A membership adds betas and early builds, a vote on what we build next, Member Requests (ask for a brush or an alpha) and your name in the credits. %s", kFreeReleaseNote);
- if (ImGui::Button("Support SculptForge##welcome")) showSupportCard(SupportCardReason::Manual); // the memberships
+ ImGui::TextWrapped(tr("SculptForge is free. A membership adds betas and early builds, a vote on what we build next, Member Requests (ask for a brush or an alpha) and your name in the credits. %s"), kFreeReleaseNote);
+ if (ImGui::Button(tr("Support SculptForge##welcome"))) showSupportCard(SupportCardReason::Manual); // the memberships
ImGui::SameLine();
- if (ImGui::Button("Close##welcome")) showWelcome_ = false;
+ if (ImGui::Button(tr("Close##welcome"))) showWelcome_ = false;
}
ImGui::End();
}
@@ -288,14 +288,14 @@ void App::drawSupportUi() {
const ImGuiWindowFlags flags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize |
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoFocusOnAppearing;
bool open = true;
- if (ImGui::Begin("SculptForge has a new look##newlook", &open, flags)) {
- ImGui::TextWrapped("Neutral grey panels with one orange accent, and the SculptForge layout: menus by task, a "
- "status bar and a one-row tool shelf. Your layout stays as it is unless you try it.");
+ if (ImGui::Begin(tr("SculptForge has a new look##newlook"), &open, flags)) {
+ ImGui::TextWrapped(tr("Neutral grey panels with one orange accent, and the SculptForge layout: menus by task, a "
+ "status bar and a one-row tool shelf. Your layout stays as it is unless you try it."));
ImGui::Spacing();
- if (ImGui::Button("Try it##newlook")) chooseNewLook(true);
+ if (ImGui::Button(tr("Try it##newlook"))) chooseNewLook(true);
ImGui::SameLine();
- if (ImGui::Button("Keep my layout##newlook")) chooseNewLook(false);
- ImGui::TextDisabled("Either way: Preferences > Interface > Look changes it later.");
+ if (ImGui::Button(tr("Keep my layout##newlook"))) chooseNewLook(false);
+ ImGui::TextDisabled(tr("Either way: Preferences > Interface > Look changes it later."));
}
ImGui::End();
if (!open) chooseNewLook(false);
@@ -308,22 +308,22 @@ void App::drawSupportUi() {
const ImGuiWindowFlags flags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize |
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav;
bool open = true;
- if (ImGui::Begin("Big meshes are faster now##bigmesh", &open, flags)) {
- ImGui::TextWrapped("On a dense scan with micro levels, big brushes now keep up with the pen and the view turns "
- "smoothly right after a stroke.");
+ if (ImGui::Begin(tr("Big meshes are faster now##bigmesh"), &open, flags)) {
+ ImGui::TextWrapped(tr("On a dense scan with micro levels, big brushes now keep up with the pen and the view turns "
+ "smoothly right after a stroke."));
ImGui::Spacing();
- ImGui::TextWrapped("Two settings in Preferences > Performance help most on big meshes:");
+ ImGui::TextWrapped(tr("Two settings in Preferences > Performance help most on big meshes:"));
ImGui::Bullet();
- ImGui::TextWrapped("Background Preview (experimental): a big brush shows under the pen while it's still being worked out.");
+ ImGui::TextWrapped(tr("Background Preview (experimental): a big brush shows under the pen while it's still being worked out."));
ImGui::Bullet();
- ImGui::TextWrapped("View resolution 75%%: draws about half the pixels, for integrated graphics and big screens.");
+ ImGui::TextWrapped(tr("View resolution 75%%: draws about half the pixels, for integrated graphics and big screens."));
ImGui::Spacing();
- if (ImGui::Button("Performance settings##bigmesh")) {
+ if (ImGui::Button(tr("Performance settings##bigmesh"))) {
openPerformancePrefs();
open = false;
}
ImGui::SameLine();
- if (ImGui::Button("Got it##bigmesh")) open = false;
+ if (ImGui::Button(tr("Got it##bigmesh"))) open = false;
}
ImGui::End();
if (!open) bigMeshTipOpen_ = false;
diff --git a/src/app/PanelSupportCard.cpp b/src/app/PanelSupportCard.cpp
index 9191dc59..a32b8833 100644
--- a/src/app/PanelSupportCard.cpp
+++ b/src/app/PanelSupportCard.cpp
@@ -485,12 +485,12 @@ void App::drawSupportCard() {
const ImVec2 c0(b.x - pad - ls.x - 44.0f * k, fy - 19.0f * k);
const auto [hot, hit] = pill(label, "Not now##card.later", c0, 0.0f);
later = hit;
- if (hot) ImGui::SetTooltip("Nothing about memberships for a week.");
+ if (hot) ImGui::SetTooltip(tr("Nothing about memberships for a week."));
const char* already = "I'm already a member";
const ImVec2 as = paint.measure(bodyFont, 15.0f, already);
supporter = link(already, "I'm already a member##card.supporter_already",
ImVec2(c0.x - 24.0f * k - as.x, std::floor(fy - as.y * 0.5f)), dim, false);
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("Sign in with GitHub (the member builds' sign-in): no more cards.");
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("Sign in with GitHub (the member builds' sign-in): no more cards."));
}
// Esc, or a click outside the card: closed (the small card may follow in a week).
@@ -522,13 +522,13 @@ void App::drawSupportPrefs() {
} else {
ImGui::TextWrapped("%s", "A small membership card shows at most once a week, at a good moment (never mid-stroke), "
"until you become a member.");
- if (ImGui::Button("I'm already a member##prefs.member_verify", ImVec2(-1, 0))) verifyMember();
+ if (ImGui::Button(tr("I'm already a member##prefs.member_verify"), ImVec2(-1, 0))) verifyMember();
ui::HelpText("I'm already a member", nullptr,
"Signs in with GitHub, as member builds do (Preferences > Updates): no more membership cards, "
"and the member builds are on.",
"Preferences > Support");
}
- if (ImGui::Button("Show the memberships", ImVec2(-1, 0))) showSupportCard(SupportCardReason::Manual);
+ if (ImGui::Button(tr("Show the memberships"), ImVec2(-1, 0))) showSupportCard(SupportCardReason::Manual);
}
// --- The small card at good moments ---
@@ -634,22 +634,22 @@ void App::drawMemberCard() {
const FoundingMembers& founding = foundingMembers();
if (founding.open()) {
ImGui::PushStyleColor(ImGuiCol_Text, theme::accentHover);
- ImGui::TextWrapped("The first %d members are Founding Members: a badge, their name in the credits and "
- "their price locked for good.", founding.limit);
+ ImGui::TextWrapped(tr("The first %d members are Founding Members: a badge, their name in the credits and "
+ "their price locked for good."), founding.limit);
ImGui::PopStyleColor();
}
ImGui::Spacing();
ImGui::PushStyleColor(ImGuiCol_Button, theme::accent);
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, theme::accentHover);
ImGui::PushStyleColor(ImGuiCol_Text, theme::textOnAccent);
- const bool become = ImGui::Button("Become a member##member_card.become");
+ const bool become = ImGui::Button(tr("Become a member##member_card.become"));
ImGui::PopStyleColor(3);
ImGui::SameLine();
- const bool notNow = ImGui::Button("Not now##member_card.not_now");
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("Nothing about memberships for a week.");
+ const bool notNow = ImGui::Button(tr("Not now##member_card.not_now"));
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("Nothing about memberships for a week."));
ImGui::SameLine();
- const bool already = ImGui::Button("I'm already a member##member_card.already");
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("Sign in with GitHub (the member builds' sign-in): no more cards.");
+ const bool already = ImGui::Button(tr("I'm already a member##member_card.already"));
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("Sign in with GitHub (the member builds' sign-in): no more cards."));
if (become) {
openSupportPage(); // both choices (monthly, yearly) on the membership page
memberCardChoice(MemberCardChoice::Become);
diff --git a/src/app/PanelTexture.cpp b/src/app/PanelTexture.cpp
index 0e7059c7..ee3b8663 100644
--- a/src/app/PanelTexture.cpp
+++ b/src/app/PanelTexture.cpp
@@ -299,17 +299,18 @@ void App::drawTextureMapContents() {
// Status line: UVs, texture size, where paint goes.
if (autoUv_) {
- ImGui::ProgressBar(autoUv_->progress->load(), ImVec2(half, 0), "Unwrapping...");
+ ImGui::ProgressBar(autoUv_->progress->load(), ImVec2(half, 0), tr("Unwrapping..."));
ui::HelpText("Auto UV", nullptr, "Unwrapping the Part in the background; you can keep working.", kPath);
ImGui::SameLine();
if (ImGui::Button(tr("Cancel##autouv"), ImVec2(-1, 0))) autoUv_->cancel->store(true);
} else if (!m.hasUvs()) {
- ImGui::TextDisabled("No UVs: Auto UV makes them");
+ ImGui::TextDisabled(tr("No UVs: Auto UV makes them"));
} else if (!hasTexture(m)) {
- ImGui::TextDisabled("UVs, no texture yet");
+ ImGui::TextDisabled(tr("UVs, no texture yet"));
} else {
const PaintTexture& t = *m.texture;
- ImGui::TextDisabled("%dx%d texture, %d layer%s", t.width, t.height, int(t.layers.size()) + 1, t.layers.empty() ? "" : "s");
+ ImGui::TextDisabled(tr(t.layers.empty() ? "%dx%d texture, %d layer" : "%dx%d texture, %d layers"), t.width, t.height,
+ int(t.layers.size()) + 1);
}
ui::ActionButton(*this, "texture.auto_uv", ImVec2(half, 0));
@@ -328,7 +329,7 @@ void App::drawTextureMapContents() {
if (hasTexture(m)) {
ImGui::AlignTextToFramePadding();
- ImGui::TextDisabled("Paint into");
+ ImGui::TextDisabled(tr("Paint into"));
ImGui::SameLine();
ui::Segmented(*this, {"draw.paint_vertex", "draw.paint_texture"});
}
@@ -341,7 +342,7 @@ void App::drawTextureMapContents() {
ui::ActionButton(*this, "texture.delete", ImVec2(half, 0));
if (hasTexture(m)) {
ImGui::SameLine();
- ImGui::Checkbox("Show texture", &renderSettings_.showTexture);
+ ImGui::Checkbox(tr("Show texture"), &renderSettings_.showTexture);
ui::HelpAction(*this, "view.texture");
}
diff --git a/src/app/PanelTimeline.cpp b/src/app/PanelTimeline.cpp
index ff937aac..f5f57cf2 100644
--- a/src/app/PanelTimeline.cpp
+++ b/src/app/PanelTimeline.cpp
@@ -334,8 +334,8 @@ void App::drawTimelineUi() {
// A running timelapse: a few frames each app frame, under a modal with a progress bar.
if (s.job) {
- ImGui::OpenPopup("Rendering timelapse");
- if (ImGui::BeginPopupModal("Rendering timelapse", nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
+ ImGui::OpenPopup("###timelapse.rendering");
+ if (ImGui::BeginPopupModal(tr("Rendering timelapse###timelapse.rendering"), nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::Text("%s", s.job->path.c_str());
ImGui::ProgressBar(float(s.job->frame) / float(std::max(1, s.job->frames)), ImVec2(360 * uiScale_, 0));
if (ImGui::Button(tr("Cancel"))) s.job->cancelled = true;
@@ -353,10 +353,10 @@ void App::drawTimelineUi() {
else p = "sculptforge-timelapse.mp4";
std::snprintf(s.timelapsePath, sizeof s.timelapsePath, "%s", utf8Of(p).c_str());
}
- ImGui::OpenPopup("Export timelapse");
+ ImGui::OpenPopup("###timelapse.export");
s.timelapseDialog = false;
}
- if (ImGui::BeginPopupModal("Export timelapse", nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
+ if (ImGui::BeginPopupModal(tr("Export timelapse###timelapse.export"), nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::TextWrapped(tr("The history of the active Part (%zu steps up to the cursor) played as a turntable."), t->cursor());
ImGui::RadioButton("1080p", &s.timelapseRes, 0);
ImGui::SameLine();
@@ -364,7 +364,7 @@ void App::drawTimelineUi() {
ImGui::SetNextItemWidth(200 * uiScale_);
ImGui::SliderFloat(tr("Length"), &s.timelapseSeconds, 5.0f, 90.0f, "%.0f s");
ImGui::SetNextItemWidth(420 * uiScale_);
- ImGui::InputText("File", s.timelapsePath, sizeof s.timelapsePath);
+ ImGui::InputText(tr("File"), s.timelapsePath, sizeof s.timelapsePath);
if (ImGui::Button(tr("Export"))) {
const bool k4 = s.timelapseRes == 1;
startTimelapse(s.timelapsePath, k4 ? 3840 : 1920, k4 ? 2160 : 1080, s.timelapseSeconds, 30);
@@ -440,7 +440,7 @@ void App::drawTimelineUi() {
ImGui::Text(tr("Step %zu of %zu"), t->cursor(), n - 1);
if (!branches.empty()) {
ImGui::SameLine();
- ImGui::TextDisabled("%s %zu branch%s", ICON_LC_GIT_BRANCH, branches.size(), branches.size() == 1 ? "" : "es");
+ ImGui::TextDisabled(tr(branches.size() == 1 ? "%s %zu branch" : "%s %zu branches"), ICON_LC_GIT_BRANCH, branches.size());
}
if (const Timeline::Node& cur = t->node(t->cursorNode()); t->cursor() > 0) {
ImGui::SameLine();
@@ -496,8 +496,9 @@ void App::drawTimelineUi() {
else s.message = "Switched to the other branch (the one you left is a lane now)";
}
if (ImGui::IsItemHovered())
- ImGui::SetTooltip("Branch from step %zu: %zu step%s, ending with \"%s\"\nClick to make it the active branch", b.from,
- b.length, b.length == 1 ? "" : "s", t->node(b.tip).label.c_str());
+ ImGui::SetTooltip(tr(b.length == 1 ? "Branch from step %zu: %zu step, ending with \"%s\"\nClick to make it the active branch"
+ : "Branch from step %zu: %zu steps, ending with \"%s\"\nClick to make it the active branch"),
+ b.from, b.length, t->node(b.tip).label.c_str());
ImGui::PopID();
y += laneH + 3 * sc;
}
@@ -546,10 +547,10 @@ void App::drawTimelineUi() {
const int d = t->depth(hovered);
if (node.parent == Timeline::kNone) ImGui::SetTooltip("%s", tr("Start of the history"));
else
- ImGui::SetTooltip("Step %d: %s (%s)\n%u %s, %s%s\nClick or drag to show the model here; right-click to re-tune", d,
+ ImGui::SetTooltip(tr("Step %d: %s (%s)\n%u %s, %s%s\nClick or drag to show the model here; right-click to re-tune"), d,
node.label.c_str(), kindLabel(node.kind), node.touched,
- node.kind == Timeline::Kind::Visibility ? "triangles" : "vertices", ago(node.time).c_str(),
- node.strength != 1.0f ? ("\nStrength " + std::to_string(int(std::lround(node.strength * 100))) + "%").c_str() : "");
+ tr(node.kind == Timeline::Kind::Visibility ? "triangles" : "vertices"), ago(node.time).c_str(),
+ node.strength != 1.0f ? ("\n" + std::string(tr("Strength")) + " " + std::to_string(int(std::lround(node.strength * 100))) + "%").c_str() : "");
}
// Apply the scrubber's target once a frame (coalesced while dragging).
if (s.pendingSeek != SIZE_MAX && s.pendingSeek != t->cursor() && !stroking) {
diff --git a/src/app/PanelUvEditor.cpp b/src/app/PanelUvEditor.cpp
index f7246775..200db15e 100644
--- a/src/app/PanelUvEditor.cpp
+++ b/src/app/PanelUvEditor.cpp
@@ -1061,7 +1061,7 @@ void App::drawUvEditor() {
ImGui::SetNextWindowSizeConstraints(ImVec2(std::min(520 * scale, cr.w), std::min(360 * scale, cr.h)),
ImVec2(FLT_MAX, FLT_MAX));
ImGui::SetNextWindowBgAlpha(1.0f);
- if (!ImGui::Begin("UV Editor", &showUvEditor_, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar)) {
+ if (!ImGui::Begin(tr("UV Editor"), &showUvEditor_, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar)) {
ImGui::End();
return;
}
@@ -1410,7 +1410,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(tr(sel ? "Unwrap Selected##uvunwrap" : "Unwrap##uvunwrap"), ImVec2(w, 0))) u.unwrap();
+ if (ImGui::Button(tr(tr(sel ? "Unwrap Selected##uvunwrap" : "Unwrap##uvunwrap")), ImVec2(w, 0))) u.unwrap();
ImGui::EndDisabled();
ImGui::PopStyleColor(3);
ui::HelpAction(*this, "uv.unwrap");
diff --git a/src/app/PanelVdm.cpp b/src/app/PanelVdm.cpp
index f12592b5..d46b2da1 100644
--- a/src/app/PanelVdm.cpp
+++ b/src/app/PanelVdm.cpp
@@ -182,54 +182,54 @@ void App::drawVdmSection() {
}
drawVdmGrid(*this, GridMode::Palette);
- ImGui::SeparatorText("Load");
+ ImGui::SeparatorText(tr("Load"));
actionButton(*this, "vdm.load");
- ImGui::Checkbox("Swap Y/Z##vdm", &vdmImport_.swapYZ);
+ ImGui::Checkbox(tr("Swap Y/Z##vdm"), &vdmImport_.swapYZ);
ui::HelpText("Swap Y/Z", nullptr,
"For maps that store the surface normal in G instead of B (Y-up apps). Blender's maps and ours need "
"nothing; maps from other apps depend on how they were exported, so try this if a stamp comes "
"out lying on its side.",
"Brush > Vector Displacement");
ImGui::SameLine();
- ImGui::Checkbox("Flip X##vdm", &vdmImport_.flipX);
+ ImGui::Checkbox(tr("Flip X##vdm"), &vdmImport_.flipX);
ui::HelpText("Flip X", nullptr, "Mirror the map's sideways (R) channel when loading: for a stamp that comes out mirrored.",
"Brush > Vector Displacement");
ImGui::SameLine();
- ImGui::Checkbox("Flip Y##vdm", &vdmImport_.flipY);
+ ImGui::Checkbox(tr("Flip Y##vdm"), &vdmImport_.flipY);
ui::HelpText("Flip Y", nullptr, "Mirror the map's up (G) channel when loading: for a stamp that leans the wrong way.",
"Brush > Vector Displacement");
- ImGui::Checkbox("Flip Z##vdm", &vdmImport_.flipZ);
+ ImGui::Checkbox(tr("Flip Z##vdm"), &vdmImport_.flipZ);
ui::HelpText("Flip Z", nullptr, "Negate the map's height (B) when loading: for a map that digs in where it should rise.",
"Brush > Vector Displacement");
ImGui::SameLine();
ImGui::SetNextItemWidth(-1);
- ImGui::SliderFloat("##vdmscale", &vdmImport_.scale, 0.1f, 10.0f, "Scale %.2f", ImGuiSliderFlags_Logarithmic);
+ ImGui::SliderFloat("##vdmscale", &vdmImport_.scale, 0.1f, 10.0f, tr("Scale %.2f"), ImGuiSliderFlags_Logarithmic);
ui::HelpText("Scale", nullptr,
"Multiply a loaded map's vectors: for maps saved in other units than the brush radius (1 = as stored).",
"Brush > Vector Displacement");
- ImGui::SeparatorText("Create");
+ ImGui::SeparatorText(tr("Create"));
ImGui::SetNextItemWidth(-1);
- ImGui::SliderInt("##vdmplane", &vdmPlaneRes_, 64, 1024, "Plane Res %d");
+ ImGui::SliderInt("##vdmplane", &vdmPlaneRes_, 64, 1024, tr("Plane Res %d"));
ui::HelpText("Plane Res", nullptr,
"Quads per side of a new VDM plane. 256 is a good start; divide it (Ctrl+D) for finer detail.",
"Brush > Vector Displacement");
actionButton(*this, "vdm.new_plane");
ImGui::SetNextItemWidth(-1);
- ImGui::InputTextWithHint("##vdmname", "Name of the new VDM", vdmName_, sizeof vdmName_);
+ ImGui::InputTextWithHint("##vdmname", tr("Name of the new VDM"), vdmName_, sizeof vdmName_);
ui::HelpText("VDM name", nullptr, "What Create VDM calls the new map (a map of the same name is replaced).",
"Brush > Vector Displacement");
ImGui::SetNextItemWidth(-1);
- ImGui::SliderInt("##vdmsize", &vdmCaptureSize_, 64, 1024, "Map Size %d px");
+ ImGui::SliderInt("##vdmsize", &vdmCaptureSize_, 64, 1024, tr("Map Size %d px"));
ui::HelpText("Map Size", nullptr,
"Pixels a side of the map Create VDM makes. 256 holds most shapes; 512 for fine detail (Blender suggests "
"512 or less).",
"Brush > Vector Displacement");
actionButton(*this, "vdm.create");
actionButton(*this, "vdm.export");
- hint("Stamp with Drag Stamp (drag sets size and turn) or Slide Stamp. Intensity 50 presses the map at its own size; "
+ hint(tr("Stamp with Drag Stamp (drag sets size and turn) or Slide Stamp. Intensity 50 presses the map at its own size; "
"Alt digs it in. A VDM moves points sideways, so it needs a dense mesh: divide first, and stamp at the "
- "highest subdivision level.");
+ "highest subdivision level."));
}
} // namespace sf
diff --git a/src/app/PanelVertexPaint.cpp b/src/app/PanelVertexPaint.cpp
index e4c4bc25..1816346d 100644
--- a/src/app/PanelVertexPaint.cpp
+++ b/src/app/PanelVertexPaint.cpp
@@ -513,7 +513,7 @@ void App::drawPalette_Color() {
ImGui::PopID();
if (i % 5 != 4) ImGui::SameLine();
}
- ImGui::TextDisabled(paintsTexture(doc_.mesh) && hasMaterialChannels(*doc_.mesh.texture) ? "C over the model picks its material" : "C over the model picks its colour");
+ ImGui::TextDisabled(tr(paintsTexture(doc_.mesh) && hasMaterialChannels(*doc_.mesh.texture) ? "C over the model picks its material" : "C over the model picks its colour"));
drawBrushMaterialContents(); // per-channel brush values when the texture has material channels (PanelPbr.cpp)
{
const Mesh& m = doc_.mesh;
diff --git a/src/app/Pickers.cpp b/src/app/Pickers.cpp
index 863e0985..32c1260e 100644
--- a/src/app/Pickers.cpp
+++ b/src/app/Pickers.cpp
@@ -675,7 +675,7 @@ void drawBrushGrid(App& app, GridMode mode) {
if (popup) {
// What was typed, or how to type.
if (typed.empty()) {
- ImGui::TextDisabled("Type a letter to narrow the brushes, then press its orange key");
+ ImGui::TextDisabled(tr("Type a letter to narrow the brushes, then press its orange key"));
ImGui::SameLine();
SortMenu("brushsortpop", app.uiPrefs_.brushSort);
} else {
@@ -684,8 +684,8 @@ void drawBrushGrid(App& app, GridMode mode) {
c = char(std::toupper(static_cast<unsigned char>(c)));
ImGui::TextColored(ImVec4(0.94f, 0.53f, 0.18f, 1.0f), "%s", shownTyped.c_str());
ImGui::SameLine();
- ImGui::TextDisabled(substring ? "(contains) Backspace: undo a letter Enter: first match"
- : "Backspace: undo a letter Enter: first match");
+ ImGui::TextDisabled(tr(substring ? "(contains) Backspace: undo a letter Enter: first match"
+ : "Backspace: undo a letter Enter: first match"));
}
}
@@ -752,30 +752,30 @@ void drawBrushGrid(App& app, GridMode mode) {
const std::string action = brushActionId(b);
auto& shelf = app.layout_.bottomShelf;
const bool onShelf = std::find(shelf.begin(), shelf.end(), action) != shelf.end();
- if (ImGui::MenuItem("Add to bottom shelf", nullptr, false, !onShelf && b.kind != BrushItem::Kind::File)) {
+ if (ImGui::MenuItem(tr("Add to bottom shelf"), nullptr, false, !onShelf && b.kind != BrushItem::Kind::File)) {
shelf.insert(std::find(shelf.begin(), shelf.end(), "widget.add_brush"), action); // before [+]
app.status_ = "Added " + b.name + " to the bottom shelf";
}
if (b.kind == BrushItem::Kind::Recipe) {
// The same menu as the Brush palette's custom-brush list (PanelBrushLibrary.cpp).
- if (ImGui::MenuItem("Copy brush code")) app.copyBrushCode(b.index);
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("One line of text to share in chat, email or a forum");
- if (ImGui::MenuItem("Rename...##brush")) {
+ if (ImGui::MenuItem(tr("Copy brush code"))) app.copyBrushCode(b.index);
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("One line of text to share in chat, email or a forum"));
+ if (ImGui::MenuItem(tr("Rename...##brush"))) {
app.brushPopup_ = App::BrushPopup::Rename;
app.brushPopupName_ = app.doc_.brushes[size_t(b.index)].name;
std::snprintf(app.brushRenameBuf_, sizeof app.brushRenameBuf_, "%s", app.brushPopupName_.c_str());
}
- if (ImGui::MenuItem("Save as .sfbrush...")) {
+ if (ImGui::MenuItem(tr("Save as .sfbrush..."))) {
app.doc_.activeBrush = b.index;
app.paintMode_ = false;
app.saveFileDialog(App::FileAction::SaveBrush);
}
const BrushRecipe& r = app.doc_.brushes[size_t(b.index)];
- if (ImGui::MenuItem("Delete...##brush", nullptr, false, isUserLibraryBrush(r))) {
+ if (ImGui::MenuItem(tr("Delete...##brush"), nullptr, false, isUserLibraryBrush(r))) {
app.brushPopup_ = App::BrushPopup::Delete;
app.brushPopupName_ = r.name;
}
- if (ImGui::MenuItem("Reveal in folder", nullptr, false, !r.origin.path.empty()))
+ if (ImGui::MenuItem(tr("Reveal in folder"), nullptr, false, !r.origin.path.empty()))
app.revealBrushFile(b.index);
}
ImGui::EndPopup();
@@ -850,7 +850,7 @@ void drawBrushGrid(App& app, GridMode mode) {
for (size_t i : in)
drawItem(i, column, sec.title.c_str());
}
- if (shown.empty()) ImGui::TextDisabled("No brush matches \"%s\"", typed.c_str());
+ if (shown.empty()) ImGui::TextDisabled(tr("No brush matches \"%s\""), typed.c_str());
if (popup) ImGui::EndChild();
AssetTileHoverGlow();
}
@@ -885,7 +885,7 @@ void drawStrokeGrid(App& app, GridMode mode) {
}
if (app.strokeType_ == StrokeType::Spray) {
ImGui::SetNextItemWidth(-1);
- ImGui::SliderFloat("##scatter", &app.sprayScatter_, 0.0f, 2.0f, "Scatter %.2f");
+ ImGui::SliderFloat("##scatter", &app.sprayScatter_, 0.0f, 2.0f, tr("Scatter %.2f"));
ui::HelpText("Scatter", nullptr, "How far spray dabs land from the cursor, as a fraction of the brush size.",
"Stroke");
}
@@ -918,7 +918,7 @@ void drawVdmGrid(App& app, GridMode mode) {
if (!v->builtin && ImGui::BeginPopupContextItem()) {
ImGui::TextDisabled("%s", v->name.c_str());
ImGui::Separator();
- if (ImGui::MenuItem("Delete##vdm")) app.runCommand("vdm_delete", {{"name", v->name}});
+ if (ImGui::MenuItem(tr("Delete##vdm"))) app.runCommand("vdm_delete", {{"name", v->name}});
ImGui::EndPopup();
}
}
@@ -935,7 +935,7 @@ void drawAlphaGrid(App& app, GridMode mode) {
const BrushAlpha& current = app.doc_.brushAlpha;
static char filter[64] = "";
ImGui::SetNextItemWidth(mode == GridMode::Popup ? 200.0f * app.uiScale_ : -SortMenuWidth());
- ImGui::InputTextWithHint("##alphafilter", ICON_LC_SEARCH " Filter alphas", filter, sizeof filter);
+ ImGui::InputTextWithHint("##alphafilter", tr(ICON_LC_SEARCH " Filter alphas"), filter, sizeof filter);
ImGui::SameLine();
SortMenu("alphasort", app.uiPrefs_.alphaSort);
const int columns = columnsFor(tile, mode);
@@ -1026,14 +1026,14 @@ void drawAlphaGrid(App& app, GridMode mode) {
quickInfo(tex, glyph, e.name, e.help, e.path);
ui::HelpText(e.name.c_str(), nullptr, e.help.c_str(), "Alpha");
}
- if (order.empty()) ImGui::TextDisabled("No alpha matches \"%s\"", filter);
+ if (order.empty()) ImGui::TextDisabled(tr("No alpha matches \"%s\""), filter);
ImGui::Dummy(ImVec2(0, 2));
- if (ImGui::Button(ICON_LC_FOLDER_OPEN " Load image...", ImVec2(mode == GridMode::Popup ? 0.0f : -1.0f, 0)))
+ if (ImGui::Button(tr(ICON_LC_FOLDER_OPEN " Load image..."), ImVec2(mode == GridMode::Popup ? 0.0f : -1.0f, 0)))
SDL_ShowOpenFileDialog(App::onAlphaChosen, &app, app.window_, kAlphaFilters, 2, nullptr, false);
ui::HelpText("Load image", nullptr, "Use any grayscale image as the alpha: white = full effect, black = none.",
"Alpha");
if (mode == GridMode::Popup) ImGui::SameLine();
- ImGui::Checkbox("Invert loaded image", &app.alphaInvert_);
+ ImGui::Checkbox(tr("Invert loaded image"), &app.alphaInvert_);
ui::HelpText("Invert loaded image", nullptr, "Load image alphas as their negative (black = full effect).", "Alpha");
AssetTileHoverGlow();
}
@@ -1095,29 +1095,29 @@ void litsphereMenu(App& app, int index, const std::function<void()>& beforeRemov
std::snprintf(buffer, sizeof buffer, "%s", forFolder ? "" : name.c_str());
};
ImGui::BeginDisabled(!locked.empty());
- if (ImGui::Selectable("Rename...##litsphere", false, ImGuiSelectableFlags_NoAutoClosePopups)) openField(false);
+ if (ImGui::Selectable(tr("Rename...##litsphere"), false, ImGuiSelectableFlags_NoAutoClosePopups)) openField(false);
ImGui::EndDisabled();
lockedTip();
field("##litsphererename", false);
ImGui::BeginDisabled(!locked.empty());
- const bool moveMenu = ImGui::BeginMenu("Move to folder##litsphere");
+ const bool moveMenu = ImGui::BeginMenu(tr("Move to folder##litsphere"));
ImGui::EndDisabled();
lockedTip();
if (moveMenu) {
const std::string group = c ? c->group : std::string();
- if (ImGui::MenuItem("Lit Spheres (no folder)##litspheremove", nullptr, group.empty(), !group.empty()))
+ if (ImGui::MenuItem(tr("Lit Spheres (no folder)##litspheremove"), nullptr, group.empty(), !group.empty()))
app.runCommand("move_litsphere", {{"name", name}, {"folder", std::string()}});
for (const std::string& sub : app.litsphereSubfolders())
if (ImGui::MenuItem((sub + "##litspheremove").c_str(), nullptr, sub == group, sub != group))
app.runCommand("move_litsphere", {{"name", name}, {"folder", sub}});
ImGui::Separator();
- if (ImGui::Selectable("New folder...##litsphere", false, ImGuiSelectableFlags_NoAutoClosePopups)) openField(true);
+ if (ImGui::Selectable(tr("New folder...##litsphere"), false, ImGuiSelectableFlags_NoAutoClosePopups)) openField(true);
field("##litspherefolder", true);
ImGui::EndMenu();
}
ImGui::Separator();
if (ImGui::IsKeyPressed(ImGuiKey_Escape, false)) ImGui::CloseCurrentPopup(); // (also while typing: nothing applied)
- if (ImGui::MenuItem("Remove##litsphere")) {
+ if (ImGui::MenuItem(tr("Remove##litsphere"))) {
if (beforeRemove) beforeRemove();
app.runCommand("remove_litsphere", {{"name", name}});
}
@@ -1292,12 +1292,12 @@ void drawPickers(App& app) {
const float scale = app.uiScale_;
const float gridW = 6 * (64.0f * scale + 6.0f) + 20.0f + ImGui::GetStyle().ScrollbarSize;
if (s.held != 0) { // Ctrl / Ctrl+Shift held: the mask or selection brushes (Brush and Stroke only)
- if (beginPickerWindow(s.picker == Picker::Brush ? "Brushes##picker" : "Strokes##picker",
+ if (beginPickerWindow(tr(s.picker == Picker::Brush ? "Brushes##picker" : "Strokes##picker"),
(s.held == 1 ? 3 : 4) * (64.0f * scale + 6.0f) + 20.0f)) { // Ctrl+Shift: 4 Cut shapes a row
const bool strokes = s.picker == Picker::Stroke;
pickerTitle(strokes ? ICON_LC_SPLINE : ICON_LC_BRUSH,
- s.held == 1 ? (strokes ? "Mask stroke (Ctrl)" : "Mask brushes (Ctrl)")
- : (strokes ? "Selection stroke (Ctrl+Shift)" : "Selection brushes (Ctrl+Shift)"),
+ tr(s.held == 1 ? (strokes ? "Mask stroke (Ctrl)" : "Mask brushes (Ctrl)")
+ : (strokes ? "Selection stroke (Ctrl+Shift)" : "Selection brushes (Ctrl+Shift)")),
nullptr);
ImGui::Spacing();
if (app.drawHeldBrushGrid(s.held == 1 ? App::HeldBrush::Mask : App::HeldBrush::Select, strokes))
@@ -1307,15 +1307,15 @@ void drawPickers(App& app) {
} else {
switch (s.picker) {
case Picker::Brush:
- if (beginPickerWindow("Brushes##picker", gridW)) {
- pickerTitle(ICON_LC_BRUSH, s.addToShelf ? "Add a brush to the shelf" : "Brushes", "B");
+ if (beginPickerWindow(tr("Brushes##picker"), gridW)) {
+ pickerTitle(ICON_LC_BRUSH, tr(s.addToShelf ? "Add a brush to the shelf" : "Brushes"), "B");
drawBrushGrid(app, GridMode::Popup);
}
ImGui::End();
break;
case Picker::Stroke:
- if (beginPickerWindow("Strokes##picker", 4 * (64.0f * scale + 6.0f) + 20.0f)) {
- pickerTitle(ICON_LC_SPLINE, "Stroke", nullptr);
+ if (beginPickerWindow(tr("Strokes##picker"), 4 * (64.0f * scale + 6.0f) + 20.0f)) {
+ pickerTitle(ICON_LC_SPLINE, tr("Stroke"), nullptr);
ImGui::Spacing();
drawStrokeGrid(app, GridMode::Popup);
// Continuous (#31) here too, beside the strokes, as in the Stroke palette (#43)
@@ -1325,15 +1325,15 @@ void drawPickers(App& app) {
ImGui::End();
break;
case Picker::Alpha:
- if (beginPickerWindow("Alphas##picker", gridW)) {
- pickerTitle(ICON_LC_CIRCLE_DASHED, "Alpha", nullptr);
+ if (beginPickerWindow(tr("Alphas##picker"), gridW)) {
+ pickerTitle(ICON_LC_CIRCLE_DASHED, tr("Alpha"), nullptr);
drawAlphaGrid(app, GridMode::Popup);
}
ImGui::End();
break;
case Picker::Material:
- if (beginPickerWindow("Materials##picker", gridW)) {
- pickerTitle(ICON_LC_SUN, "Material", "M");
+ if (beginPickerWindow(tr("Materials##picker"), gridW)) {
+ pickerTitle(ICON_LC_SUN, tr("Material"), "M");
ImGui::Spacing();
drawMaterialGrid(app, GridMode::Popup);
}
diff --git a/src/app/ProofMode.cpp b/src/app/ProofMode.cpp
index 9f889f5d..2717c7f4 100644
--- a/src/app/ProofMode.cpp
+++ b/src/app/ProofMode.cpp
@@ -575,18 +575,18 @@ void App::drawProofUi() {
ProofState& p = *proof_;
const float sc = uiScale_;
if (p.stage == ProofState::Stage::Intro) {
- ImGui::OpenPopup("Benchmark (proof mode)");
- if (ImGui::BeginPopupModal("Benchmark (proof mode)", nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
+ ImGui::OpenPopup("###proof.benchmark");
+ if (ImGui::BeginPopupModal(tr("Benchmark (proof mode)###proof.benchmark"), nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::PushTextWrapPos(520 * sc);
- ImGui::TextWrapped("Proof mode measures how responsive sculpting is on this computer. For each mesh size it "
+ ImGui::TextWrapped(tr("Proof mode measures how responsive sculpting is on this computer. For each mesh size it "
"builds a sphere with subdivision levels, then plays a scripted pen stroke through the "
"same code your pen goes through (240 samples a second), with a normal and a large brush, "
- "and turns the view.");
+ "and turns the view."));
ImGui::Spacing();
static const char* const kScenes[] = {"Standard 15M: a 15 million triangle head",
"Standard 33M: a 33 million triangle head",
"Standard 15M and 33M", "Spheres: 5M, 20M, 33M (100M with the memory)"};
- ImGui::TextUnformatted("Scene");
+ ImGui::TextUnformatted(tr("Scene"));
for (int i = 0; i < 4; ++i)
if (ImGui::RadioButton(kScenes[i], p.sceneChoice == i)) {
p.sceneChoice = i;
@@ -597,8 +597,8 @@ void App::drawProofUi() {
{"still", -1.0f, 0.6}};
}
if (!p.scene.empty())
- ImGui::TextDisabled("Clay at 25, 60 and 120 px, Move, Smooth, a 240 px brush, then an orbit: the scene the "
- "website's table uses (same as sculptforge --benchmark %s)", p.scene.c_str());
+ ImGui::TextDisabled(tr("Clay at 25, 60 and 120 px, Move, Smooth, a 240 px brush, then an orbit: the scene the "
+ "website's table uses (same as sculptforge --benchmark %s)"), p.scene.c_str());
{ // What each scene needs free (a scene without it is skipped), against what is free now.
const size_t free = availableMemoryBytes();
std::string need, shortOf;
@@ -608,29 +608,29 @@ void App::drawProofUi() {
need += (need.empty() ? "" : ", ") + s.label + " about " + gb;
if (!c.enough) shortOf += (shortOf.empty() ? "" : ", ") + s.label;
}
- ImGui::TextDisabled("%s of memory free now (%s)", free ? formatGigabytes(free).c_str() : "Unknown amount",
+ ImGui::TextDisabled(tr("%s of memory free now (%s)"), free ? formatGigabytes(free).c_str() : "Unknown amount",
need.c_str());
if (!shortOf.empty())
- ImGui::TextColored(theme::danger, "Not enough free memory for %s: it will be skipped. Close other apps first.",
+ ImGui::TextColored(theme::danger, tr("Not enough free memory for %s: it will be skipped. Close other apps first."),
shortOf.c_str());
}
ImGui::Spacing();
- ImGui::TextWrapped("A live display shows the frame rate, frame times (median, 95th, 99th percentile), how far "
+ ImGui::TextWrapped(tr("A live display shows the frame rate, frame times (median, 95th, 99th percentile), how far "
"the stroke trails the pointer, and memory. The result is saved as JSON beside a video "
- "of the run:");
+ "of the run:"));
ImGui::TextDisabled("%s", p.jsonPath.c_str());
- ImGui::Checkbox("Record a video of the run (needs ffmpeg)", &p.video);
- ImGui::Checkbox("Keep vertical sync on (frame rate capped at the display's)", &p.vsync);
+ ImGui::Checkbox(tr("Record a video of the run (needs ffmpeg)"), &p.video);
+ ImGui::Checkbox(tr("Keep vertical sync on (frame rate capped at the display's)"), &p.vsync);
ImGui::Spacing();
- ImGui::TextColored(theme::accent, "The current scene is replaced. Save your work first.");
- ImGui::TextDisabled("Press Esc to stop the run.");
+ ImGui::TextColored(theme::accent, tr("The current scene is replaced. Save your work first."));
+ ImGui::TextDisabled(tr("Press Esc to stop the run."));
ImGui::PopTextWrapPos();
- if (ImGui::Button("Start")) {
+ if (ImGui::Button(tr("Start"))) {
p.stage = ProofState::Stage::Announce;
ImGui::CloseCurrentPopup();
}
ImGui::SameLine();
- if (ImGui::Button("Cancel")) {
+ if (ImGui::Button(tr("Cancel"))) {
ImGui::CloseCurrentPopup();
proof_.reset();
}
@@ -641,7 +641,7 @@ void App::drawProofUi() {
if (p.stage == ProofState::Stage::Results) {
ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Appearing, ImVec2(0.5f, 0.5f));
bool open = true;
- if (ImGui::Begin("Benchmark results", &open, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse)) {
+ if (ImGui::Begin(tr("Benchmark results"), &open, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse)) {
if (!p.error.empty()) ImGui::TextColored(theme::danger, "%s", p.error.c_str());
if (ImGui::BeginTable("##proof", 8, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg)) {
for (const char* h : {"Mesh", "Phase", "fps", "frame p50", "frame p95", "frame p99", "worst stall", "trails pointer p50 / p95"})
@@ -658,29 +658,29 @@ void App::drawProofUi() {
ImGui::TableNextColumn();
ImGui::Text("%.0f", ph.seconds > 0 ? double(ph.frameMs.size()) / ph.seconds : 0.0);
ImGui::TableNextColumn();
- ImGui::Text("%.1f ms", f.p50);
+ ImGui::Text(tr("%.1f ms"), f.p50);
ImGui::TableNextColumn();
- ImGui::Text("%.1f ms", f.p95);
+ ImGui::Text(tr("%.1f ms"), f.p95);
ImGui::TableNextColumn();
- ImGui::Text("%.1f ms", f.p99);
+ ImGui::Text(tr("%.1f ms"), f.p99);
ImGui::TableNextColumn();
- ImGui::Text("%.0f ms", worstStallMs(ph.frameMs, ph.releaseMs));
+ ImGui::Text(tr("%.0f ms"), worstStallMs(ph.frameMs, ph.releaseMs));
ImGui::TableNextColumn();
if (ph.lagMs.empty()) ImGui::TextDisabled("-");
- else ImGui::Text("%.0f / %.0f ms, %.0f / %.0f px", l.p50, l.p95, lp.p50, lp.p95);
+ else ImGui::Text(tr("%.0f / %.0f ms, %.0f / %.0f px"), l.p50, l.p95, lp.p50, lp.p95);
}
ImGui::EndTable();
}
- ImGui::TextDisabled("Result: %s", p.jsonPath.c_str());
- if (p.video) ImGui::TextDisabled("Video: %s", p.videoPath.c_str());
- if (ImGui::Button("Open folder")) {
+ ImGui::TextDisabled(tr("Result: %s"), p.jsonPath.c_str());
+ if (p.video) ImGui::TextDisabled(tr("Video: %s"), p.videoPath.c_str());
+ if (ImGui::Button(tr("Open folder"))) {
const std::string dir = std::filesystem::path(p.jsonPath).parent_path().string();
SDL_OpenURL(("file://" + dir).c_str());
}
ImGui::SameLine();
- if (ImGui::Button("How to share results")) SDL_OpenURL("https://sculptforge.app/benchmarks/");
+ if (ImGui::Button(tr("How to share results"))) SDL_OpenURL("https://sculptforge.app/benchmarks/");
ImGui::SameLine();
- if (ImGui::Button("Close")) open = false;
+ if (ImGui::Button(tr("Close"))) open = false;
}
ImGui::End();
if (!open) {
diff --git a/src/app/QuickTour.cpp b/src/app/QuickTour.cpp
index f3410541..d5d1171d 100644
--- a/src/app/QuickTour.cpp
+++ b/src/app/QuickTour.cpp
@@ -145,11 +145,11 @@ void App::drawQuickTour() {
ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoMove;
if (ImGui::Begin("##quicktour_offer", nullptr, flags)) {
ImGui::AlignTextToFramePadding();
- ImGui::TextUnformatted("New to SculptForge? A two-minute tour shows where everything is.");
+ ImGui::TextUnformatted(tr("New to SculptForge? A two-minute tour shows where everything is."));
ImGui::SameLine();
- if (ImGui::SmallButton("Take the tour##quicktour.offer")) showQuickTour(0);
+ if (ImGui::SmallButton(tr("Take the tour##quicktour.offer"))) showQuickTour(0);
ImGui::SameLine();
- if (ImGui::SmallButton("No thanks##quicktour.offer")) {
+ if (ImGui::SmallButton(tr("No thanks##quicktour.offer"))) {
quickTourOffer_ = false;
quickTourDone_ = true;
saveProjectPrefs();
@@ -171,16 +171,16 @@ void App::drawQuickTour() {
ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoMove;
if (ImGui::Begin("##quicktour_aside", nullptr, flags)) {
ImGui::AlignTextToFramePadding();
- ImGui::Text("Quick tour %d / %d: %s", i + 1, kSlideCount, slide.title);
+ ImGui::Text(tr("Quick tour %d / %d: %s"), i + 1, kSlideCount, slide.title);
ImGui::SameLine();
- if (ImGui::SmallButton("Back to the tour##quicktour")) quickTourAside_ = false;
+ if (ImGui::SmallButton(tr("Back to the tour##quicktour"))) quickTourAside_ = false;
ImGui::SameLine();
- if (ImGui::SmallButton("Next##quicktour.aside")) {
+ if (ImGui::SmallButton(tr("Next##quicktour.aside"))) {
quickTourSlide_ = std::min(i + 1, kSlideCount - 1);
quickTourAside_ = false;
}
ImGui::SameLine();
- if (ImGui::SmallButton("Close##quicktour.aside")) closeQuickTour();
+ if (ImGui::SmallButton(tr("Close##quicktour.aside"))) closeQuickTour();
}
ImGui::End();
return;
@@ -192,7 +192,7 @@ void App::drawQuickTour() {
ImGui::SetNextWindowSize(ImVec2(w, 0.0f), ImGuiCond_Always);
bool open = true;
const ImGuiWindowFlags flags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize;
- if (ImGui::Begin("New to SculptForge? A quick tour##quicktour", &open, flags)) {
+ if (ImGui::Begin(tr("New to SculptForge? A quick tour##quicktour"), &open, flags)) {
// The picture: a screenshot of the part of SculptForge the slide is about, in a band of one height.
const float iw = ImGui::GetContentRegionAvail().x, band = std::floor(std::min(iw * 0.577f, 360.0f * s));
const ImVec2 at = ImGui::GetCursorScreenPos();
@@ -226,16 +226,16 @@ void App::drawQuickTour() {
const ImVec4 accent = ImGui::GetStyleColorVec4(ImGuiCol_ButtonActive);
if (last) {
ImGui::PushStyleColor(ImGuiCol_Button, accent);
- if (ImGui::Button(ICON_LC_HEART " See memberships##quicktour")) openSupportPage();
+ if (ImGui::Button(tr(ICON_LC_HEART " See memberships##quicktour"))) openSupportPage();
ImGui::PopStyleColor();
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("Opens sculptforge.app/support.html in your browser.");
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("Opens sculptforge.app/support.html in your browser."));
ImGui::SameLine();
- if (ImGui::Button("Maybe later##quicktour")) closeQuickTour(); // and it never comes back by itself
+ if (ImGui::Button(tr("Maybe later##quicktour"))) closeQuickTour(); // and it never comes back by itself
} else if (slide.action) {
ImGui::PushStyleColor(ImGuiCol_Button, accent);
- if (ImGui::Button(ICON_LC_EYE " Show me##quicktour")) quickTourShowMe(i);
+ if (ImGui::Button(tr(ICON_LC_EYE " Show me##quicktour"))) quickTourShowMe(i);
ImGui::PopStyleColor();
- if (ImGui::IsItemHovered()) ImGui::SetTooltip("Opens it in SculptForge; the tour waits at the bottom.");
+ if (ImGui::IsItemHovered()) ImGui::SetTooltip(tr("Opens it in SculptForge; the tour waits at the bottom."));
}
// Back and Next at the right.
const ImGuiStyle& st = ImGui::GetStyle();
@@ -244,7 +244,7 @@ void App::drawQuickTour() {
st.ItemSpacing.x;
ImGui::SameLine(std::max(ImGui::GetCursorPosX(), ImGui::GetWindowContentRegionMax().x - bw));
ImGui::BeginDisabled(i == 0);
- if (ImGui::Button("Back##quicktour")) quickTourSlide_ = i - 1;
+ if (ImGui::Button(tr("Back##quicktour"))) quickTourSlide_ = i - 1;
ImGui::EndDisabled();
ImGui::SameLine();
if (ImGui::Button(next)) {
diff --git a/src/app/RadialMenu.cpp b/src/app/RadialMenu.cpp
index a53a5b54..2dcc4929 100644
--- a/src/app/RadialMenu.cpp
+++ b/src/app/RadialMenu.cpp
@@ -458,7 +458,7 @@ void App::drawRadialMenusSection() {
};
const float addW = ImGui::GetFrameHeight() * 1.2f;
ImGui::SetNextItemWidth(-(addW + ImGui::GetStyle().ItemSpacing.x));
- if (ImGui::BeginCombo("##radial.menu", radialEdit_.menu >= 0 ? menuTitle(radialEdit_.menu).c_str() : "No menus")) {
+ if (ImGui::BeginCombo("##radial.menu", tr(radialEdit_.menu >= 0 ? menuTitle(radialEdit_.menu).c_str() : "No menus"))) {
for (int i = 0; i < int(radialMenus_.size()); ++i)
if (ImGui::Selectable((menuTitle(i) + "###radialmenu" + std::to_string(i + 1)).c_str(), i == radialEdit_.menu))
radialEdit_.menu = i, radialEdit_.pickSlot = -2, radialEdit_.selected = -1;
@@ -487,7 +487,7 @@ void App::drawRadialMenusSection() {
char name[kRadialNameMax + 1];
std::snprintf(name, sizeof name, "%s", m.name.c_str());
ImGui::SetNextItemWidth(-FLT_MIN);
- if (ImGui::InputTextWithHint("##radial.name", "Name", name, sizeof name)) {
+ if (ImGui::InputTextWithHint("##radial.name", tr("Name"), name, sizeof name)) {
m.name = radialCleanText(name, kRadialNameMax);
refreshRadialActions();
}
@@ -561,7 +561,7 @@ void App::drawRadialMenusSection() {
std::snprintf(label, sizeof label, "%s", slot.label.c_str());
const float iconW = 2.6f * rowH;
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x - iconW - spacing);
- if (ImGui::InputTextWithHint("##radial.label", a ? a->label.c_str() : "Label", label, sizeof label))
+ if (ImGui::InputTextWithHint("##radial.label", tr(a ? a->label.c_str() : "Label"), label, sizeof label))
slot.label = radialCleanText(label, kRadialLabelMax);
ui::HelpText("Label", nullptr, "What the pie shows for it; empty: the action's own name.", path);
ImGui::SameLine();
@@ -608,7 +608,7 @@ void App::drawRadialMenusSection() {
ImGui::SetNextItemWidth(-FLT_MIN);
if (radialEdit_.focusSearch) ImGui::SetKeyboardFocusHere();
radialEdit_.focusSearch = false;
- ImGui::InputTextWithHint("##radial.search", ICON_LC_SEARCH " Search actions", radialEdit_.query,
+ ImGui::InputTextWithHint("##radial.search", tr(ICON_LC_SEARCH " Search actions"), radialEdit_.query,
sizeof radialEdit_.query);
if (radialEdit_.foundQuery != radialEdit_.query || radialEdit_.foundRevision != actions_.revision()) {
radialEdit_.foundQuery = radialEdit_.query;
diff --git a/src/app/Shell.cpp b/src/app/Shell.cpp
index 17fc28b7..db0c37e8 100644
--- a/src/app/Shell.cpp
+++ b/src/app/Shell.cpp
@@ -1010,7 +1010,7 @@ void App::drawTitleStrip(const ShellGeometry& g) {
ImGui::SameLine(0.0f, 6.0f * s);
ImGui::SetCursorPosY(textY);
if (fontBold_) ImGui::PushFont(fontBold_);
- ImGui::TextUnformatted("SculptForge");
+ ImGui::TextUnformatted(tr("SculptForge"));
if (fontBold_) ImGui::PopFont();
// Document name; click saves.
@@ -2432,7 +2432,7 @@ void App::drawDynamicOffer() {
ImGui::Text(tr("Delete SDiv %d to %d and the detail sculpted on them?"), current + 2, levels);
ImGui::TextDisabled("%s", tr("Ctrl+Z brings them back."));
ImGui::Spacing();
- if (ImGui::Button(tr(lower ? "Delete Lower Levels" : "Delete Higher Levels"))) {
+ if (ImGui::Button(tr(tr(lower ? "Delete Lower Levels" : "Delete Higher Levels")))) {
ImGui::CloseCurrentPopup();
runCommand(pendingLevelDelete_);
pendingLevelDelete_.clear();
diff --git a/src/app/Tablet.cpp b/src/app/Tablet.cpp
index a40da880..5bbc3ced 100644
--- a/src/app/Tablet.cpp
+++ b/src/app/Tablet.cpp
@@ -509,7 +509,7 @@ void App::drawTabletSection() {
} else {
ImGui::TextColored(col(ui::color::accent), ICON_LC_PEN_LINE);
ImGui::SameLine();
- ImGui::TextUnformatted(penName_.empty() ? "Pen detected" : penName_.c_str());
+ ImGui::TextUnformatted(tr(penName_.empty() ? "Pen detected" : penName_.c_str()));
ui::HelpText("Pen", nullptr, "The pen SculptForge last saw, and whether it is in range or touching.", path);
std::string info = penTouching_ ? (penEraser_ ? "eraser touching" : "touching") : penInProximity_ ? "in range" : "away";
const char* sep = " \xc2\xb7 "; // middle dot
@@ -537,7 +537,7 @@ void App::drawTabletSection() {
char overlay[64];
std::snprintf(overlay, sizeof overlay, "Pressure %.2f " ICON_LC_ARROW_RIGHT " %.2f", raw, curved);
ImGui::PushStyleColor(ImGuiCol_PlotHistogram, col(ui::color::accent));
- ImGui::ProgressBar(penSeen_ ? curved : 0.0f, ImVec2(-FLT_MIN, 0), penSeen_ ? overlay : "Pressure -");
+ ImGui::ProgressBar(penSeen_ ? curved : 0.0f, ImVec2(-FLT_MIN, 0), tr(penSeen_ ? overlay : "Pressure -"));
ImGui::PopStyleColor();
ui::HelpText("Pressure meter", nullptr,
"The pen's pressure as the tablet reports it, and after the pressure curve below (what brushes get).", path);
@@ -690,7 +690,7 @@ void App::drawTabletSection() {
}
ui::HelpText(label, nullptr, help, path);
};
- mapping("Eraser", t.eraser, {PenAction::Invert, PenAction::Smooth, PenAction::EraseMask, PenAction::None},
+ mapping(tr("Eraser"), t.eraser, {PenAction::Invert, PenAction::Smooth, PenAction::EraseMask, PenAction::None},
"What the pen's eraser end does. Invert: brushes subtract, like holding Alt (with Ctrl it erases mask). "
"Erase mask: removes mask wherever it draws.");
static const char* kButtonHelp[kPenButtons] = {
diff --git a/src/app/Ui.cpp b/src/app/Ui.cpp
index 25f6bff4..73ed62d2 100644
--- a/src/app/Ui.cpp
+++ b/src/app/Ui.cpp
@@ -110,7 +110,7 @@ bool dragSource(App& app, const char* itemId, const char* label, int shelf, int
p.fromIndex = index;
ImGui::SetDragDropPayload(kUiItemPayload, &p, sizeof p);
ImGui::TextUnformatted(label);
- ImGui::TextColored(rgba(color::textDim), shelf >= 0 ? "Drop on a shelf to move, elsewhere to remove" : "Drop on a shelf to add");
+ ImGui::TextColored(rgba(color::textDim), tr(shelf >= 0 ? "Drop on a shelf to move, elsewhere to remove" : "Drop on a shelf to add"));
ImGui::EndDragDropSource();
return true;
}
@@ -890,7 +890,7 @@ void DrawHelp(App& app) {
ImGui::PopStyleColor();
if (r.hasCommand && !r.params.empty()) {
ImGui::PushStyleColor(ImGuiCol_Text, rgba(color::textDim));
- ImGui::TextUnformatted("Hold Alt for the scripting parameters.");
+ ImGui::TextUnformatted(tr("Hold Alt for the scripting parameters."));
ImGui::PopStyleColor();
}
} else {
@@ -900,7 +900,7 @@ void DrawHelp(App& app) {
usage += p.required ? " " + p.name + "=<" + typeName(p.type) + ">" : " [" + p.name + "=...]";
ImGui::TextColored(rgba(color::accent), "%s", usage.c_str());
ImGui::PopFont();
- if (r.params.empty()) ImGui::TextColored(rgba(color::textDim), "No parameters.");
+ if (r.params.empty()) ImGui::TextColored(rgba(color::textDim), tr("No parameters."));
for (const auto& p : r.params) {
ImGui::PushFont(app.consoleFont());
ImGui::TextColored(rgba(color::text), "%s", p.name.c_str());
diff --git a/src/app/UserGuide.cpp b/src/app/UserGuide.cpp
index 0a962e62..90f59e6e 100644
--- a/src/app/UserGuide.cpp
+++ b/src/app/UserGuide.cpp
@@ -531,7 +531,7 @@ void UserGuide::draw(App& app) {
ImGui::SetNextWindowPos(ImVec2(c.x + c.w * 0.5f, c.y + c.h * 0.5f), ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f));
ImGui::SetNextWindowSizeConstraints(ImVec2(520.0f * s, 320.0f * s), ImVec2(FLT_MAX, FLT_MAX));
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(8.0f * s, 8.0f * s));
- const bool visible = ImGui::Begin("User Guide", &open_, ImGuiWindowFlags_NoCollapse);
+ const bool visible = ImGui::Begin(tr("User Guide"), &open_, ImGuiWindowFlags_NoCollapse);
ImGui::PopStyleVar();
if (!visible) {
ImGui::End();
@@ -635,7 +635,7 @@ void UserGuide::drawToolbar(App& app) {
ImGui::SetKeyboardFocusHere();
focusSearch_ = false;
}
- ImGui::InputTextWithHint("##guide_search", ICON_LC_SEARCH " Search the guide (Ctrl+F)", query_, sizeof query_,
+ ImGui::InputTextWithHint("##guide_search", tr(ICON_LC_SEARCH " Search the guide (Ctrl+F)"), query_, sizeof query_,
ImGuiInputTextFlags_EscapeClearsAll);
ui::HelpText("Search", "Ctrl+F", "Find every place in the guide that mentions all of these words.", "Help > User Guide");
if (query_[0]) {
@@ -715,8 +715,8 @@ void UserGuide::drawSearchResults(App& app) {
ImGui::TextColored(ImGui::ColorConvertU32ToFloat4(kDim), tr("Nothing in the guide matches \"%s\"."), query_);
ImGui::PopTextWrapPos();
} else {
- ImGui::TextColored(ImGui::ColorConvertU32ToFloat4(kDim), "%zu result%s%s", hits_.size(), hits_.size() == 1 ? "" : "s",
- hits_.size() >= 50 ? " (best 50)" : "");
+ ImGui::TextColored(ImGui::ColorConvertU32ToFloat4(kDim), tr(hits_.size() >= 50 ? "%zu results (best 50)" : hits_.size() == 1 ? "%zu result" : "%zu results"),
+ hits_.size());
}
ImFont* small = app.smallFont() ? app.smallFont() : ImGui::GetFont();
ImFont* bold = app.boldFont() ? app.boldFont() : ImGui::GetFont();
diff --git a/tests/ui/generate_3d_translated.sfui b/tests/ui/generate_3d_translated.sfui
new file mode 100644
index 00000000..234e1ab2
--- /dev/null
+++ b/tests/ui/generate_3d_translated.sfui
@@ -0,0 +1,43 @@
+# Generate 3D in Simplified Chinese and Spanish (merge-0106-4b found it mostly English in zh-CN): the tabs, the
+# service list, the hints, the remesh choices, Generate 3D model and Quick shapes all go through tr(). Product and
+# model names stay English. The ImGui labels the panel shows are all translated: i18n_raw_labels fails on any that
+# skips tr(); this is the screen check, at 1x.
+run ui_look look=classic layout=classic
+click "Preferences##palette.preferences"
+click "Interface##preferences.interface"
+click "简体中文##language.zh-CN"
+click "偏好设置##palette.preferences"
+drop ../../assets/demo/teddy-sketch.png
+wait_for "生成 3D 模型" 5
+expect_text 从图片
+expect_text 完整 3D 模型(AI 重建)
+expect_text Hunyuan3D 2.1 (Tencent) - 免费,无需令牌
+expect_text 约 32768 个四边面,再加 1 个细分级别
+expect_text 快速形状(离线)
+expect_no_text From image
+expect_no_text Generate 3D model
+expect_no_text Quick shapes
+expect_no_text Hugging Face - free models
+shot zh-cn-generate-image
+click "从文本"
+wait 0.2
+expect_text 文本转 3D(AI)
+expect_no_text Describe one object
+shot zh-cn-generate-text
+click "从图片"
+
+click "偏好设置##palette.preferences"
+click "界面##preferences.interface"
+click "Español##language.es"
+click "Preferencias##palette.preferences"
+wait 0.2
+expect_text Desde imagen
+expect_text Generar modelo 3D
+expect_text Formas rápidas (sin conexión)
+expect_no_text Quick shapes
+shot es-generate-image
+
+# Back to English for the next test.
+click "Preferencias##palette.preferences"
+click "Interfaz##preferences.interface"
+click "English##language.en"
diff --git a/tools/i18n/coverage.py b/tools/i18n/coverage.py
index 90d9fed5..41d2d5fd 100644
--- a/tools/i18n/coverage.py
+++ b/tools/i18n/coverage.py
@@ -9,8 +9,12 @@ which of them the table has no translation for.
tools/i18n/coverage.py --check exit 1 unless every language is at 100% (ctest i18n_coverage)
tools/i18n/coverage.py --json the strings and what each language lacks, for scripts
tools/i18n/coverage.py --raw literals ImGui shows without tr(): not translatable until wrapped in tr()
- tools/i18n/coverage.py --raw-check exit 1 if a literal shown without tr() is not in raw_allow.txt, or a line there
- no longer matches one (ctest i18n_raw_labels): new labels can't skip tr()
+ tools/i18n/coverage.py --raw-check exit 1 if a literal shown without tr() is not in raw_allow.txt (names that stay
+ English only, each also in keep_english.txt), or a line there no longer matches
+ one (ctest i18n_raw_labels): every other label goes through tr()
+A raw label is a literal (or either side of a ternary) handed to an ImGui call (RAW_IMGUI), to Combo through a
+`const char* items[] = {...}` array, or to a function of the file that shows its parameter as it is (raw_wrappers():
+a local hint(text) calling ImGui::TextWrapped("%s", text)).
The strings are found in src/app/*.cpp, the label paths tr() is used through:
- a literal passed to tr(), trPath() (each "A > B" step) or a wrapper that calls tr() on it (WRAPPERS below:
@@ -61,6 +65,14 @@ DYNAMIC = {
"Writes %s (outside the project folder and the files you picked)",
"Reads %s (outside the project folder and the files you picked)", "Saves over the project",
"Replaces the scene: your unsaved changes would be lost"],
+ "ai/ImageTo3DService.cpp hfPresets, falModels labels and kHunyuanLicenceNote (App::drawImageTo3D)": [
+ "Hunyuan3D 2.1 (Tencent) - free, no token", "TRELLIS.2 (Microsoft, MIT) - Best detail (needs token)",
+ "Hunyuan3D 2 mini Turbo (Tencent) - free, fastest", "Hunyuan3D 2 (Tencent) - free",
+ "Stable Fast 3D (Stability AI) - free, quick and simple", "TRELLIS.2 (Microsoft) - detailed, open model",
+ "Hunyuan3D 3.1 Pro (Tencent)", "Hunyuan3D 3.1 Rapid (Tencent) - fast", "Meshy 6", "Rodin 2.5 (Hyper3D)",
+ "Rodin 2.5 Fast (Hyper3D) - cheaper",
+ "Hunyuan3D models are under the Tencent Hunyuan Community License, which doesn't cover use in the EU, UK or "
+ "South Korea. There, choose TRELLIS.2 (free token) or another model."],
"ai/AiPolicy.h kPrivacyLine (PanelAi.cpp)": [
"Your art is never uploaded or used for training. AI features run only when you use them and can be turned off."],
"core/RadialMenu.cpp radialButtonLabel": ["None", "Middle mouse button", "Mouse back button", "Mouse forward button",
@@ -74,7 +86,11 @@ RAW_IMGUI = {"Button": [0], "SmallButton": [0], "Text": [0], "TextDisabled": [0]
"TextUnformatted": [0], "TextColored": [1], "SeparatorText": [0], "Selectable": [0], "MenuItem": [0],
"BeginMenu": [0], "Checkbox": [0], "CollapsingHeader": [0], "TreeNode": [0], "Combo": [0, 2],
"RadioButton": [0], "SetTooltip": [0], "BulletText": [0], "Begin": [0], "BeginTabItem": [0],
- "SliderFloat": [0, 4], "SliderInt": [0, 4], "InputText": [0], "InputTextWithHint": [1]}
+ "SliderFloat": [0, 4], "SliderInt": [0, 4], "InputText": [0], "InputTextWithHint": [1],
+ "BeginCombo": [0, 1], "ProgressBar": [2], "BeginPopupModal": [0], "LabelText": [0, 1], "InputInt": [0],
+ "InputFloat": [0], "DragFloat": [0, 4], "DragInt": [0, 4], "ColorEdit3": [0], "ColorEdit4": [0],
+ "SliderFloat2": [0, 4], "SliderFloat3": [0, 4], "DragFloat2": [0, 4], "DragFloat3": [0, 4],
+ "MenuItemEx": [1], "BeginChild": [], "TextLink": [0], "TextLinkOpenURL": [0]}
ICON = "\x00ICON\x00" # stands for an ICON_LC_* macro inside a label
TOKEN = re.compile(
@@ -177,8 +193,10 @@ def choices(arg):
"""The argument's strings: a plain literal, or each side of a ternary of literals (c ? "On" : "Off")."""
if literal(arg) is not None:
return [literal(arg)]
- if "?" in [t[1] for t in arg] and "+" not in [t[1] for t in arg]:
- return literals_in(arg)
+ if len(arg) > 1 and arg[0][0] == "id" and arg[1][1] == "(" and split_args(arg, 1)[1] == len(arg):
+ return [] # a call: tr(c ? "On" : "Off"), getenv("X")
+ if "?" in [t[1] for t in arg] and "+" not in [t[1] for t in arg]: # not a call's argument: getenv("FAL_KEY")
+ return [t[1] for j, t in enumerate(arg) if t[0] == "str" and not (j and arg[j - 1][1] in ("(", ","))]
return []
@@ -382,21 +400,68 @@ def collect():
return {s: w for s, w in found.items() if words(s)}
+def raw_wrappers(toks, defs):
+ """The file's functions and lambdas that show a parameter through ImGui as it is (a local hint(text) that calls
+ ImGui::TextWrapped("%s", text)): name -> parameter indices. A literal handed to one of them is a raw label too."""
+ found = {}
+ for name, params, start, end, _ in defs:
+ for i in range(start, end):
+ k, v, _ = toks[i]
+ if not (k == "id" and v in RAW_IMGUI and toks[i - 1][1] == "::" and toks[i - 2][1] == "ImGui"
+ and toks[i + 1][1] == "("):
+ continue
+ args, _ = split_args(toks, i + 1)
+ slots = set(RAW_IMGUI[v])
+ for a in RAW_IMGUI[v]: # "%s", text: the argument after a format of only "%s"
+ if a < len(args) and literal(args[a]) == "%s":
+ slots.add(a + 1)
+ for a in slots:
+ if a < len(args):
+ words_ = [t[1] for t in args[a] if t[1] not in (".", "c_str", "(", ")")]
+ if len(words_) == 1 and words_[0] in params:
+ found.setdefault(name, set()).add(params.index(words_[0]))
+ return found
+
+
+def arrays(toks):
+ """name -> literals of the file's `const char* name[] = {...}` arrays (Combo items)."""
+ out = {}
+ for i, (k, v, _) in enumerate(toks):
+ if k == "id" and i + 4 < len(toks) and toks[i - 1][1] == "*" \
+ and [t[1] for t in toks[i + 1:i + 5]] == ["[", "]", "=", "{"]:
+ out[v] = [literal(a) for a in split_args(toks, i + 4)[0] if literal(a) is not None]
+ return out
+
+
def raw_labels():
- """(file, line, call, text) for every literal shown through ImGui without tr()."""
+ """(file, line, call, text) for every literal shown through ImGui without tr(): a literal (or either side of a
+ ternary) handed to an ImGui call, to a Combo through an array, or to the file's own function that shows it raw."""
out = []
for path in sorted(SRC.glob("*.cpp")):
if path.name in SKIP_FILES:
continue
toks = tokens(path.read_text(encoding="utf-8"))
+ local = raw_wrappers(toks, definitions(toks))
+ arrs = arrays(toks)
for i, (k, v, line) in enumerate(toks):
- if k == "id" and v in RAW_IMGUI and i > 1 and toks[i - 1][1] == "::" and toks[i - 2][1] == "ImGui" \
- and i + 1 < len(toks) and toks[i + 1][1] == "(":
- args, _ = split_args(toks, i + 1)
- for a in RAW_IMGUI[v]:
- s = literal(args[a]) if a < len(args) else None
+ if k != "id" or i + 1 >= len(toks) or toks[i + 1][1] != "(" or toks[i - 1][1] in (".", "->"):
+ continue
+ imgui = toks[i - 1][1] == "::" and toks[i - 2][1] == "ImGui"
+ if imgui and v in RAW_IMGUI:
+ slots, call = RAW_IMGUI[v], v
+ elif not imgui and toks[i - 1][1] != "::" and v in local:
+ slots, call = sorted(local[v]), v
+ else:
+ continue
+ args, _ = split_args(toks, i + 1)
+ for a in slots:
+ if a >= len(args):
+ continue
+ ids = [t[1] for t in args[a]]
+ texts = arrs.get(ids[0], []) if imgui and v == "Combo" and len(ids) == 1 else choices(args[a])
+ for s in texts:
if s and words(s):
- out.append((path.name, line, v, s))
+ out.append((path.name, line, ("ImGui::" if imgui else "") + call, s))
return out
@@ -445,32 +510,28 @@ def translates(table, text):
def raw_key(f, call, s):
"""A raw_allow.txt line: file, ImGui call and the literal as JSON, tab-separated (no line number: edits move it)."""
- return f"{f}\tImGui::{call}\t{json.dumps(s.replace(ICON, '<icon>'), ensure_ascii=False)}"
+ return f"{f}\t{call}\t{json.dumps(s.replace(ICON, '<icon>'), ensure_ascii=False)}"
-def raw_check(write=False):
- found = {raw_key(f, call, s) for f, _, call, s in raw_labels()}
+def raw_check():
+ """Every literal ImGui shows goes through tr(), except a name in raw_allow.txt that keep_english.txt also keeps: no
+ backlog, so an untranslated label fails the test and is listed."""
+ found = {raw_key(f, call, s): s for f, _, call, s in raw_labels()}
lines = RAW_ALLOW.read_text(encoding="utf-8").splitlines() if RAW_ALLOW.exists() else []
allowed = {ln for ln in lines if ln.strip() and not ln.startswith("#")}
- if write: # keeps the comments and the intentional section, rewrites the backlog
- head = []
- for ln in lines:
- head.append(ln)
- if ln.startswith("# --- backlog"):
- break
- backlog = sorted(found - {ln for ln in head if not ln.startswith("#")})
- RAW_ALLOW.write_text("\n".join(head + backlog) + "\n", encoding="utf-8")
- print(f"raw_allow.txt: {len(backlog)} backlog lines")
- return 0
- new, stale = sorted(found - allowed), sorted(allowed - found)
+ keep = load_keep()
+ not_names = sorted(ln for ln in allowed if visible(json.loads(ln.split("\t")[2]).replace("<icon>", ICON)) not in keep)
+ new, stale = sorted(set(found) - allowed), sorted(allowed - set(found))
for ln in new:
print(f"shown without tr(): {ln}")
for ln in stale:
print(f"raw_allow.txt line no label matches any more (delete it): {ln}")
- print(f"{len(found)} labels shown without tr(), {len(new)} new, {len(stale)} stale allow-list lines")
- if new or stale:
- print("i18n_raw_labels: wrap new labels in tr() and translate them (coverage.py --missing); a name that stays "
- "English everywhere goes in raw_allow.txt's intentional section")
+ for ln in not_names:
+ print(f"raw_allow.txt line is not a name in keep_english.txt (wrap it in tr() instead): {ln}")
+ print(f"{len(found)} labels shown without tr(), {len(new)} not allowed, {len(stale)} stale allow-list lines")
+ if new or stale or not_names:
+ print("i18n_raw_labels: wrap each label in tr() and translate it in every table (coverage.py --missing); only a "
+ "name that stays English everywhere (keep_english.txt) may skip tr() through raw_allow.txt")
return 1
return 0
@@ -492,16 +553,15 @@ def main():
ap.add_argument("--json", action="store_true")
ap.add_argument("--raw", action="store_true", help="list the literals ImGui shows without tr() (not translatable yet)")
ap.add_argument("--raw-check", action="store_true", help="exit 1 on a raw literal not in raw_allow.txt (or a stale line)")
- ap.add_argument("--raw-write", action="store_true", help="rewrite raw_allow.txt's backlog to what is raw now")
args = ap.parse_args()
- if args.raw_check or args.raw_write:
- return raw_check(write=args.raw_write)
+ if args.raw_check:
+ return raw_check()
if args.raw:
raw = raw_labels()
for f, line, call, s in raw:
- print(f"{f}:{line}: ImGui::{call} {s.replace(ICON, '<icon>')!r}")
+ print(f"{f}:{line}: {call} {s.replace(ICON, '<icon>')!r}")
print(f"{len(raw)} labels shown without tr()")
return 0
strings = collect()
diff --git a/tools/i18n/keep_english.txt b/tools/i18n/keep_english.txt
index 482b4e10..bcc5aa67 100644
--- a/tools/i18n/keep_english.txt
+++ b/tools/i18n/keep_english.txt
@@ -21,3 +21,20 @@ VDM
SpaceMouse
Lit Sphere
PBR
+%.0f / %.0f ms, %.0f / %.0f px
+%.0f ms
+%.1f ms
+30 fps
+60 fps
+120 fps
+144 fps
+Bridge
+COLMAP
+Esc
+Hunyuan3D 3.1 Pro (Tencent)
+Meshy 6
+Rodin 2.5 (Hyper3D)
+Unreal Engine
+Unreal, Unity, Godot, Blender, three.js
+ffmpeg
+http://%s
diff --git a/tools/i18n/raw_allow.txt b/tools/i18n/raw_allow.txt
index ac0f7e82..8d2d7d04 100644
--- a/tools/i18n/raw_allow.txt
+++ b/tools/i18n/raw_allow.txt
@@ -1,420 +1,4 @@
-# Labels ImGui shows without tr() (coverage.py --raw-check, ctest i18n_raw_labels). One per line: file, ImGui call and
-# the literal as JSON, tab-separated. A label that isn't here fails the test: wrap it in tr() and translate it
-# (coverage.py --missing), or, if it stays English in every language, add it to the intentional section.
-# --- intentional: names that stay English everywhere ---
-App.cpp ImGui::SeparatorText "Unreal Engine"
-# --- backlog (11-06): shown in English in every language. Wrap in tr(), translate, delete the line; never add here.
-App.cpp ImGui::Begin "About SculptForge"
-App.cpp ImGui::BeginTabItem "From image"
-App.cpp ImGui::BeginTabItem "From text"
-App.cpp ImGui::Button "+ Add"
-App.cpp ImGui::Button "Cancel"
-App.cpp ImGui::Button "Clean floaters"
-App.cpp ImGui::Button "Clear##splats"
-App.cpp ImGui::Button "Export FBX for Unreal..."
-App.cpp ImGui::Button "Fit"
-App.cpp ImGui::Button "Flip"
-App.cpp ImGui::Button "GLB + blend shapes"
-App.cpp ImGui::Button "Generate 3D model"
-App.cpp ImGui::Button "Inflate"
-App.cpp ImGui::Button "Install .sfbrush..."
-App.cpp ImGui::Button "LOD chain (GLB per level)"
-App.cpp ImGui::Button "License"
-App.cpp ImGui::Button "Make relief"
-App.cpp ImGui::Button "OK"
-App.cpp ImGui::Button "Save .sfbrush..."
-App.cpp ImGui::Button "Save settings"
-App.cpp ImGui::Button "Save splats..."
-App.cpp ImGui::Button "Sculpt to splats"
-App.cpp ImGui::Button "Send to Unreal"
-App.cpp ImGui::Button "Stamp from this view"
-App.cpp ImGui::Button "Third-party notices"
-App.cpp ImGui::Button "Try a test head##splats"
-App.cpp ImGui::Button "Turn 90"
-App.cpp ImGui::Checkbox "Connected only##recipe"
-App.cpp ImGui::Checkbox "Dark is high##project"
-App.cpp ImGui::Checkbox "Dark is high##relief"
-App.cpp ImGui::Checkbox "Refine the selected brush"
-App.cpp ImGui::Checkbox "Show mesh"
-App.cpp ImGui::Checkbox "Show##splats"
-App.cpp ImGui::Checkbox "Unreal is on another computer"
-App.cpp ImGui::Checkbox "View falloff##recipe"
-App.cpp ImGui::CollapsingHeader "AI provider"
-App.cpp ImGui::Combo "Effort"
-App.cpp ImGui::Combo "Remesh"
-App.cpp ImGui::InputText "API key"
-App.cpp ImGui::InputText "Folder"
-App.cpp ImGui::InputText "HF token"
-App.cpp ImGui::InputText "Model id"
-App.cpp ImGui::InputText "Server"
-App.cpp ImGui::InputTextWithHint "e.g. bark of an old oak tree"
-App.cpp ImGui::RadioButton "Base mesh"
-App.cpp ImGui::Selectable "Other file (API format)..."
-App.cpp ImGui::Selectable "Sculpt"
-App.cpp ImGui::SeparatorText "Export"
-App.cpp ImGui::SeparatorText "Quick shapes (offline)"
-App.cpp ImGui::SetTooltip "Centre and scale to the sculpt"
-App.cpp ImGui::SetTooltip "Imports (or updates) the asset in the open Unreal Editor.\nNeeds the Python Editor Script Plugin and Project Settings > Python > Enable Remote Execution."
-App.cpp ImGui::SetTooltip "In Unreal: Project Settings > Plugins > Python > Advanced:\nMulticast Time-To-Live = 1, Multicast Bind Address = 0.0.0.0"
-App.cpp ImGui::SetTooltip "Install a brush someone shared: a brush code (sfbrush1:...) or .sfbrush text on the clipboard (Ctrl+V in the viewport)"
-App.cpp ImGui::SetTooltip "Quad Remesh (default): clean quads ready for sculpting and subdividing, with one subdivision level holding the detail. Voxel remesh: an even, watertight triangle surface. Off: the model as the service made it."
-App.cpp ImGui::SetTooltip "Turn upside down (most captures are)"
-App.cpp ImGui::SliderFloat "Depth##project"
-App.cpp ImGui::SliderFloat "Depth##relief"
-App.cpp ImGui::SliderFloat "Reduction"
-App.cpp ImGui::SliderFloat "Thickness"
-App.cpp ImGui::SliderFloat "opacity %.2f"
-App.cpp ImGui::SliderFloat "weight %.2f"
-App.cpp ImGui::SliderFloat "x%.2f / level"
-App.cpp ImGui::SliderInt "Detail##inflate"
-App.cpp ImGui::SliderInt "Detail##relief"
-App.cpp ImGui::SliderInt "LODs"
-App.cpp ImGui::SliderInt "Resolution"
-App.cpp ImGui::SmallButton "Clear chat"
-App.cpp ImGui::SmallButton "Full guide: Windows, macOS, Linux, LM Studio"
-App.cpp ImGui::SmallButton "Save settings"
-App.cpp ImGui::Text "%zu splats (SH %d)"
-App.cpp ImGui::Text "SculptForge %s"
-App.cpp ImGui::TextDisabled " Designing brush%.*s"
-App.cpp ImGui::TextDisabled "About %d quads, then 1 subdivision level"
-App.cpp ImGui::TextDisabled "Click a level to inspect it in the viewport."
-App.cpp ImGui::TextDisabled "Sculpt expressions & correctives;\nexported as glTF morph targets."
-App.cpp ImGui::TextDisabled "This stays in the Model tooltip."
-App.cpp ImGui::TextDisabled "editable"
-App.cpp ImGui::TextUnformatted "Free and open-source digital sculpting."
-App.cpp ImGui::TextWrapped "1. Install Ollama (or use your package manager, e.g. sudo pacman -S ollama):\n curl -fsSL https://ollama.com/install.sh | sh\n2. Start it if needed:\n sudo systemctl enable --now ollama\n3. Download the model:\n ollama pull qwen3:4b-instruct\n4. Pick Ollama above, then Find models."
-App.cpp ImGui::TextWrapped "1. Install Ollama from ollama.com/download and drag it to Applications.\n2. Download the model (in Terminal):\n ollama pull qwen3:4b-instruct\n3. Ollama runs in the menu bar. Pick Ollama above, then Find models."
-App.cpp ImGui::TextWrapped "1. Install Ollama from ollama.com/download, or in PowerShell:\n winget install Ollama.Ollama\n2. Download the model (in PowerShell):\n ollama pull qwen3:4b-instruct\n3. Ollama runs in the system tray. Pick Ollama above, then Find models."
-App.cpp ImGui::TextWrapped "Built with SDL 3 (zlib), Dear ImGui (MIT), GLM (MIT), stb (MIT/public domain), ufbx (MIT/public domain), xatlas (MIT), MikkTSpace (zlib), the Inter and JetBrains Mono typefaces (SIL OFL 1.1) and the MIT-licensed colours of the Forge Terminal look's schemes. Quad Remesh follows Instant Meshes (BSD-3-Clause). The phone link uses QR Code generator (MIT), libdatachannel and libjuice (MPL-2.0), usrsctp (BSD-3-Clause) and Mbed TLS (Apache-2.0). Uses libcurl (curl license) where available."
-App.cpp ImGui::TextWrapped "Connected - %d model%s installed"
-App.cpp ImGui::TextWrapped "Copyright (C) 2026 The SculptForge contributors. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3 or later. It comes with ABSOLUTELY NO WARRANTY."
-App.cpp ImGui::TextWrapped "Describe a brush the way you'd describe it to another sculptor."
-App.cpp ImGui::TextWrapped "Describe one object: \"a stylised dragon head with curled horns\", \"a cartoon fox sitting\"."
-App.cpp ImGui::TextWrapped "Offline: no outside connections. Updates come only from your studio's channel."
-App.cpp ImGui::TextWrapped "Open or drop a .ply capture (Polycam, Luma, Postshot, Scaniverse...) to sculpt against it."
-App.cpp ImGui::TextWrapped "Or drop a sketch, concept, logo, photo or height map onto the window."
-App.cpp ImGui::TextWrapped "Skeletal mesh with %zu morph targets."
-App.cpp ImGui::TextWrapped "Static mesh with %d LODs."
-App.cpp ImGui::TextWrapped "The 2.5 GB model needs about 4 GB of free memory and works without a graphics card (10-20 s per brush on a laptop CPU, a few seconds with a GPU)."
-App.cpp ImGui::TextWrapped "Try an idea below, or ask for changes to the selected brush, like \"sharper\" or \"less buildup\"."
-App.cpp ImGui::TextWrapped "Unreal, Unity, Godot, Blender, three.js"
-App.cpp ImGui::TreeNode "Relief"
-App.cpp ImGui::TreeNode "Run a model on this computer"
-App.cpp ImGui::TreeNode "Silhouette blockout"
-App.cpp ImGui::TreeNode "Stamp onto model"
-Config.cpp ImGui::Begin "Controls"
-Config.cpp ImGui::InputTextWithHint "<icon> Filter shortcuts and gestures"
-Console.cpp ImGui::Begin "Console"
-Console.cpp ImGui::InputTextWithHint "help, or a command such as remesh resolution=200"
-Console.cpp ImGui::TextColored "Type help and press Enter to list the commands."
-Gizmo.cpp ImGui::Begin "Gizmo"
-Gizmo.cpp ImGui::Button "Apply"
-Gizmo.cpp ImGui::Button "Clear"
-Gizmo.cpp ImGui::TextDisabled "Q W E R: Draw, Move, Scale, Rotate"
-Gizmo.cpp ImGui::TextWrapped "Shift snaps (15 deg, grid, 10%%). Alt+drag the gizmo: move it only. Alt+click the model: pivot there."
-Input.cpp ImGui::Begin "Quick Menu##quickmenu"
-LibraryBrowser.cpp ImGui::Begin "Library"
-LibraryBrowser.cpp ImGui::Button "<icon> Show library folder"
-LibraryBrowser.cpp ImGui::MenuItem "<icon> Generate 3D..."
-LibraryBrowser.cpp ImGui::SliderInt "Rows %d"
-Palettes.cpp ImGui::BeginMenu "New from Starter Mesh"
-PanelBake.cpp ImGui::Checkbox "Auto distance"
-PanelBake.cpp ImGui::Checkbox "EXR displacement"
-PanelBake.cpp ImGui::Checkbox "Preview Normal Map"
-PanelBake.cpp ImGui::Selectable "All visible Parts"
-PanelBake.cpp ImGui::Selectable "Own micro level##micro"
-PanelBake.cpp ImGui::Selectable "Own top subdivision level##level"
-PanelBake.cpp ImGui::TextDisabled "%dx%d in %.1f s from %zu tris"
-PanelBake.cpp ImGui::TextDisabled "Displacement: mid-grey = 0, white = +%.4g"
-PanelBake.cpp ImGui::TextDisabled "No UVs: Tool > Texture Map > Auto UV"
-PanelBake.cpp ImGui::TextDisabled "Onto %s (%zu tris, UVs)"
-PanelBake.cpp ImGui::TextUnformatted "Source"
-PanelBake.cpp ImGui::TextWrapped "%.1f%% of texels found no surface: raise Front / Rear"
-PanelBlender.cpp ImGui::BeginMenu "Blender"
-PanelBlender.cpp ImGui::MenuItem "Receive automatically##blender"
-PanelBlender.cpp ImGui::SetTooltip "Exchange folder: %s"
-PanelBlender.cpp ImGui::TextDisabled "Needs the SculptForge add-on in Blender\n(Help > User Guide > Working with Blender)."
-PanelBridge.cpp ImGui::BeginMenu "Bridge"
-PanelBridge.cpp ImGui::InputTextWithHint "Custom bridge folder (optional)"
-PanelBridge.cpp ImGui::MenuItem "Export Bridge file..."
-PanelBridge.cpp ImGui::MenuItem "Import Bridge file..."
-PanelBridge.cpp ImGui::MenuItem "Receive automatically"
-PanelBridge.cpp ImGui::MenuItem "Receive"
-PanelBridge.cpp ImGui::MenuItem "Send"
-PanelBridge.cpp ImGui::TextDisabled "Bridge folder: %s"
-PanelBridge.cpp ImGui::TextDisabled "No default bridge folder on this system;\nBridge files still import and export."
-PanelBrushGallery.cpp ImGui::Begin "Community brushes"
-PanelBrushGallery.cpp ImGui::Button "Refresh"
-PanelBrushGallery.cpp ImGui::Button "Share yours"
-PanelBrushGallery.cpp ImGui::Button "Try again"
-PanelBrushGallery.cpp ImGui::Button "Use"
-PanelBrushGallery.cpp ImGui::InputTextWithHint "Community gallery (or a URL / folder for a studio mirror)"
-PanelBrushGallery.cpp ImGui::InputTextWithHint "Search brushes (scales, skin, stone...)"
-PanelBrushGallery.cpp ImGui::Selectable "All tags"
-PanelBrushGallery.cpp ImGui::SetTooltip "Clear the search"
-PanelBrushGallery.cpp ImGui::SetTooltip "Save your brush from Brush Lab, then open a pull request on the gallery.\nOpens %s"
-PanelBrushGallery.cpp ImGui::TextDisabled "Gallery"
-PanelBrushGallery.cpp ImGui::TextWrapped "Can't reach the brush gallery: %s"
-PanelBrushGallery.cpp ImGui::TextWrapped "Offline - showing the gallery from your last visit (%s)."
-PanelBrushGallery.cpp ImGui::TextWrapped "Refresh failed: %s"
-PanelBrushLibrary.cpp ImGui::Button "Cancel"
-PanelBrushLibrary.cpp ImGui::Button "Delete"
-PanelBrushLibrary.cpp ImGui::Button "Rename"
-PanelBrushLibrary.cpp ImGui::MenuItem "Copy brush code"
-PanelBrushLibrary.cpp ImGui::MenuItem "Delete...##brush"
-PanelBrushLibrary.cpp ImGui::MenuItem "Rename...##brush"
-PanelBrushLibrary.cpp ImGui::MenuItem "Reveal in folder"
-PanelBrushLibrary.cpp ImGui::MenuItem "Save .sfbrush..."
-PanelBrushLibrary.cpp ImGui::SetTooltip "One line of text to share in chat, email or a forum"
-PanelBrushLibrary.cpp ImGui::SetTooltip "Only brushes in your own library can be deleted"
-PanelBrushLibrary.cpp ImGui::Text "Delete '%s' from your brush library?"
-PanelBrushLibrary.cpp ImGui::TextDisabled "Its .sfbrush file is removed. Copy its brush code first if you might want it back."
-PanelBrushLibrary.cpp ImGui::TextDisabled "Right-click to share, rename or delete"
-PanelBrushLibrary.cpp ImGui::TextDisabled "The %s brush of the same name is used again."
-PanelBrushLibrary.cpp ImGui::TextDisabled "The %s brush stays as it is; the renamed copy goes into your library."
-PanelFace.cpp ImGui::Checkbox "Loop##facetake"
-PanelFace.cpp ImGui::Checkbox "Parts too##face"
-PanelFace.cpp ImGui::Combo "Symmetry##face"
-PanelFace.cpp ImGui::SmallButton "Clear##facelm"
-PanelFace.cpp ImGui::TextDisabled "Baked: %s (%.1f s, exports with GLB / USD)"
-PanelFill.cpp ImGui::Button "<icon> Fill Layer##fill"
-PanelForgeSpheres.cpp ImGui::MenuItem "Delete Sphere"
-PanelForgeSpheres.cpp ImGui::MenuItem "Insert Between"
-PanelForgeSpheres.cpp ImGui::MenuItem "Set as Root"
-PanelForgeSpheres.cpp ImGui::TextDisabled "Block out a base mesh from connected spheres, then Make Mesh to sculpt it."
-PanelIntegrations.cpp ImGui::Checkbox "Show SculptForge on Discord##prefs.discord"
-PanelIntegrations.cpp ImGui::Checkbox "Show the file name##prefs.discord"
-PanelIntegrations.cpp ImGui::Checkbox "Show the monthly challenge##prefs.discord"
-PanelIntegrations.cpp ImGui::InputTextWithHint "Theme (64 characters at most)"
-PanelIntegrations.cpp ImGui::TextWrapped "Nothing else is sent: no folders, no user name, no model details. Needs the Discord app running."
-PanelKelvinlet.cpp ImGui::Begin "Capture from view##capture"
-PanelKelvinlet.cpp ImGui::Button "Capture again##capture"
-PanelKelvinlet.cpp ImGui::Button "Detail Clone##capture"
-PanelKelvinlet.cpp ImGui::Button "Save to Library##capture"
-PanelKelvinlet.cpp ImGui::Button "Use as Alpha##capture"
-PanelKelvinlet.cpp ImGui::Button "Use as VDM##capture"
-PanelKelvinlet.cpp ImGui::Checkbox "Clone follows stroke"
-PanelKelvinlet.cpp ImGui::Checkbox "Fit plane"
-PanelKelvinlet.cpp ImGui::Checkbox "Invert##capture"
-PanelKelvinlet.cpp ImGui::InputTextWithHint "Name"
-PanelKelvinlet.cpp ImGui::TextDisabled "%zu points, height %.3g, reach %.2f radii"
-PanelMaya.cpp ImGui::BeginMenu "Maya"
-PanelMaya.cpp ImGui::MenuItem "Get automatically##maya"
-PanelMaya.cpp ImGui::MenuItem "Turn the Maya bridge off##maya"
-PanelMaya.cpp ImGui::TextDisabled "Folder: %s"
-PanelMaya.cpp ImGui::TextDisabled "Needs the SculptForge shelf script in Maya\n(Help > User Guide > Working with Maya)."
-PanelMaya.cpp ImGui::TextDisabled "Off: choose an exchange folder first."
-PanelPacks.cpp ImGui::InputText "Name##macroname"
-PanelPacks.cpp ImGui::TextDisabled "%d commands"
-PanelPacks.cpp ImGui::TextDisabled "%d items"
-PanelPacks.cpp ImGui::TextDisabled "%s - %s unpacked"
-PanelPacks.cpp ImGui::TextDisabled "by %s - %s - %s"
-PanelPaintLayers.cpp ImGui::Button "<icon> New"
-PanelPbr.cpp ImGui::Selectable "Normal view"
-PanelPbr.cpp ImGui::SeparatorText "Material Channels"
-PanelPbr.cpp ImGui::SeparatorText "Material"
-PanelPbr.cpp ImGui::SetTooltip "%s: %s, %s, %d%%\nClick: on / off. Right-click: blend and opacity."
-PanelPbr.cpp ImGui::SetTooltip "%s: roughness %.2f, metallic %.0f"
-PanelPbr.cpp ImGui::SliderFloat "Opacity %.0f%%"
-PanelPbr.cpp ImGui::TextDisabled "%s on '%s'"
-PanelPerformanceProfile.cpp ImGui::Button "Back to automatic"
-PanelPerformanceProfile.cpp ImGui::Button "Re-calibrate"
-PanelPerformanceProfile.cpp ImGui::Button "Skip"
-PanelPerformanceProfile.cpp ImGui::Checkbox "Frame Governor"
-PanelPerformanceProfile.cpp ImGui::TextDisabled "Esc"
-PanelPerformanceProfile.cpp ImGui::TextUnformatted "Getting to know this computer"
-PanelPerformanceProfile.cpp ImGui::TextUnformatted "Hardware profile"
-PanelPerformanceProfile.cpp ImGui::TextWrapped "Detected %s, %s -> %s"
-PanelPerformanceProfile.cpp ImGui::TreeNode "Manual overrides"
-PanelPhone.cpp ImGui::Begin "Capture from phone"
-PanelPhone.cpp ImGui::BulletText "Android Chrome says \"This site can't be reached\"\n(ERR_TOO_MANY_RETRIES)? Recent Chrome versions can\nblock every home-network address, even your router.\nUse Firefox on the phone instead and allow it to\nreach local devices when it asks."
-PanelPhone.cpp ImGui::BulletText "Linux: allow port %d (TCP and UDP) through the\nfirewall, e.g. sudo ufw allow from\n<your network>/24 to any port %d"
-PanelPhone.cpp ImGui::BulletText "Same Wi-Fi: not a guest network, not mobile data."
-PanelPhone.cpp ImGui::BulletText "Several networks? Pick the Wi-Fi one under Network."
-PanelPhone.cpp ImGui::BulletText "Turn off VPNs on the phone and the computer."
-PanelPhone.cpp ImGui::BulletText "Windows: allow SculptForge on private networks\nwhen the firewall asks."
-PanelPhone.cpp ImGui::BulletText "macOS: allow incoming connections for SculptForge\n(System Settings > Network > Firewall)."
-PanelPhone.cpp ImGui::Button "Try again##phone"
-PanelPhone.cpp ImGui::Checkbox "Generate from a photo at once##phone"
-PanelPhone.cpp ImGui::Checkbox "Mirror left and right##phone"
-PanelPhone.cpp ImGui::Checkbox "Update after each stroke##phone"
-PanelPhone.cpp ImGui::SeparatorText "Face"
-PanelPhone.cpp ImGui::SeparatorText "Received"
-PanelPhone.cpp ImGui::SeparatorText "View in AR"
-PanelPhone.cpp ImGui::SetTooltip "Show the folder"
-PanelPhone.cpp ImGui::Text "Captures/%s"
-PanelPhone.cpp ImGui::Text "On the phone: %s"
-PanelPhone.cpp ImGui::Text "Receiving %s (%s)"
-PanelPhone.cpp ImGui::Text "and type the code %.3s %.3s"
-PanelPhone.cpp ImGui::Text "http://%s"
-PanelPhone.cpp ImGui::TextColored "<icon> %d frames, %.1f s"
-PanelPhone.cpp ImGui::TextColored "<icon> %s connected"
-PanelPhone.cpp ImGui::TextColored "<icon> %s: not seen for %.0f s"
-PanelPhone.cpp ImGui::TextColored "Connected (%s), no face for %.0f s"
-PanelPhone.cpp ImGui::TextColored "Live over %s, %.0f fps"
-PanelPhone.cpp ImGui::TextColored "Preparing the model for the phone..."
-PanelPhone.cpp ImGui::TextColored "The phone link couldn't start."
-PanelPhone.cpp ImGui::TextColored "This code expires in %.0f s"
-PanelPhone.cpp ImGui::TextColored "This computer isn't on a local network."
-PanelPhone.cpp ImGui::TextColored "face_weights isn't in this build: the model doesn't move yet."
-PanelPhone.cpp ImGui::TextDisabled "<icon> Waiting for your phone..."
-PanelPhone.cpp ImGui::TextDisabled "No camera? Open this in the phone's browser:"
-PanelPhone.cpp ImGui::TextDisabled "Saved in %s/Captures. Only devices on your network can connect, and only while this window is open."
-PanelPhone.cpp ImGui::TextUnformatted "Scan with your phone's camera"
-PanelPhone.cpp ImGui::TreeNode "The phone can't open the page?"
-PanelSculptable.cpp ImGui::Button "Back##sculptable"
-PanelSculptable.cpp ImGui::Button "Cancel##sculptable"
-PanelSculptable.cpp ImGui::Button "Find again##sculptable"
-PanelSculptable.cpp ImGui::Checkbox "All pieces"
-PanelSculptable.cpp ImGui::Checkbox "Face loops"
-PanelSculptable.cpp ImGui::Checkbox "Fill holes"
-PanelSculptable.cpp ImGui::Checkbox "Keep scan"
-PanelSculptable.cpp ImGui::Checkbox "Review##sculptable"
-PanelSculptable.cpp ImGui::RadioButton "Texture##sculptcolor"
-PanelSculptable.cpp ImGui::RadioButton "Vertex Paint##sculptcolor"
-PanelSculptable.cpp ImGui::TextWrapped "Click %s."
-PanelSculptable.cpp ImGui::TextWrapped "Drag the dots to move the landmarks (the other side follows). The lines are the loops Quad Remesh will follow."
-PanelSculptable.cpp ImGui::TextWrapped "No face found: Place by hand, or Finish without face loops."
-PanelSculptable.cpp ImGui::TreeNode "More##sculptable"
-PanelSplatTrain.cpp ImGui::Button "Not now"
-PanelSplatTrain.cpp ImGui::Button "Project page"
-PanelSplatTrain.cpp ImGui::Button "Stop download"
-PanelSplatTrain.cpp ImGui::SeparatorText "Train from capture"
-PanelSplatTrain.cpp ImGui::Text "Training splat - %s"
-PanelSplatTrain.cpp ImGui::TextDisabled "%s elapsed%s"
-PanelSplatTrain.cpp ImGui::TextDisabled "%s elapsed, about %s left"
-PanelSplatTrain.cpp ImGui::TextDisabled "Training - progress is over the viewport"
-PanelSplatTrain.cpp ImGui::TextWrapped "Brush is a free, open-source Gaussian splat trainer (Apache-2.0) that runs on your graphics card - NVIDIA, AMD, Intel or Apple, no CUDA needed. SculptForge runs it as a separate program."
-PanelSplatTrain.cpp ImGui::TextWrapped "COLMAP (BSD licence) works out where each photo was taken, which training needs. SculptForge runs it as a separate program."
-PanelSplatTrain.cpp ImGui::TextWrapped "Download %s %s (%s) from %s into %s. Its SHA-256 checksum is checked before it is used."
-PanelSplatTrain.cpp ImGui::TextWrapped "There is no ready-made %s for this computer. %s"
-PanelSplatTrain.cpp ImGui::TextWrapped "Trainer: Brush is not installed yet (it is offered when you start)."
-PanelSplatTrain.cpp ImGui::TreeNode "Tools##splattrain"
-PanelSupport.cpp ImGui::Begin "Big meshes are faster now##bigmesh"
-PanelSupport.cpp ImGui::Begin "SculptForge has a new look##newlook"
-PanelSupport.cpp ImGui::Begin "Welcome to SculptForge"
-PanelSupport.cpp ImGui::Button "<icon> Sculpted before? Take the quick tour##welcome.tour"
-PanelSupport.cpp ImGui::Button "<icon> Start from a head##welcome"
-PanelSupport.cpp ImGui::Button "<icon> Start the 10-minute lesson##welcome.lesson"
-PanelSupport.cpp ImGui::Button "Close##welcome"
-PanelSupport.cpp ImGui::Button "Got it##bigmesh"
-PanelSupport.cpp ImGui::Button "Join the community on Discord##welcome"
-PanelSupport.cpp ImGui::Button "Keep my layout##newlook"
-PanelSupport.cpp ImGui::Button "More starter meshes##welcome"
-PanelSupport.cpp ImGui::Button "Open the User Guide##welcome"
-PanelSupport.cpp ImGui::Button "Performance settings##bigmesh"
-PanelSupport.cpp ImGui::Button "Support SculptForge##about"
-PanelSupport.cpp ImGui::Button "Support SculptForge##welcome"
-PanelSupport.cpp ImGui::Button "Try it##newlook"
-PanelSupport.cpp ImGui::SeparatorText "Founding Members"
-PanelSupport.cpp ImGui::SeparatorText "Supporters"
-PanelSupport.cpp ImGui::SetTooltip "A neutral human head with clean quads and eye and mouth loops, ready for a portrait."
-PanelSupport.cpp ImGui::SetTooltip "Bust, full body, hand, foot, ear, eye, stylised and creature heads, torso and bevelled primitives: Library > Tool > Starter meshes."
-PanelSupport.cpp ImGui::SetTooltip "Questions, tips and work in progress: opens the invite in your browser."
-PanelSupport.cpp ImGui::SetTooltip "Ten short slides: remeshing, dynamic topology, retopology, levels, masking, cut, brushes and baking, each with a Show me button."
-PanelSupport.cpp ImGui::SetTooltip "Your first sculpt: a cute owl head from this sphere, step by step, in about ten minutes."
-PanelSupport.cpp ImGui::TextDisabled "Be the first: sculptforge.app/support.html"
-PanelSupport.cpp ImGui::TextDisabled "Either way: Preferences > Interface > Look changes it later."
-PanelSupport.cpp ImGui::TextUnformatted "AI features:"
-PanelSupport.cpp ImGui::TextUnformatted "Coming from:"
-PanelSupport.cpp ImGui::TextUnformatted "Pick a look:"
-PanelSupport.cpp ImGui::TextWrapped "Background Preview (experimental): a big brush shows under the pen while it's still being worked out."
-PanelSupport.cpp ImGui::TextWrapped "Hold Ctrl over any control to see what it does. The User Guide (Shift+F1) explains every tool, and the quick tour shows what is where."
-PanelSupport.cpp ImGui::TextWrapped "Neutral grey panels with one orange accent, and the SculptForge layout: menus by task, a status bar and a one-row tool shelf. Your layout stays as it is unless you try it."
-PanelSupport.cpp ImGui::TextWrapped "On a dense scan with micro levels, big brushes now keep up with the pen and the view turns smoothly right after a stroke."
-PanelSupport.cpp ImGui::TextWrapped "SculptForge is free. A membership adds betas and early builds, a vote on what we build next, Member Requests (ask for a brush or an alpha) and your name in the credits. %s"
-PanelSupport.cpp ImGui::TextWrapped "Thank you to everyone who supports SculptForge:"
-PanelSupport.cpp ImGui::TextWrapped "The first %d members, with our thanks for good:"
-PanelSupport.cpp ImGui::TextWrapped "Two settings in Preferences > Performance help most on big meshes:"
-PanelSupport.cpp ImGui::TextWrapped "View resolution 75%%: draws about half the pixels, for integrated graphics and big screens."
-PanelSupportCard.cpp ImGui::Button "Become a member##member_card.become"
-PanelSupportCard.cpp ImGui::Button "I'm already a member##member_card.already"
-PanelSupportCard.cpp ImGui::Button "I'm already a member##prefs.member_verify"
-PanelSupportCard.cpp ImGui::Button "Not now##member_card.not_now"
-PanelSupportCard.cpp ImGui::Button "Show the memberships"
-PanelSupportCard.cpp ImGui::SetTooltip "Nothing about memberships for a week."
-PanelSupportCard.cpp ImGui::SetTooltip "Sign in with GitHub (the member builds' sign-in): no more cards."
-PanelSupportCard.cpp ImGui::TextWrapped "The first %d members are Founding Members: a badge, their name in the credits and their price locked for good."
-PanelTexture.cpp ImGui::Checkbox "Show texture"
-PanelTexture.cpp ImGui::TextDisabled "%dx%d texture, %d layer%s"
-PanelTexture.cpp ImGui::TextDisabled "No UVs: Auto UV makes them"
-PanelTexture.cpp ImGui::TextDisabled "Paint into"
-PanelTexture.cpp ImGui::TextDisabled "UVs, no texture yet"
-PanelTimeline.cpp ImGui::InputText "File"
-PanelTimeline.cpp ImGui::SetTooltip "Branch from step %zu: %zu step%s, ending with \"%s\"\nClick to make it the active branch"
-PanelTimeline.cpp ImGui::SetTooltip "Step %d: %s (%s)\n%u %s, %s%s\nClick or drag to show the model here; right-click to re-tune"
-PanelTimeline.cpp ImGui::TextDisabled "%s %zu branch%s"
-PanelUvEditor.cpp ImGui::Begin "UV Editor"
-PanelVdm.cpp ImGui::Checkbox "Flip X##vdm"
-PanelVdm.cpp ImGui::Checkbox "Flip Y##vdm"
-PanelVdm.cpp ImGui::Checkbox "Flip Z##vdm"
-PanelVdm.cpp ImGui::Checkbox "Swap Y/Z##vdm"
-PanelVdm.cpp ImGui::InputTextWithHint "Name of the new VDM"
-PanelVdm.cpp ImGui::SeparatorText "Create"
-PanelVdm.cpp ImGui::SeparatorText "Load"
-PanelVdm.cpp ImGui::SliderFloat "Scale %.2f"
-PanelVdm.cpp ImGui::SliderInt "Map Size %d px"
-PanelVdm.cpp ImGui::SliderInt "Plane Res %d"
-Pickers.cpp ImGui::BeginMenu "Move to folder##litsphere"
-Pickers.cpp ImGui::Button "<icon> Load image..."
-Pickers.cpp ImGui::Checkbox "Invert loaded image"
-Pickers.cpp ImGui::InputTextWithHint "<icon> Filter alphas"
-Pickers.cpp ImGui::MenuItem "Add to bottom shelf"
-Pickers.cpp ImGui::MenuItem "Copy brush code"
-Pickers.cpp ImGui::MenuItem "Delete##vdm"
-Pickers.cpp ImGui::MenuItem "Delete...##brush"
-Pickers.cpp ImGui::MenuItem "Lit Spheres (no folder)##litspheremove"
-Pickers.cpp ImGui::MenuItem "Remove##litsphere"
-Pickers.cpp ImGui::MenuItem "Rename...##brush"
-Pickers.cpp ImGui::MenuItem "Reveal in folder"
-Pickers.cpp ImGui::MenuItem "Save as .sfbrush..."
-Pickers.cpp ImGui::Selectable "New folder...##litsphere"
-Pickers.cpp ImGui::Selectable "Rename...##litsphere"
-Pickers.cpp ImGui::SetTooltip "One line of text to share in chat, email or a forum"
-Pickers.cpp ImGui::SliderFloat "Scatter %.2f"
-Pickers.cpp ImGui::TextDisabled "No alpha matches \"%s\""
-Pickers.cpp ImGui::TextDisabled "No brush matches \"%s\""
-Pickers.cpp ImGui::TextDisabled "Type a letter to narrow the brushes, then press its orange key"
-ProofMode.cpp ImGui::Begin "Benchmark results"
-ProofMode.cpp ImGui::Button "Cancel"
-ProofMode.cpp ImGui::Button "Close"
-ProofMode.cpp ImGui::Button "How to share results"
-ProofMode.cpp ImGui::Button "Open folder"
-ProofMode.cpp ImGui::Button "Start"
-ProofMode.cpp ImGui::Checkbox "Keep vertical sync on (frame rate capped at the display's)"
-ProofMode.cpp ImGui::Checkbox "Record a video of the run (needs ffmpeg)"
-ProofMode.cpp ImGui::Text "%.0f / %.0f ms, %.0f / %.0f px"
-ProofMode.cpp ImGui::Text "%.0f ms"
-ProofMode.cpp ImGui::Text "%.1f ms"
-ProofMode.cpp ImGui::TextColored "Not enough free memory for %s: it will be skipped. Close other apps first."
-ProofMode.cpp ImGui::TextColored "The current scene is replaced. Save your work first."
-ProofMode.cpp ImGui::TextDisabled "%s of memory free now (%s)"
-ProofMode.cpp ImGui::TextDisabled "Clay at 25, 60 and 120 px, Move, Smooth, a 240 px brush, then an orbit: the scene the website's table uses (same as sculptforge --benchmark %s)"
-ProofMode.cpp ImGui::TextDisabled "Press Esc to stop the run."
-ProofMode.cpp ImGui::TextDisabled "Result: %s"
-ProofMode.cpp ImGui::TextDisabled "Video: %s"
-ProofMode.cpp ImGui::TextUnformatted "Scene"
-ProofMode.cpp ImGui::TextWrapped "A live display shows the frame rate, frame times (median, 95th, 99th percentile), how far the stroke trails the pointer, and memory. The result is saved as JSON beside a video of the run:"
-ProofMode.cpp ImGui::TextWrapped "Proof mode measures how responsive sculpting is on this computer. For each mesh size it builds a sphere with subdivision levels, then plays a scripted pen stroke through the same code your pen goes through (240 samples a second), with a normal and a large brush, and turns the view."
-QuickTour.cpp ImGui::Begin "New to SculptForge? A quick tour##quicktour"
-QuickTour.cpp ImGui::Button "<icon> See memberships##quicktour"
-QuickTour.cpp ImGui::Button "<icon> Show me##quicktour"
-QuickTour.cpp ImGui::Button "Back##quicktour"
-QuickTour.cpp ImGui::Button "Maybe later##quicktour"
-QuickTour.cpp ImGui::SetTooltip "Opens it in SculptForge; the tour waits at the bottom."
-QuickTour.cpp ImGui::SetTooltip "Opens sculptforge.app/support.html in your browser."
-QuickTour.cpp ImGui::SmallButton "Back to the tour##quicktour"
-QuickTour.cpp ImGui::SmallButton "Close##quicktour.aside"
-QuickTour.cpp ImGui::SmallButton "Next##quicktour.aside"
-QuickTour.cpp ImGui::SmallButton "No thanks##quicktour.offer"
-QuickTour.cpp ImGui::SmallButton "Take the tour##quicktour.offer"
-QuickTour.cpp ImGui::Text "Quick tour %d / %d: %s"
-QuickTour.cpp ImGui::TextUnformatted "New to SculptForge? A two-minute tour shows where everything is."
-RadialMenu.cpp ImGui::InputTextWithHint "<icon> Search actions"
-RadialMenu.cpp ImGui::InputTextWithHint "Name"
-Shell.cpp ImGui::TextUnformatted "SculptForge"
-Ui.cpp ImGui::TextColored "No parameters."
-Ui.cpp ImGui::TextUnformatted "Hold Alt for the scripting parameters."
-UserGuide.cpp ImGui::Begin "User Guide"
-UserGuide.cpp ImGui::InputTextWithHint "<icon> Search the guide (Ctrl+F)"
-UserGuide.cpp ImGui::TextColored "%zu result%s%s"
+# Labels ImGui shows without tr() on purpose (coverage.py --raw-check, ctest i18n_raw_labels). One per line: file, call
+# and the literal as JSON, tab-separated. Only names that stay English in every language, each also in
+# keep_english.txt (products, file formats, units); anything else fails the test: wrap it in tr() and translate it in
+# every table (coverage.py --missing). There is no backlog: an untranslated label in a translated language is a bug.