From 029cf29b491974d260849c7fe2284bf01dba095d Mon Sep 17 00:00:00 2001 From: semmelrinde <124386289+semmelrinde@users.noreply.github.com> Date: Wed, 28 Oct 2026 12:15:35 +0000 Subject: [PATCH] Dialogs: 54 labels that read English in every language get messages (#8049) * Dialogs: 54 labels that read English in every language get messages The construction dialogs' selection fields (First edge, Second point, Through point, ...), the joint types (Rigid, Revolute, Slider, ...), the Sheet Metal and Plastic rules' rows (K Factor, Flange Gap, Min Draft, ...) and a few options and prompts are passed to the label translator as English source text that no catalog carried, so they showed English in every language. They are added in one pending file, with the eleven usual translations, and a test makes sure every dialog's selection fields keep a message. Co-Authored-By: Claude Opus 5.5 * Dialog labels: German Flange Gap is Flanschspalt, as the catalog's Flansch Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- assets/locales/pending/dialog-labels.json | 674 ++++++++++++++++++++++ crates/ui-egui/src/dialogs_all_tests.rs | 20 + 2 files changed, 694 insertions(+) create mode 100644 assets/locales/pending/dialog-labels.json diff --git a/assets/locales/pending/dialog-labels.json b/assets/locales/pending/dialog-labels.json new file mode 100644 index 000000000..3e51579c6 --- /dev/null +++ b/assets/locales/pending/dialog-labels.json @@ -0,0 +1,674 @@ +{ + "en": { + "(active rule)": "(active rule)", + "As Picked": "As Picked", + "Ball": "Ball", + "Base Height": "Base Height", + "Bend Line": "Bend Line", + "Both": "Both", + "Circle or sphere": "Circle or sphere", + "Constant radius": "Constant radius", + "Cylindrical": "Cylindrical", + "Deboss": "Deboss", + "Edge": "Edge", + "Equal Distance": "Equal Distance", + "Faces/Body": "Faces/Body", + "First edge": "First edge", + "First point": "First point", + "Flange Gap": "Flange Gap", + "Free Move": "Free Move", + "From Snap": "From Snap", + "Hem Gap": "Hem Gap", + "Hole Depth": "Hole Depth", + "Hole Diameter": "Hole Diameter", + "Joint 1": "Joint 1", + "Joint 2": "Joint 2", + "K Factor": "K Factor", + "Knife Edge": "Knife Edge", + "Line on plane": "Line on plane", + "Max Thickness": "Max Thickness", + "Min Draft": "Min Draft", + "Min Thickness": "Min Thickness", + "Neutral plane": "Neutral plane", + "Nominal Radius": "Nominal Radius", + "Pin-slot": "Pin-slot", + "Planar": "Planar", + "Point on line": "Point on line", + "Point on plane": "Point on plane", + "Relief Depth": "Relief Depth", + "Relief Width": "Relief Width", + "Reveal Height": "Reveal Height", + "Revolute": "Revolute", + "Rigid": "Rigid", + "Rim face": "Rim face", + "Second edge": "Second edge", + "Second point": "Second point", + "Slider": "Slider", + "Stationary Side": "Stationary Side", + "Surfaces": "Surfaces", + "Target Face (optional)": "Target Face (optional)", + "Thickness Variation": "Thickness Variation", + "Third plane": "Third plane", + "Third point": "Third point", + "Through point": "Through point", + "To Snap": "To Snap", + "click a plane or planar face": "click a plane or planar face", + "click sketch curves": "click sketch curves" + }, + "ar": { + "(active rule)": "(القاعدة النشطة)", + "As Picked": "كما تم الاختيار", + "Ball": "كروي", + "Base Height": "ارتفاع القاعدة", + "Bend Line": "خط الثني", + "Both": "كلاهما", + "Circle or sphere": "دائرة أو كرة", + "Constant radius": "نصف قطر ثابت", + "Cylindrical": "أسطواني", + "Deboss": "نقش غائر", + "Edge": "حافة", + "Equal Distance": "مسافة متساوية", + "Faces/Body": "الأوجه/الجسم", + "First edge": "الحافة الأولى", + "First point": "النقطة الأولى", + "Flange Gap": "فجوة الحافة المثنية", + "Free Move": "تحريك حر", + "From Snap": "من نقطة الالتقاط", + "Hem Gap": "فجوة ثنية الحافة", + "Hole Depth": "عمق الثقب", + "Hole Diameter": "قطر الثقب", + "Joint 1": "المفصل 1", + "Joint 2": "المفصل 2", + "K Factor": "معامل K", + "Knife Edge": "حافة حادة", + "Line on plane": "خط على مستوى", + "Max Thickness": "أقصى سماكة", + "Min Draft": "أدنى ميل سحب", + "Min Thickness": "أدنى سماكة", + "Neutral plane": "المستوى المحايد", + "Nominal Radius": "نصف القطر الاسمي", + "Pin-slot": "مسمار-شق", + "Planar": "مستوٍ", + "Point on line": "نقطة على خط", + "Point on plane": "نقطة على مستوى", + "Relief Depth": "عمق التفريغ", + "Relief Width": "عرض التفريغ", + "Reveal Height": "ارتفاع الدرجة", + "Revolute": "دوراني", + "Rigid": "صلب", + "Rim face": "وجه الحافة", + "Second edge": "الحافة الثانية", + "Second point": "النقطة الثانية", + "Slider": "منزلق", + "Stationary Side": "الجانب الثابت", + "Surfaces": "الأسطح", + "Target Face (optional)": "الوجه الهدف (اختياري)", + "Thickness Variation": "تفاوت السماكة", + "Third plane": "المستوى الثالث", + "Third point": "النقطة الثالثة", + "Through point": "عبر نقطة", + "To Snap": "إلى نقطة الالتقاط", + "click a plane or planar face": "انقر على مستوى أو وجه مستوٍ", + "click sketch curves": "انقر على منحنيات الرسم" + }, + "de": { + "(active rule)": "(aktive Regel)", + "As Picked": "Wie gewählt", + "Ball": "Kugelgelenk", + "Base Height": "Sockelhöhe", + "Bend Line": "Biegelinie", + "Both": "Beide", + "Circle or sphere": "Kreis oder Kugel", + "Constant radius": "Konstanter Radius", + "Cylindrical": "Drehschubgelenk", + "Deboss": "Vertiefen", + "Edge": "Kante", + "Equal Distance": "Gleicher Abstand", + "Faces/Body": "Flächen/Körper", + "First edge": "Erste Kante", + "First point": "Erster Punkt", + "Flange Gap": "Flanschspalt", + "Free Move": "Frei verschieben", + "From Snap": "Von Fangpunkt", + "Hem Gap": "Umkantungsspalt", + "Hole Depth": "Bohrungstiefe", + "Hole Diameter": "Bohrungsdurchmesser", + "Joint 1": "Gelenk 1", + "Joint 2": "Gelenk 2", + "K Factor": "K-Faktor", + "Knife Edge": "Messerkante", + "Line on plane": "Linie auf Ebene", + "Max Thickness": "Max. Dicke", + "Min Draft": "Min. Formschräge", + "Min Thickness": "Min. Dicke", + "Neutral plane": "Neutrale Ebene", + "Nominal Radius": "Nennradius", + "Pin-slot": "Stift-Nut-Gelenk", + "Planar": "Ebenengelenk", + "Point on line": "Punkt auf Linie", + "Point on plane": "Punkt auf Ebene", + "Relief Depth": "Freistellungstiefe", + "Relief Width": "Freistellungsbreite", + "Reveal Height": "Absatzhöhe", + "Revolute": "Drehgelenk", + "Rigid": "Starr", + "Rim face": "Randfläche", + "Second edge": "Zweite Kante", + "Second point": "Zweiter Punkt", + "Slider": "Schubgelenk", + "Stationary Side": "Feste Seite", + "Surfaces": "Flächen", + "Target Face (optional)": "Zielfläche (optional)", + "Thickness Variation": "Dickenschwankung", + "Third plane": "Dritte Ebene", + "Third point": "Dritter Punkt", + "Through point": "Durch Punkt", + "To Snap": "Zu Fangpunkt", + "click a plane or planar face": "Ebene oder ebene Fläche anklicken", + "click sketch curves": "Skizzenkurven anklicken" + }, + "es": { + "(active rule)": "(regla activa)", + "As Picked": "Según la selección", + "Ball": "Rótula", + "Base Height": "Altura de la base", + "Bend Line": "Línea de plegado", + "Both": "Ambos", + "Circle or sphere": "Círculo o esfera", + "Constant radius": "Radio constante", + "Cylindrical": "Cilíndrica", + "Deboss": "Grabado", + "Edge": "Arista", + "Equal Distance": "Distancia igual", + "Faces/Body": "Caras/Cuerpo", + "First edge": "Primera arista", + "First point": "Primer punto", + "Flange Gap": "Separación de pestaña", + "Free Move": "Movimiento libre", + "From Snap": "Desde el enganche", + "Hem Gap": "Separación de reborde", + "Hole Depth": "Profundidad del agujero", + "Hole Diameter": "Diámetro del agujero", + "Joint 1": "Unión 1", + "Joint 2": "Unión 2", + "K Factor": "Factor K", + "Knife Edge": "Borde afilado", + "Line on plane": "Línea en plano", + "Max Thickness": "Espesor máx.", + "Min Draft": "Ángulo de salida mín.", + "Min Thickness": "Espesor mín.", + "Neutral plane": "Plano neutro", + "Nominal Radius": "Radio nominal", + "Pin-slot": "Pasador-ranura", + "Planar": "Plana", + "Point on line": "Punto en línea", + "Point on plane": "Punto en plano", + "Relief Depth": "Profundidad de alivio", + "Relief Width": "Ancho de alivio", + "Reveal Height": "Altura del escalón", + "Revolute": "Revolución", + "Rigid": "Rígida", + "Rim face": "Cara del borde", + "Second edge": "Segunda arista", + "Second point": "Segundo punto", + "Slider": "Deslizante", + "Stationary Side": "Lado fijo", + "Surfaces": "Superficies", + "Target Face (optional)": "Cara de destino (opcional)", + "Thickness Variation": "Variación de espesor", + "Third plane": "Tercer plano", + "Third point": "Tercer punto", + "Through point": "Por un punto", + "To Snap": "Hasta el enganche", + "click a plane or planar face": "hacer clic en un plano o una cara plana", + "click sketch curves": "hacer clic en curvas del boceto" + }, + "fr": { + "(active rule)": "(règle active)", + "As Picked": "Tel que sélectionné", + "Ball": "Rotule", + "Base Height": "Hauteur de la base", + "Bend Line": "Ligne de pli", + "Both": "Les deux", + "Circle or sphere": "Cercle ou sphère", + "Constant radius": "Rayon constant", + "Cylindrical": "Pivot glissant", + "Deboss": "Embossage en creux", + "Edge": "Arête", + "Equal Distance": "Distance égale", + "Faces/Body": "Faces/Corps", + "First edge": "Première arête", + "First point": "Premier point", + "Flange Gap": "Jeu de bord tombé", + "Free Move": "Déplacement libre", + "From Snap": "Depuis l'accrochage", + "Hem Gap": "Jeu d'ourlet", + "Hole Depth": "Profondeur du trou", + "Hole Diameter": "Diamètre du trou", + "Joint 1": "Liaison 1", + "Joint 2": "Liaison 2", + "K Factor": "Facteur K", + "Knife Edge": "Arête vive", + "Line on plane": "Ligne sur plan", + "Max Thickness": "Épaisseur max.", + "Min Draft": "Dépouille min.", + "Min Thickness": "Épaisseur min.", + "Neutral plane": "Plan neutre", + "Nominal Radius": "Rayon nominal", + "Pin-slot": "Axe-rainure", + "Planar": "Plan", + "Point on line": "Point sur ligne", + "Point on plane": "Point sur plan", + "Relief Depth": "Profondeur de dégagement", + "Relief Width": "Largeur de dégagement", + "Reveal Height": "Hauteur de décroché", + "Revolute": "Pivot", + "Rigid": "Rigide", + "Rim face": "Face de bord", + "Second edge": "Deuxième arête", + "Second point": "Deuxième point", + "Slider": "Glissière", + "Stationary Side": "Côté fixe", + "Surfaces": "Surfaces", + "Target Face (optional)": "Face cible (facultatif)", + "Thickness Variation": "Variation d'épaisseur", + "Third plane": "Troisième plan", + "Third point": "Troisième point", + "Through point": "Par un point", + "To Snap": "Vers l'accrochage", + "click a plane or planar face": "cliquer sur un plan ou une face plane", + "click sketch curves": "cliquer sur des courbes d'esquisse" + }, + "he": { + "(active rule)": "(כלל פעיל)", + "As Picked": "כפי שנבחר", + "Ball": "כדורי", + "Base Height": "גובה הבסיס", + "Bend Line": "קו כיפוף", + "Both": "שניהם", + "Circle or sphere": "מעגל או כדור", + "Constant radius": "רדיוס קבוע", + "Cylindrical": "גלילי", + "Deboss": "הטבעה", + "Edge": "מקצוע", + "Equal Distance": "מרחק שווה", + "Faces/Body": "פאות/גוף", + "First edge": "מקצוע ראשון", + "First point": "נקודה ראשונה", + "Flange Gap": "פער אוגן", + "Free Move": "הזזה חופשית", + "From Snap": "מנקודת הצמדה", + "Hem Gap": "פער קיפול שפה", + "Hole Depth": "עומק החור", + "Hole Diameter": "קוטר החור", + "Joint 1": "מפרק 1", + "Joint 2": "מפרק 2", + "K Factor": "מקדם K", + "Knife Edge": "קצה חד", + "Line on plane": "קו על מישור", + "Max Thickness": "עובי מרבי", + "Min Draft": "שיפוע יציקה מזערי", + "Min Thickness": "עובי מזערי", + "Neutral plane": "מישור ניטרלי", + "Nominal Radius": "רדיוס נומינלי", + "Pin-slot": "פין-חריץ", + "Planar": "מישורי", + "Point on line": "נקודה על קו", + "Point on plane": "נקודה על מישור", + "Relief Depth": "עומק הקלה", + "Relief Width": "רוחב הקלה", + "Reveal Height": "גובה מדרגה", + "Revolute": "סיבובי", + "Rigid": "קשיח", + "Rim face": "פאת שפה", + "Second edge": "מקצוע שני", + "Second point": "נקודה שנייה", + "Slider": "הזזה", + "Stationary Side": "צד קבוע", + "Surfaces": "משטחים", + "Target Face (optional)": "פאת יעד (אופציונלי)", + "Thickness Variation": "שינוי עובי", + "Third plane": "מישור שלישי", + "Third point": "נקודה שלישית", + "Through point": "דרך נקודה", + "To Snap": "אל נקודת הצמדה", + "click a plane or planar face": "יש ללחוץ על מישור או על פאה מישורית", + "click sketch curves": "יש ללחוץ על עקומות סקיצה" + }, + "it": { + "(active rule)": "(regola attiva)", + "As Picked": "Come selezionato", + "Ball": "Sferico", + "Base Height": "Altezza della base", + "Bend Line": "Linea di piega", + "Both": "Entrambi", + "Circle or sphere": "Cerchio o sfera", + "Constant radius": "Raggio costante", + "Cylindrical": "Cilindrico", + "Deboss": "Incisione", + "Edge": "Spigolo", + "Equal Distance": "Distanza uguale", + "Faces/Body": "Facce/Corpo", + "First edge": "Primo spigolo", + "First point": "Primo punto", + "Flange Gap": "Gioco della flangia", + "Free Move": "Spostamento libero", + "From Snap": "Da aggancio", + "Hem Gap": "Gioco dell'orlo", + "Hole Depth": "Profondità del foro", + "Hole Diameter": "Diametro del foro", + "Joint 1": "Giunto 1", + "Joint 2": "Giunto 2", + "K Factor": "Fattore K", + "Knife Edge": "Spigolo vivo", + "Line on plane": "Linea su piano", + "Max Thickness": "Spessore max", + "Min Draft": "Sformo min", + "Min Thickness": "Spessore min", + "Neutral plane": "Piano neutro", + "Nominal Radius": "Raggio nominale", + "Pin-slot": "Perno-asola", + "Planar": "Planare", + "Point on line": "Punto su linea", + "Point on plane": "Punto su piano", + "Relief Depth": "Profondità di scarico", + "Relief Width": "Larghezza di scarico", + "Reveal Height": "Altezza del gradino", + "Revolute": "Rotoidale", + "Rigid": "Rigido", + "Rim face": "Faccia del bordo", + "Second edge": "Secondo spigolo", + "Second point": "Secondo punto", + "Slider": "Prismatico", + "Stationary Side": "Lato fisso", + "Surfaces": "Superfici", + "Target Face (optional)": "Faccia di destinazione (facoltativa)", + "Thickness Variation": "Variazione di spessore", + "Third plane": "Terzo piano", + "Third point": "Terzo punto", + "Through point": "Per un punto", + "To Snap": "Ad aggancio", + "click a plane or planar face": "fare clic su un piano o una faccia piana", + "click sketch curves": "fare clic sulle curve dello schizzo" + }, + "ja": { + "(active rule)": "(使用中のルール)", + "As Picked": "選択どおり", + "Ball": "ボール", + "Base Height": "ベースの高さ", + "Bend Line": "曲げ線", + "Both": "両方", + "Circle or sphere": "円または球", + "Constant radius": "一定半径", + "Cylindrical": "円筒", + "Deboss": "デボス", + "Edge": "エッジ", + "Equal Distance": "等距離", + "Faces/Body": "面/ボディ", + "First edge": "1つ目のエッジ", + "First point": "1点目", + "Flange Gap": "フランジ間隔", + "Free Move": "自由移動", + "From Snap": "移動元スナップ", + "Hem Gap": "ヘミング間隔", + "Hole Depth": "穴の深さ", + "Hole Diameter": "穴径", + "Joint 1": "ジョイント 1", + "Joint 2": "ジョイント 2", + "K Factor": "K係数", + "Knife Edge": "ナイフエッジ", + "Line on plane": "線-平面", + "Max Thickness": "最大厚さ", + "Min Draft": "最小勾配", + "Min Thickness": "最小厚さ", + "Neutral plane": "中立面", + "Nominal Radius": "公称半径", + "Pin-slot": "ピン スロット", + "Planar": "平面", + "Point on line": "点-線", + "Point on plane": "点-平面", + "Relief Depth": "リリーフ深さ", + "Relief Width": "リリーフ幅", + "Reveal Height": "見切り高さ", + "Revolute": "回転", + "Rigid": "剛体", + "Rim face": "縁の面", + "Second edge": "2つ目のエッジ", + "Second point": "2点目", + "Slider": "スライダ", + "Stationary Side": "固定側", + "Surfaces": "サーフェス", + "Target Face (optional)": "対象面 (オプション)", + "Thickness Variation": "厚さの変化", + "Third plane": "3つ目の平面", + "Third point": "3点目", + "Through point": "通過点", + "To Snap": "移動先スナップ", + "click a plane or planar face": "平面または平らな面をクリック", + "click sketch curves": "スケッチ曲線をクリック" + }, + "ko": { + "(active rule)": "(활성 규칙)", + "As Picked": "선택한 대로", + "Ball": "볼", + "Base Height": "베이스 높이", + "Bend Line": "굽힘선", + "Both": "양쪽", + "Circle or sphere": "원 또는 구", + "Constant radius": "일정 반지름", + "Cylindrical": "원통형", + "Deboss": "디보스", + "Edge": "모서리", + "Equal Distance": "같은 거리", + "Faces/Body": "면/바디", + "First edge": "첫 번째 모서리", + "First point": "첫 번째 점", + "Flange Gap": "플랜지 간격", + "Free Move": "자유 이동", + "From Snap": "시작 스냅", + "Hem Gap": "헴 간격", + "Hole Depth": "구멍 깊이", + "Hole Diameter": "구멍 지름", + "Joint 1": "관절 1", + "Joint 2": "관절 2", + "K Factor": "K 계수", + "Knife Edge": "칼날 모서리", + "Line on plane": "평면 위의 선", + "Max Thickness": "최대 두께", + "Min Draft": "최소 구배", + "Min Thickness": "최소 두께", + "Neutral plane": "중립면", + "Nominal Radius": "공칭 반지름", + "Pin-slot": "핀-슬롯", + "Planar": "평면", + "Point on line": "선 위의 점", + "Point on plane": "평면 위의 점", + "Relief Depth": "릴리프 깊이", + "Relief Width": "릴리프 너비", + "Reveal Height": "단차 높이", + "Revolute": "회전", + "Rigid": "고정", + "Rim face": "테두리 면", + "Second edge": "두 번째 모서리", + "Second point": "두 번째 점", + "Slider": "슬라이더", + "Stationary Side": "고정 측", + "Surfaces": "곡면", + "Target Face (optional)": "대상 면 (선택 사항)", + "Thickness Variation": "두께 변화", + "Third plane": "세 번째 평면", + "Third point": "세 번째 점", + "Through point": "통과점", + "To Snap": "대상 스냅", + "click a plane or planar face": "평면 또는 평평한 면 클릭", + "click sketch curves": "스케치 곡선 클릭" + }, + "vi": { + "(active rule)": "(quy tắc đang dùng)", + "As Picked": "Theo lựa chọn", + "Ball": "Cầu", + "Base Height": "Chiều cao đế", + "Bend Line": "Đường uốn", + "Both": "Cả hai", + "Circle or sphere": "Đường tròn hoặc khối cầu", + "Constant radius": "Bán kính không đổi", + "Cylindrical": "Trụ", + "Deboss": "Dập chìm (Deboss)", + "Edge": "Cạnh", + "Equal Distance": "Khoảng cách bằng nhau", + "Faces/Body": "Bề mặt/Thân", + "First edge": "Cạnh thứ nhất", + "First point": "Điểm thứ nhất", + "Flange Gap": "Khe hở mép gập", + "Free Move": "Di chuyển tự do", + "From Snap": "Từ điểm bắt", + "Hem Gap": "Khe hở mép viền", + "Hole Depth": "Độ sâu lỗ", + "Hole Diameter": "Đường kính lỗ", + "Joint 1": "Khớp 1", + "Joint 2": "Khớp 2", + "K Factor": "Hệ số K", + "Knife Edge": "Cạnh sắc", + "Line on plane": "Đường thẳng trên mặt phẳng", + "Max Thickness": "Độ dày tối đa", + "Min Draft": "Độ côn tối thiểu", + "Min Thickness": "Độ dày tối thiểu", + "Neutral plane": "Mặt phẳng trung hòa", + "Nominal Radius": "Bán kính danh định", + "Pin-slot": "Chốt-rãnh", + "Planar": "Phẳng", + "Point on line": "Điểm trên đường thẳng", + "Point on plane": "Điểm trên mặt phẳng", + "Relief Depth": "Độ sâu rãnh thoát", + "Relief Width": "Chiều rộng rãnh thoát", + "Reveal Height": "Chiều cao bậc", + "Revolute": "Xoay", + "Rigid": "Cứng", + "Rim face": "Mặt vành", + "Second edge": "Cạnh thứ hai", + "Second point": "Điểm thứ hai", + "Slider": "Trượt", + "Stationary Side": "Phía cố định", + "Surfaces": "Các bề mặt", + "Target Face (optional)": "Mặt đích (tùy chọn)", + "Thickness Variation": "Biến thiên độ dày", + "Third plane": "Mặt phẳng thứ ba", + "Third point": "Điểm thứ ba", + "Through point": "Qua điểm", + "To Snap": "Đến điểm bắt", + "click a plane or planar face": "nhấp vào một mặt phẳng hoặc bề mặt phẳng", + "click sketch curves": "nhấp vào các đường cong phác thảo" + }, + "zh": { + "(active rule)": "(当前规则)", + "As Picked": "按选取", + "Ball": "球", + "Base Height": "底座高度", + "Bend Line": "折弯线", + "Both": "两侧", + "Circle or sphere": "圆或球", + "Constant radius": "等半径", + "Cylindrical": "圆柱", + "Deboss": "凹印", + "Edge": "边", + "Equal Distance": "等距离", + "Faces/Body": "面/实体", + "First edge": "第一条边", + "First point": "第一点", + "Flange Gap": "法兰间隙", + "Free Move": "自由移动", + "From Snap": "起始捕捉", + "Hem Gap": "卷边间隙", + "Hole Depth": "孔深", + "Hole Diameter": "孔径", + "Joint 1": "接头 1", + "Joint 2": "接头 2", + "K Factor": "K 因子", + "Knife Edge": "刀口", + "Line on plane": "直线在平面上", + "Max Thickness": "最大厚度", + "Min Draft": "最小拔模", + "Min Thickness": "最小厚度", + "Neutral plane": "中性面", + "Nominal Radius": "公称半径", + "Pin-slot": "销槽", + "Planar": "平面", + "Point on line": "点在直线上", + "Point on plane": "点在平面上", + "Relief Depth": "止裂槽深度", + "Relief Width": "止裂槽宽度", + "Reveal Height": "台阶高度", + "Revolute": "旋转", + "Rigid": "刚性", + "Rim face": "边缘面", + "Second edge": "第二条边", + "Second point": "第二点", + "Slider": "滑块", + "Stationary Side": "固定侧", + "Surfaces": "曲面", + "Target Face (optional)": "目标面(可选)", + "Thickness Variation": "厚度变化", + "Third plane": "第三个平面", + "Third point": "第三点", + "Through point": "通过点", + "To Snap": "目标捕捉", + "click a plane or planar face": "单击平面或平整面", + "click sketch curves": "单击草图曲线" + }, + "zh-TW": { + "(active rule)": "(目前規則)", + "As Picked": "依選取", + "Ball": "球", + "Base Height": "底座高度", + "Bend Line": "折彎線", + "Both": "兩側", + "Circle or sphere": "圓或球", + "Constant radius": "等半徑", + "Cylindrical": "圓柱", + "Deboss": "凹雕", + "Edge": "邊", + "Equal Distance": "等距離", + "Faces/Body": "面/實體", + "First edge": "第一條邊", + "First point": "第一點", + "Flange Gap": "凸緣間隙", + "Free Move": "自由移動", + "From Snap": "起始鎖點", + "Hem Gap": "摺邊間隙", + "Hole Depth": "孔深", + "Hole Diameter": "孔徑", + "Joint 1": "接頭 1", + "Joint 2": "接頭 2", + "K Factor": "K 因子", + "Knife Edge": "刀口", + "Line on plane": "直線在平面上", + "Max Thickness": "最大厚度", + "Min Draft": "最小拔模", + "Min Thickness": "最小厚度", + "Neutral plane": "中性面", + "Nominal Radius": "公稱半徑", + "Pin-slot": "銷槽", + "Planar": "平面", + "Point on line": "點在直線上", + "Point on plane": "點在平面上", + "Relief Depth": "止裂槽深度", + "Relief Width": "止裂槽寬度", + "Reveal Height": "階差高度", + "Revolute": "旋轉", + "Rigid": "剛性", + "Rim face": "邊緣面", + "Second edge": "第二條邊", + "Second point": "第二點", + "Slider": "滑塊", + "Stationary Side": "固定側", + "Surfaces": "曲面", + "Target Face (optional)": "目標面(選用)", + "Thickness Variation": "厚度變化", + "Third plane": "第三個平面", + "Third point": "第三點", + "Through point": "通過點", + "To Snap": "目標鎖點", + "click a plane or planar face": "按一下平面或平坦面", + "click sketch curves": "按一下草圖曲線" + } +} diff --git a/crates/ui-egui/src/dialogs_all_tests.rs b/crates/ui-egui/src/dialogs_all_tests.rs index 44b6ae523..2825ea750 100644 --- a/crates/ui-egui/src/dialogs_all_tests.rs +++ b/crates/ui-egui/src/dialogs_all_tests.rs @@ -1011,3 +1011,23 @@ fn extrude_builds_the_one_region_clicked_where_the_face_outline_cuts_a_profile() assert!(((volume - before) - area * 5.0).abs() < 5e-3 * area * 5.0, "x = {x}: {volume} - {before} vs {}", area * 5.0); } } + +/// Every selection field of every command's dialog is labelled with a message the catalogs carry, +/// so it reads in the user's language ("First edge", "Second point" read English everywhere when +/// they were missing). +#[test] +fn every_selection_field_label_is_translated() { + let h = fixture(); + let _japanese = crate::i18n::scope("ja"); + let mut missing = std::collections::BTreeSet::new(); + for spec in solidcraft_engine::command_specs() { + let Some(d) = Dialog::for_command(&h.app, spec.id) else { continue }; + for input in &d.inputs { + let label = input.label.trim(); + if label.chars().any(|c| c.is_ascii_alphabetic()) && crate::i18n::tr_label(label) == label { + missing.insert(format!("{}: {label}", spec.id)); + } + } + } + assert!(missing.is_empty(), "selection fields without a message: {missing:#?}"); +}