UI: the Interference dialog and the continuity legend's Gap are translatable (#2443)
* UI: the Interference dialog and the continuity legend's Gap are translatable The Interference dialog's title, its Bodies input, the Compute and Compute again button, the checked-bodies count, "could not be checked" and the clearance error were English in every language. They now come from the catalogs (en, ja, zh, de, ko, fr). The continuity legend's Gap (an opening between faces) and the sheet-metal hem's gap shared the message "Gap", translated as the hem's gap (French "Jeu"). The hem keeps those translations under ui.sheet_gap; the legend gets ui.continuity_gap, and both read their message by id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L15TLCjpXsQdp8ovC4ZacH * Polish: the sheet-metal gap is ui.sheet_gap too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L15TLCjpXsQdp8ovC4ZacH * Every catalog gives the continuity legend's Gap the word it showed before The catalogs without their own ui.continuity_gap would have fallen back to English in the legend; they now keep the translation the shared Gap gave them. French and German keep separate words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L15TLCjpXsQdp8ovC4ZacH --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": "すべて表示",
|
||||
|
||||
@@ -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": "모두 표시",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": "Показать всё",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": "Показати все",
|
||||
|
||||
@@ -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": "显示全部",
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user