Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

UI: the Interference dialog and the continuity legend's Gap are translatable (#2443)

rlartotdd23be12d554
diff --git a/assets/locales/cs.json b/assets/locales/cs.json
index 63d89a773a..a27ed4e6e1 100644
--- a/assets/locales/cs.json
+++ b/assets/locales/cs.json
@@ -113,7 +113,6 @@
"Follow the camera (Look At sketches)": "Sledovat kameru (náčrty natočené k pohledu)",
"Font": "Písmo",
"Full Length": "Celá délka",
- "Gap": "Mezera",
"Grid": "Mřížka",
"Height": "Výška",
"Hidden edges": "Skryté hrany",
@@ -1031,6 +1030,7 @@
"ui.construct": "Konstrukce",
"ui.construction": "Konstrukční",
"ui.context_menu": "Místní nabídka",
+ "ui.continuity_gap": "Mezera",
"ui.copy": "Kopírovat",
"ui.corner": "Roh",
"ui.corners": "Rohy",
@@ -1347,6 +1347,7 @@
"ui.send": "Odeslat",
"ui.send_to_slicer": "Odeslat do sliceru",
"ui.sent_to_slicer": "Odesláno do {slicer}",
+ "ui.sheet_gap": "Mezera",
"ui.shell": "Skořepina",
"ui.show": "Zobrazit",
"ui.showAll": "Zobrazit vše",
diff --git a/assets/locales/de.json b/assets/locales/de.json
index 9a9288884e..77a6bbcb19 100644
--- a/assets/locales/de.json
+++ b/assets/locales/de.json
@@ -43,7 +43,6 @@
"Faces": "Flächen",
"Find in Browser": "Im Browser suchen",
"Flat": "Flach",
- "Gap": "Spalt",
"Hidden edges": "Verdeckte Kanten",
"Holes": "Löcher",
"Holes (edges on them)": "Löcher (ihre Kanten)",
@@ -448,7 +447,12 @@
"coupling.rack": "Zahnstange",
"coupling.radius_1": "Radius 1",
"coupling.radius_2": "Radius 2",
+ "dialog.bodies_count": "{count} Körper",
+ "dialog.clearance_invalid": "der Abstand muss eine Länge von 0 oder mehr sein",
+ "dialog.compute": "Berechnen",
+ "dialog.compute_again": "Erneut berechnen",
"dialog.computing": "Wird berechnet… {seconds} s",
+ "dialog.could_not_be_checked": "nicht prüfbar",
"dialog.custom_axis": "↖ Eigene Achse",
"dialog.edit_title": "{title} bearbeiten",
"dialog.select": "↖ Auswählen",
@@ -769,6 +773,7 @@
"ui.base_point": "Basispunkt",
"ui.blocked": "Verdeckt",
"ui.bodies": "Körper",
+ "ui.bodies_all_if_none": "Körper (alle, wenn keine)",
"ui.box": "Block",
"ui.break": "Unterbrechen",
"ui.calibrate": "Kalibrieren",
@@ -819,6 +824,7 @@
"ui.continuity_g0": "G0 Knick",
"ui.continuity_g1": "G1 Tangente",
"ui.continuity_g2": "G2 Krümmung",
+ "ui.continuity_gap": "Lücke",
"ui.copy": "Kopieren",
"ui.corner": "Ecke",
"ui.corners": "Ecken",
@@ -928,6 +934,7 @@
"ui.heading_home": "START",
"ui.heading_insert": "EINFÜGEN",
"ui.heading_inspect": "PRÜFEN",
+ "ui.heading_interference": "EINGRIFF",
"ui.heading_loft": "LOFT",
"ui.heading_measure": "Messen",
"ui.heading_mesh": "MESH",
@@ -1121,6 +1128,7 @@
"ui.send": "Senden",
"ui.send_to_slicer": "An Slicer senden",
"ui.sent_to_slicer": "An {slicer} gesendet",
+ "ui.sheet_gap": "Spalt",
"ui.shell": "Hülle",
"ui.show": "Einblenden",
"ui.showAll": "Alle einblenden",
diff --git a/assets/locales/en.json b/assets/locales/en.json
index f22bb40873..4394f3d63f 100644
--- a/assets/locales/en.json
+++ b/assets/locales/en.json
@@ -122,7 +122,6 @@
"Follow the camera (Look At sketches)": "Follow the camera (Look At sketches)",
"Font": "Font",
"Full Length": "Full Length",
- "Gap": "Gap",
"Grid": "Grid",
"Height": "Height",
"Hidden edges": "Hidden edges",
@@ -656,7 +655,12 @@
"coupling.rack": "Rack",
"coupling.radius_1": "Radius 1",
"coupling.radius_2": "Radius 2",
+ "dialog.bodies_count": "{count} bodies",
+ "dialog.clearance_invalid": "the clearance must be a length of 0 or more",
+ "dialog.compute": "Compute",
+ "dialog.compute_again": "Compute again",
"dialog.computing": "Computing… {seconds} s",
+ "dialog.could_not_be_checked": "could not be checked",
"dialog.custom_axis": "↖ Custom Axis",
"dialog.edit_title": "EDIT {title}",
"dialog.select": "↖ Select",
@@ -1049,6 +1053,7 @@
"ui.base_point": "Base point",
"ui.blocked": "Blocked",
"ui.bodies": "Bodies",
+ "ui.bodies_all_if_none": "Bodies (all if none)",
"ui.box": "Box",
"ui.break": "Break",
"ui.calibrate": "Calibrate",
@@ -1103,6 +1108,7 @@
"ui.continuity_g0": "G0 crease",
"ui.continuity_g1": "G1 tangent",
"ui.continuity_g2": "G2 curvature",
+ "ui.continuity_gap": "Gap",
"ui.copy": "Copy",
"ui.corner": "Corner",
"ui.corners": "Corners",
@@ -1218,6 +1224,7 @@
"ui.heading_home": "HOME",
"ui.heading_insert": "INSERT",
"ui.heading_inspect": "INSPECT",
+ "ui.heading_interference": "INTERFERENCE",
"ui.heading_loft": "LOFT",
"ui.heading_make": "MAKE",
"ui.heading_measure": "MEASURE",
@@ -1427,6 +1434,7 @@
"ui.send": "Send",
"ui.send_to_slicer": "Send to slicer",
"ui.sent_to_slicer": "Sent to {slicer}",
+ "ui.sheet_gap": "Gap",
"ui.shell": "Shell",
"ui.show": "Show",
"ui.showAll": "Show All",
diff --git a/assets/locales/es.json b/assets/locales/es.json
index 3568c6d895..0b18f3c7a5 100644
--- a/assets/locales/es.json
+++ b/assets/locales/es.json
@@ -120,7 +120,6 @@
"Follow the camera (Look At sketches)": "Seguir la cámara (orientar hacia los bocetos)",
"Font": "Fuente",
"Full Length": "Longitud total",
- "Gap": "Separación",
"Grid": "Cuadrícula",
"Height": "Altura",
"Hidden edges": "Aristas ocultas",
@@ -1062,6 +1061,7 @@
"ui.continuity_g0": "G0 arista",
"ui.continuity_g1": "G1 tangencia",
"ui.continuity_g2": "G2 curvatura",
+ "ui.continuity_gap": "Separación",
"ui.copy": "Copiar",
"ui.corner": "Esquina",
"ui.corners": "Esquinas",
@@ -1383,6 +1383,7 @@
"ui.send": "Enviar",
"ui.send_to_slicer": "Enviar al laminador",
"ui.sent_to_slicer": "Enviado a {slicer}",
+ "ui.sheet_gap": "Separación",
"ui.shell": "Vaciado",
"ui.show": "Mostrar",
"ui.showAll": "Mostrar todo",
diff --git a/assets/locales/fr.json b/assets/locales/fr.json
index 698eb53287..2bbbed45e0 100644
--- a/assets/locales/fr.json
+++ b/assets/locales/fr.json
@@ -120,7 +120,6 @@
"Follow the camera (Look At sketches)": "Suivre la caméra (vue normale aux esquisses)",
"Font": "Police",
"Full Length": "Longueur totale",
- "Gap": "Jeu",
"Grid": "Grille",
"Height": "Hauteur",
"Hidden edges": "Arêtes cachées",
@@ -652,7 +651,12 @@
"coupling.rack": "Crémaillère",
"coupling.radius_1": "Rayon 1",
"coupling.radius_2": "Rayon 2",
+ "dialog.bodies_count": "{count} corps",
+ "dialog.clearance_invalid": "le jeu doit être une longueur positive ou nulle",
+ "dialog.compute": "Calculer",
+ "dialog.compute_again": "Recalculer",
"dialog.computing": "Calcul… {seconds} s",
+ "dialog.could_not_be_checked": "non vérifiable",
"dialog.custom_axis": "↖ Axe personnalisé",
"dialog.edit_title": "MODIFIER {title}",
"dialog.select": "↖ Sélectionner",
@@ -1008,6 +1012,7 @@
"ui.base_point": "Point de base",
"ui.blocked": "Inaccessible",
"ui.bodies": "Corps",
+ "ui.bodies_all_if_none": "Corps (tous si aucun)",
"ui.box": "Boîte",
"ui.break": "Fractionner",
"ui.calibrate": "Étalonner",
@@ -1062,6 +1067,7 @@
"ui.continuity_g0": "G0 angle vif",
"ui.continuity_g1": "G1 tangence",
"ui.continuity_g2": "G2 courbure",
+ "ui.continuity_gap": "Écart",
"ui.copy": "Copier",
"ui.corner": "Angle",
"ui.corners": "Angles",
@@ -1177,6 +1183,7 @@
"ui.heading_home": "ACCUEIL",
"ui.heading_insert": "INSÉRER",
"ui.heading_inspect": "INSPECTER",
+ "ui.heading_interference": "INTERFÉRENCE",
"ui.heading_loft": "LISSAGE",
"ui.heading_make": "FABRIQUER",
"ui.heading_measure": "MESURER",
@@ -1383,6 +1390,7 @@
"ui.send": "Envoyer",
"ui.send_to_slicer": "Envoyer au slicer",
"ui.sent_to_slicer": "Envoyé à {slicer}",
+ "ui.sheet_gap": "Jeu",
"ui.shell": "Coque",
"ui.show": "Afficher",
"ui.showAll": "Tout afficher",
diff --git a/assets/locales/gl.json b/assets/locales/gl.json
index a557744a1a..b34e886126 100644
--- a/assets/locales/gl.json
+++ b/assets/locales/gl.json
@@ -113,7 +113,6 @@
"Follow the camera (Look At sketches)": "Seguir a cámara (Mirar cara aos bosquexos)",
"Font": "Tipo de letra",
"Full Length": "Lonxitude completa",
- "Gap": "Separación",
"Grid": "Grella",
"Height": "Altura",
"Hidden edges": "Arestas ocultas",
@@ -1031,6 +1030,7 @@
"ui.construct": "Construír",
"ui.construction": "Construción",
"ui.context_menu": "Menú contextual",
+ "ui.continuity_gap": "Separación",
"ui.copy": "Copiar",
"ui.corner": "Esquina",
"ui.corners": "Esquinas",
@@ -1347,6 +1347,7 @@
"ui.send": "Enviar",
"ui.send_to_slicer": "Enviar ao laminador",
"ui.sent_to_slicer": "Enviado a {slicer}",
+ "ui.sheet_gap": "Separación",
"ui.shell": "Baleirado",
"ui.show": "Mostrar",
"ui.showAll": "Mostrar todo",
diff --git a/assets/locales/it.json b/assets/locales/it.json
index ef7ac38858..243c6290f0 100644
--- a/assets/locales/it.json
+++ b/assets/locales/it.json
@@ -119,7 +119,6 @@
"Follow the camera (Look At sketches)": "Segui la camera (Vista normale agli schizzi)",
"Font": "Carattere",
"Full Length": "Lunghezza totale",
- "Gap": "Gioco",
"Grid": "Griglia",
"Height": "Altezza",
"Hidden edges": "Spigoli nascosti",
@@ -1055,6 +1054,7 @@
"ui.construct": "Costruisci",
"ui.construction": "Costruzione",
"ui.context_menu": "Menu contestuale",
+ "ui.continuity_gap": "Gioco",
"ui.copy": "Copia",
"ui.corner": "Angolo",
"ui.corners": "Angoli",
@@ -1374,6 +1374,7 @@
"ui.send": "Invia",
"ui.send_to_slicer": "Invia allo slicer",
"ui.sent_to_slicer": "Inviato a {slicer}",
+ "ui.sheet_gap": "Gioco",
"ui.shell": "Svuota",
"ui.show": "Mostra",
"ui.showAll": "Mostra tutto",
diff --git a/assets/locales/ja.json b/assets/locales/ja.json
index 5da8fa9827..0cfb388f94 100644
--- a/assets/locales/ja.json
+++ b/assets/locales/ja.json
@@ -122,7 +122,6 @@
"Follow the camera (Look At sketches)": "カメラ追従(スケッチを正面視)",
"Font": "フォント",
"Full Length": "全長",
- "Gap": "ギャップ",
"Grid": "グリッド",
"Height": "高さ",
"Hidden edges": "隠線",
@@ -656,7 +655,12 @@
"coupling.rack": "ラック",
"coupling.radius_1": "半径 1",
"coupling.radius_2": "半径 2",
+ "dialog.bodies_count": "{count} ボディ",
+ "dialog.clearance_invalid": "クリアランスは 0 以上の長さにしてください",
+ "dialog.compute": "計算",
+ "dialog.compute_again": "再計算",
"dialog.computing": "計算中… {seconds} 秒",
+ "dialog.could_not_be_checked": "チェックできません",
"dialog.custom_axis": "↖ カスタム軸",
"dialog.edit_title": "{title}を編集",
"dialog.select": "↖ 選択",
@@ -1049,6 +1053,7 @@
"ui.base_point": "基点",
"ui.blocked": "到達不可",
"ui.bodies": "ボディ",
+ "ui.bodies_all_if_none": "ボディ(未選択ならすべて)",
"ui.box": "直方体",
"ui.break": "分割",
"ui.calibrate": "校正",
@@ -1103,6 +1108,7 @@
"ui.continuity_g0": "G0 折れ",
"ui.continuity_g1": "G1 接線",
"ui.continuity_g2": "G2 曲率",
+ "ui.continuity_gap": "隙間",
"ui.copy": "コピー",
"ui.corner": "コーナー",
"ui.corners": "コーナー",
@@ -1218,6 +1224,7 @@
"ui.heading_home": "ホーム",
"ui.heading_insert": "挿入",
"ui.heading_inspect": "検査",
+ "ui.heading_interference": "干渉",
"ui.heading_loft": "ロフト",
"ui.heading_make": "製造",
"ui.heading_measure": "計測",
@@ -1427,6 +1434,7 @@
"ui.send": "送信",
"ui.send_to_slicer": "スライサーに送る",
"ui.sent_to_slicer": "{slicer} に送信しました",
+ "ui.sheet_gap": "ギャップ",
"ui.shell": "シェル",
"ui.show": "表示",
"ui.showAll": "すべて表示",
diff --git a/assets/locales/ko.json b/assets/locales/ko.json
index 47589baece..63df7e5683 100644
--- a/assets/locales/ko.json
+++ b/assets/locales/ko.json
@@ -43,7 +43,6 @@
"Faces": "면",
"Find in Browser": "브라우저에서 찾기",
"Flat": "플랫",
- "Gap": "틈",
"Hidden edges": "숨겨진 모서리",
"Holes": "구멍",
"Holes (edges on them)": "구멍 (구멍의 모서리)",
@@ -448,7 +447,12 @@
"coupling.rack": "랙",
"coupling.radius_1": "반지름 1",
"coupling.radius_2": "반지름 2",
+ "dialog.bodies_count": "바디 {count}개",
+ "dialog.clearance_invalid": "간격은 0 이상의 길이여야 합니다",
+ "dialog.compute": "계산",
+ "dialog.compute_again": "다시 계산",
"dialog.computing": "계산 중… {seconds}초",
+ "dialog.could_not_be_checked": "확인할 수 없음",
"dialog.custom_axis": "↖ 사용자 정의 축",
"dialog.edit_title": "{title} 편집",
"dialog.select": "↖ 선택",
@@ -769,6 +773,7 @@
"ui.base_point": "기준점",
"ui.blocked": "막힘",
"ui.bodies": "바디",
+ "ui.bodies_all_if_none": "바디 (없으면 전체)",
"ui.box": "박스",
"ui.break": "끊기",
"ui.calibrate": "캘리브레이션",
@@ -819,6 +824,7 @@
"ui.continuity_g0": "G0 꺾임",
"ui.continuity_g1": "G1 접선",
"ui.continuity_g2": "G2 곡률",
+ "ui.continuity_gap": "틈",
"ui.copy": "복사",
"ui.corner": "코너",
"ui.corners": "코너",
@@ -928,6 +934,7 @@
"ui.heading_home": "홈",
"ui.heading_insert": "삽입",
"ui.heading_inspect": "검사",
+ "ui.heading_interference": "간섭",
"ui.heading_loft": "로프트",
"ui.heading_measure": "측정",
"ui.heading_mesh": "메시",
@@ -1118,6 +1125,7 @@
"ui.send": "보내기",
"ui.send_to_slicer": "슬라이서로 보내기",
"ui.sent_to_slicer": "{slicer}(으)로 보냈습니다",
+ "ui.sheet_gap": "틈",
"ui.shell": "쉘",
"ui.show": "표시",
"ui.showAll": "모두 표시",
diff --git a/assets/locales/pl.json b/assets/locales/pl.json
index 9f4c101f44..501e0f7a98 100644
--- a/assets/locales/pl.json
+++ b/assets/locales/pl.json
@@ -122,7 +122,6 @@
"Follow the camera (Look At sketches)": "Podążaj za kamerą (Patrz na szkice)",
"Font": "Czcionka",
"Full Length": "Pełna długość",
- "Gap": "Szczelina",
"Grid": "Siatka",
"Height": "Wysokość",
"Hidden edges": "Krawędzie niewidoczne",
@@ -1071,6 +1070,7 @@
"ui.continuity_g0": "G0 załamanie",
"ui.continuity_g1": "G1 styczność",
"ui.continuity_g2": "G2 krzywizna",
+ "ui.continuity_gap": "Szczelina",
"ui.copy": "Kopiuj",
"ui.corner": "Naroże",
"ui.corners": "Naroża",
@@ -1395,6 +1395,7 @@
"ui.send": "Wyślij",
"ui.send_to_slicer": "Wyślij do slicera",
"ui.sent_to_slicer": "Wysłano do {slicer}",
+ "ui.sheet_gap": "Szczelina",
"ui.shell": "Skorupa",
"ui.show": "Pokaż",
"ui.showAll": "Pokaż wszystko",
diff --git a/assets/locales/pt-BR.json b/assets/locales/pt-BR.json
index f51f6a2511..3653a46a51 100644
--- a/assets/locales/pt-BR.json
+++ b/assets/locales/pt-BR.json
@@ -113,7 +113,6 @@
"Follow the camera (Look At sketches)": "Seguir a câmera (Olhar para os esboços)",
"Font": "Fonte",
"Full Length": "Comprimento total",
- "Gap": "Folga",
"Grid": "Grade",
"Height": "Altura",
"Hidden edges": "Arestas ocultas",
@@ -1011,6 +1010,7 @@
"ui.construct": "Construir",
"ui.construction": "Construção",
"ui.context_menu": "Menu de contexto",
+ "ui.continuity_gap": "Folga",
"ui.copy": "Copiar",
"ui.corner": "Canto",
"ui.corners": "Cantos",
@@ -1327,6 +1327,7 @@
"ui.send": "Enviar",
"ui.send_to_slicer": "Enviar ao fatiador",
"ui.sent_to_slicer": "Enviado para {slicer}",
+ "ui.sheet_gap": "Folga",
"ui.shell": "Casca",
"ui.show": "Mostrar",
"ui.showAll": "Mostrar tudo",
diff --git a/assets/locales/ru.json b/assets/locales/ru.json
index 86d06c3ab8..9550ec467e 100644
--- a/assets/locales/ru.json
+++ b/assets/locales/ru.json
@@ -102,7 +102,6 @@
"Follow the camera (Look At sketches)": "Следовать за камерой (эскизы «Взгляд на»)",
"Font": "Шрифт",
"Full Length": "Полная длина",
- "Gap": "Зазор",
"Grid": "Сетка",
"Height": "Высота",
"Home view": "Главный вид",
@@ -818,6 +817,7 @@
"ui.construct": "Построение",
"ui.construction": "Вспомогательная",
"ui.context_menu": "Контекстное меню",
+ "ui.continuity_gap": "Зазор",
"ui.copy": "Копировать",
"ui.corner": "Угол",
"ui.corners": "Углы",
@@ -1126,6 +1126,7 @@
"ui.send": "Отправить",
"ui.send_to_slicer": "Отправить в слайсер",
"ui.sent_to_slicer": "Отправлено в {slicer}",
+ "ui.sheet_gap": "Зазор",
"ui.shell": "Оболочка",
"ui.show": "Показать",
"ui.showAll": "Показать всё",
diff --git a/assets/locales/tr.json b/assets/locales/tr.json
index 87c48b3fca..3769e61acc 100644
--- a/assets/locales/tr.json
+++ b/assets/locales/tr.json
@@ -107,7 +107,6 @@
"Follow the camera (Look At sketches)": "Kamera takibi (eskizlerde Bak)",
"Font": "Yazı tipi",
"Full Length": "Tam uzunluk",
- "Gap": "Boşluk",
"Grid": "Izgara",
"Height": "Yükseklik",
"Holes": "Delikler",
@@ -960,6 +959,7 @@
"ui.construct": "Yapı",
"ui.construction": "Yapı çizgisi",
"ui.context_menu": "Bağlam menüsü",
+ "ui.continuity_gap": "Boşluk",
"ui.copy": "Kopyala",
"ui.corner": "Köşe",
"ui.corners": "Köşeler",
@@ -1274,6 +1274,7 @@
"ui.send": "Gönder",
"ui.send_to_slicer": "Dilimleyiciye gönder",
"ui.sent_to_slicer": "{slicer} uygulamasına gönderildi",
+ "ui.sheet_gap": "Boşluk",
"ui.shell": "Kabuk",
"ui.show": "Göster",
"ui.showAll": "Tümünü göster",
diff --git a/assets/locales/uk.json b/assets/locales/uk.json
index 41461393ad..724954ef42 100644
--- a/assets/locales/uk.json
+++ b/assets/locales/uk.json
@@ -118,7 +118,6 @@
"Follow the camera (Look At sketches)": "Стежити за камерою (ескізи наведення)",
"Font": "Шрифт",
"Full Length": "Повна довжина",
- "Gap": "Проміжок",
"Grid": "Сітка",
"Height": "Висота",
"Hidden edges": "Приховані ребра",
@@ -1034,6 +1033,7 @@
"ui.construct": "Побудувати",
"ui.construction": "Конструкційна",
"ui.context_menu": "Контекстне меню",
+ "ui.continuity_gap": "Проміжок",
"ui.copy": "Копіювати",
"ui.corner": "Кут",
"ui.corners": "Кути",
@@ -1350,6 +1350,7 @@
"ui.send": "Надіслати",
"ui.send_to_slicer": "Надіслати в слайсер",
"ui.sent_to_slicer": "Надіслано в {slicer}",
+ "ui.sheet_gap": "Проміжок",
"ui.shell": "Оболонка",
"ui.show": "Показати",
"ui.showAll": "Показати все",
diff --git a/assets/locales/zh.json b/assets/locales/zh.json
index a1fe448ad7..d342f7a194 100644
--- a/assets/locales/zh.json
+++ b/assets/locales/zh.json
@@ -122,7 +122,6 @@
"Follow the camera (Look At sketches)": "跟随相机(注视草图)",
"Font": "字体",
"Full Length": "全长",
- "Gap": "间隙",
"Grid": "网格",
"Height": "高度",
"Hidden edges": "隐藏线",
@@ -656,7 +655,12 @@
"coupling.rack": "齿条",
"coupling.radius_1": "半径 1",
"coupling.radius_2": "半径 2",
+ "dialog.bodies_count": "{count} 个实体",
+ "dialog.clearance_invalid": "间隙必须是 0 或更大的长度",
+ "dialog.compute": "计算",
+ "dialog.compute_again": "重新计算",
"dialog.computing": "正在计算… {seconds} 秒",
+ "dialog.could_not_be_checked": "无法检查",
"dialog.custom_axis": "↖ 自定义轴",
"dialog.edit_title": "编辑 {title}",
"dialog.select": "↖ 选择",
@@ -1049,6 +1053,7 @@
"ui.base_point": "基点",
"ui.blocked": "被遮挡",
"ui.bodies": "实体",
+ "ui.bodies_all_if_none": "实体(未选择则全部)",
"ui.box": "长方体",
"ui.break": "打断",
"ui.calibrate": "校准",
@@ -1103,6 +1108,7 @@
"ui.continuity_g0": "G0 折痕",
"ui.continuity_g1": "G1 相切",
"ui.continuity_g2": "G2 曲率",
+ "ui.continuity_gap": "缝隙",
"ui.copy": "复制",
"ui.corner": "角",
"ui.corners": "角点",
@@ -1218,6 +1224,7 @@
"ui.heading_home": "主页",
"ui.heading_insert": "插入",
"ui.heading_inspect": "检查",
+ "ui.heading_interference": "干涉",
"ui.heading_loft": "放样",
"ui.heading_make": "制作",
"ui.heading_measure": "测量",
@@ -1427,6 +1434,7 @@
"ui.send": "发送",
"ui.send_to_slicer": "发送到切片软件",
"ui.sent_to_slicer": "已发送到 {slicer}",
+ "ui.sheet_gap": "间隙",
"ui.shell": "抽壳",
"ui.show": "显示",
"ui.showAll": "显示全部",
diff --git a/crates/ui-egui/src/dialogs_assembly.rs b/crates/ui-egui/src/dialogs_assembly.rs
index 493918224b..a0124fb451 100644
--- a/crates/ui-egui/src/dialogs_assembly.rs
+++ b/crates/ui-egui/src/dialogs_assembly.rs
@@ -701,7 +701,7 @@ pub fn rows(app: &mut SolveApp, ui: &mut egui::Ui, k: &mut Asm, inputs: &mut [Se
ui.end_row();
row_label(ui, "");
let stale = result.is_some() && *of != picked;
- if ui.button(if stale { "Compute again" } else { "Compute" }).clicked() {
+ if ui.button(crate::i18n::tr(if stale { "dialog.compute_again" } else { "dialog.compute" })).clicked() {
let (r, o) = interference(app, &picked, clearance);
*result = Some(r);
*overlaps = o;
@@ -729,7 +729,7 @@ fn interference(app: &mut SolveApp, picked: &[Sel], clearance: &str) -> (Value,
let (scale, _) = crate::prefs::unit_scale(&app.session.doc.units);
let clearance = match crate::prefs::parse_length_mm(clearance, scale) {
Some(v) if v >= 0.0 => v,
- _ => return (json!({ "error": "the clearance must be a length of 0 or more" }), Vec::new()),
+ _ => return (json!({ "error": crate::i18n::tr("dialog.clearance_invalid") }), Vec::new()),
};
let mut p = json!({ "clearance": clearance, "nearest": 1 });
if !names.is_empty() {
@@ -762,7 +762,7 @@ fn interference_rows(app: &SolveApp, ui: &mut egui::Ui, r: &Value) {
}
let hits = r["overlaps"].as_array().cloned().unwrap_or_default();
row_label(ui, "Checked");
- ui.label(format!("{} bodies", r["bodies"].as_u64().unwrap_or(0)));
+ ui.label(crate::i18n::format("dialog.bodies_count", &[("count", &r["bodies"].as_u64().unwrap_or(0).to_string())]));
ui.end_row();
let unchecked = r["unchecked"].as_array().cloned().unwrap_or_default();
let near = r["near"].as_array().cloned().unwrap_or_default();
@@ -812,7 +812,7 @@ fn interference_rows(app: &SolveApp, ui: &mut egui::Ui, r: &Value) {
// Pairs the check could not work out: not clear, not known to interfere.
for u in unchecked {
row_label(ui, &format!("{} · {}", u["a"].as_str().unwrap_or(""), u["b"].as_str().unwrap_or("")));
- ui.label(RichText::new("could not be checked").color(t.warning)).on_hover_text(u["reason"].as_str().unwrap_or(""));
+ ui.label(RichText::new(crate::i18n::tr("dialog.could_not_be_checked")).color(t.warning)).on_hover_text(u["reason"].as_str().unwrap_or(""));
ui.end_row();
}
}
diff --git a/crates/ui-egui/src/dialogs_sheet.rs b/crates/ui-egui/src/dialogs_sheet.rs
index 91b5683bb5..0de88ad6b2 100644
--- a/crates/ui-egui/src/dialogs_sheet.rs
+++ b/crates/ui-egui/src/dialogs_sheet.rs
@@ -290,7 +290,7 @@ pub fn rows(app: &mut SolveApp, ui: &mut egui::Ui, k: &mut Sm, inputs: &mut [Sel
row_label(ui, "Length");
enter |= field(ui, length);
ui.end_row();
- row_label(ui, "Gap");
+ row_label(ui, "ui.sheet_gap");
let r = ui.add(egui::TextEdit::singleline(gap).hint_text(crate::i18n::tr_label("from the rule")));
crate::params_dialog::complete(ui, &r, gap);
enter |= r.lost_focus() && ui.input(|i| i.key_pressed(egui::Key::Enter));
diff --git a/crates/ui-egui/src/i18n_ui_tests.rs b/crates/ui-egui/src/i18n_ui_tests.rs
index 26bd8551d5..8614a0a608 100644
--- a/crates/ui-egui/src/i18n_ui_tests.rs
+++ b/crates/ui-egui/src/i18n_ui_tests.rs
@@ -290,3 +290,34 @@ fn long_panel_label_wraps_centred_and_its_button_is_centred() {
assert!(rows.iter().all(|row| lr.contains_rect(*row)), "the highlight holds both lines: {lr:?} {rows:?}");
out.textures_delta.clear();
}
+
+/// The Interference dialog's title, input and Compute button come from the catalogs: they were
+/// English in every language.
+#[test]
+fn interference_dialog_renders_in_the_active_language() {
+ let mut h = Harness::new();
+ h.app.preferences.language = "fr".into();
+ h.app.home.open = false;
+ h.call("ui.start", json!({"command":"inspect.interference"}));
+ h.frames(3);
+ for word in ["INTERFÉRENCE", "Corps (tous si aucun)", "Calculer"] {
+ assert!(h.widget(word).is_some(), "{word:?} must be shown");
+ }
+ for english in ["INTERFERENCE", "Bodies (all if none)", "Compute"] {
+ assert!(h.widget(english).is_none(), "{english:?} is still shown in English");
+ }
+ let fr = crate::i18n::Locale::for_language("fr");
+ assert_eq!(fr.format("dialog.bodies_count", &[("count", "3")]), "3 corps");
+ assert_eq!(fr.text("dialog.compute_again"), "Recalculer");
+}
+
+/// The continuity legend's Gap (an opening between faces) and the sheet-metal hem's gap are
+/// different words in some languages, so each has its own message.
+#[test]
+fn continuity_gap_and_sheet_metal_gap_are_separate_messages() {
+ for (lang, legend, sheet) in [("fr", "Écart", "Jeu"), ("de", "Lücke", "Spalt")] {
+ let locale = crate::i18n::Locale::for_language(lang);
+ assert_eq!(locale.text("ui.continuity_gap"), legend, "{lang}");
+ assert_eq!(locale.text("ui.sheet_gap"), sheet, "{lang}");
+ }
+}
diff --git a/crates/ui-egui/src/sketch_tools.rs b/crates/ui-egui/src/sketch_tools.rs
index a6e20fe10e..4379774d31 100644
--- a/crates/ui-egui/src/sketch_tools.rs
+++ b/crates/ui-egui/src/sketch_tools.rs
@@ -106,8 +106,9 @@ fn continuity_legend(app: &SolveApp, painter: &egui::Painter, proj: &Proj) {
}
let tk = crate::theme::Tokens::get();
let [smooth, jump, sharp, gap] = tk.continuity;
- let tr = crate::i18n::tr_label;
- let rows = [(tr("G2 curvature"), smooth), (tr("G1 tangent"), jump), (tr("G0 crease"), sharp), (tr("Gap"), gap)];
+ // Stable ids: this Gap is a hole between faces, not the sheet-metal gap (`ui.sheet_gap`).
+ let tr = crate::i18n::tr;
+ let rows = [(tr("ui.continuity_g2"), smooth), (tr("ui.continuity_g1"), jump), (tr("ui.continuity_g0"), sharp), (tr("ui.continuity_gap"), gap)];
let font = egui::FontId::proportional(12.0);
let (row, pad, swatch) = (18.0, 8.0, 22.0);
let text_width = rows.iter().map(|(label, _)| painter.layout_no_wrap(label.to_string(), font.clone(), tk.text).size().x).fold(0.0, f32::max);