Snap Fit: the Base Height hint in the user's language (#8451)

The hint "at the face" had no catalog message, so it stayed English in
every language. Add it in English and the 26 other catalogs, and check
that every plastic dialog hint has a message.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
semmelrinde
2026-10-28 20:12:42 +00:00
committed by GitHub
parent 93066ab60c
commit be2168f70d
2 changed files with 93 additions and 0 deletions
@@ -0,0 +1,83 @@
{
"en": {
"at the face": "at the face"
},
"ar": {
"at the face": "عند الوجه"
},
"cs": {
"at the face": "u plochy"
},
"da": {
"at the face": "ved fladen"
},
"de": {
"at the face": "an der Fläche"
},
"es": {
"at the face": "en la cara"
},
"fr": {
"at the face": "sur la face"
},
"gl": {
"at the face": "na cara"
},
"he": {
"at the face": "על הפאה"
},
"hu": {
"at the face": "a lapnál"
},
"id": {
"at the face": "di muka"
},
"it": {
"at the face": "sulla faccia"
},
"ja": {
"at the face": "面の位置"
},
"ko": {
"at the face": "면에서"
},
"ms": {
"at the face": "pada muka"
},
"nb": {
"at the face": "ved flaten"
},
"nl": {
"at the face": "op het vlak"
},
"pl": {
"at the face": "przy ścianie"
},
"pt-BR": {
"at the face": "na face"
},
"ro": {
"at the face": "la față"
},
"ru": {
"at the face": "у грани"
},
"sv": {
"at the face": "vid ytan"
},
"tr": {
"at the face": "yüzde"
},
"uk": {
"at the face": "біля грані"
},
"vi": {
"at the face": "tại bề mặt"
},
"zh-TW": {
"at the face": "在面上"
},
"zh": {
"at the face": "在面上"
}
}
@@ -193,3 +193,13 @@ fn inch_plastic_rule_edit_preserves_material_angles_and_stored_lengths() {
assert_eq!(changed["draft"], unchanged["draft"]);
assert_eq!(changed["material"], unchanged["material"]);
}
/// The hints the plastic dialogs show in an empty optional field ("from the rule", "at the
/// face", …) are in the user's language: each has a message.
#[test]
fn optional_field_hints_have_messages() {
let ja = crate::i18n::Locale::for_language("ja");
for hint in ["no hole", "to the face", "from the rule", "none", "at the face", "solid"] {
assert_ne!(ja.label(hint), hint, "`{hint}` has a Japanese message");
}
}