UI: English only for Golden Ratio; translations move to craft-i18n

AGENTS.md rule 16: feature PRs add the English key, and translations are added in storytold/craft-i18n. Removes the 17 catalog rows this PR added; the label shows in English until then. The translation test now checks Thirds, which every shipped catalog already has, so it doesn't wait on the new rows.
This commit is contained in:
Hoang Pham committed 2026-11-24 11:25:28 +07:00
1 parent 66fda2f781
commit 6ae3a8ac07
18 files changed
+10 -26

No files matched your search

-1
View File
@@ -809,7 +809,6 @@
"Golden": "Zlaté",
"Golden Glow": "Zlatá záře",
"Golden Hour": "Zlatá hodina",
"Golden Ratio": "Zlatý řez",
"Grab bag": "Různorodé",
"Grain": "Zrnitost",
"Graphic": "Grafika",
-1
View File
@@ -626,7 +626,6 @@
"Golden": "Goldfarben",
"Golden Glow": "Goldener Glanz",
"Golden Hour": "Goldene Stunde",
"Golden Ratio": "Goldener Schnitt",
"Grab bag": "Namensliste",
"Grain": "Körnung",
"Graphic": "Grafisch",
-1
View File
@@ -632,7 +632,6 @@
"Golden": "Dorado",
"Golden Glow": "Resplandor dorado",
"Golden Hour": "Hora dorada",
"Golden Ratio": "Proporción áurea",
"Grab bag": "Miscelánea",
"Grain": "Grano",
"Graphic": "Gráfico",
-1
View File
@@ -799,7 +799,6 @@
"Golden": "Kultainen",
"Golden Glow": "Kultainen hehku",
"Golden Hour": "Kultainen hetki",
"Golden Ratio": "Kultainen leikkaus",
"Grab bag": "Sekalaista",
"Grain": "Rakeisuus",
"Graphic": "Grafiikka",
-1
View File
@@ -591,7 +591,6 @@
"Golden": "Doré",
"Golden Glow": "Lueur dorée",
"Golden Hour": "Heure dorée",
"Golden Ratio": "Nombre d’or",
"Grab bag": "Liste de noms",
"Grain": "Grain",
"Graphic": "Graphique",
-1
View File
@@ -806,7 +806,6 @@
"Golden": "Rasio emas",
"Golden Glow": "Hangat Keemasan",
"Golden Hour": "Golden Hour",
"Golden Ratio": "Rasio emas",
"Grab bag": "Daftar nama",
"Grain": "Butiran",
"Graphic": "Grafis",
-1
View File
@@ -592,7 +592,6 @@
"Golden": "Dorato",
"Golden Glow": "Bagliore dorato",
"Golden Hour": "Ora d'oro",
"Golden Ratio": "Sezione aurea",
"Grab bag": "Varie",
"Grain": "Grana",
"Graphic": "Grafica",
-1
View File
@@ -788,7 +788,6 @@
"Global Saturation": "全体の彩度",
"Glossy": "光沢紙",
"Golden": "黄金比",
"Golden Ratio": "黄金比",
"Grain": "粒子",
"Graphic": "画像",
"Green": "グリーン",
-1
View File
@@ -877,7 +877,6 @@
"Golden": "ოქროსფერი",
"Golden Glow": "ოქროსფერი ნათება",
"Golden Hour": "ოქროს საათი",
"Golden Ratio": "ოქროს კვეთა",
"Grab bag": "სხვადასხვა",
"Grain": "მარცვლოვნება",
"Graphic": "გრაფიკა",
-1
View File
@@ -576,7 +576,6 @@
"Golden": "Złocisty",
"Golden Glow": "Złota poświata",
"Golden Hour": "Złota godzina",
"Golden Ratio": "Złoty podział",
"Grab bag": "Zbiór różnych elementów",
"Grain": "Ziarno",
"Graphic": "Graficzny",
-1
View File
@@ -600,7 +600,6 @@
"Golden": "Dourado",
"Golden Glow": "Brilho dourado",
"Golden Hour": "Hora dourada",
"Golden Ratio": "Proporção áurea",
"Grab bag": "Lista de nomes",
"Grain": "Granulado",
"Graphic": "Gráfico",
-1
View File
@@ -690,7 +690,6 @@
"Golden": "Золотой",
"Golden Glow": "Золотое сияние",
"Golden Hour": "Золотой час",
"Golden Ratio": "Золотое сечение",
"Grain": "Зерно",
"Graphic": "Графичный",
"Green": "Зелёный",
-1
View File
@@ -853,7 +853,6 @@
"Golden": "Gyllene",
"Golden Glow": "Gyllene glöd",
"Golden Hour": "Gyllene timmen",
"Golden Ratio": "Gyllene snittet",
"GPS Track Log": "GPS-spårlogg",
"GPU Rendering": "GPU-rendering",
"GPU rendering": "GPU-rendering",
-1
View File
@@ -983,7 +983,6 @@
"Global Luminance": "Загальна яскравість",
"Global Saturation": "Загальна насиченість",
"Golden": "Золотисте",
"Golden Ratio": "Золотий переріз",
"Green Amount": "Кількість зеленого",
"Green Hue": "Тон зеленого",
"Green Hue High": "Верхня межа тону зеленого",
-1
View File
@@ -738,7 +738,6 @@
"Golden": "Vàng",
"Golden Glow": "Ánh vàng",
"Golden Hour": "Giờ vàng",
"Golden Ratio": "Tỷ lệ vàng",
"Grab bag": "Tạp hợp",
"Grain": "Hạt",
"Graphic": "Đồ họa",
-1
View File
@@ -740,7 +740,6 @@
"Golden": "黄金比例",
"Golden Glow": "金色光晕",
"Golden Hour": "黄金时刻",
"Golden Ratio": "黄金比例",
"Grain": "颗粒",
"Graphic": "图形",
"Green": "绿色",
-1
View File
@@ -741,7 +741,6 @@
"Golden": "黃金比例",
"Golden Glow": "金色光暈",
"Golden Hour": "黃金時刻",
"Golden Ratio": "黃金比例",
"Grain": "顆粒",
"Graphic": "圖像",
"Green": "綠色",
+10 -9
View File
@@ -76,23 +76,24 @@ fn crop_overlay_and_upright_are_dropdowns() {
assert!(h.app.ui.tool.is_empty());
}
/// The overlay names are translated in the open menu and in the closed dropdown.
/// The overlay names are translated in the open menu and in the closed dropdown. Thirds is checked
/// because every shipped catalog already has it; a name with no translation yet shows in English.
#[test]
fn crop_overlay_dropdown_is_translated() {
let mut h = detail("panel.crop");
let r = h.request("ui.set", json!({"language": Locale::De.code()}), T);
assert_eq!(r["ok"], true, "{r}");
h.step();
let golden = Locale::De.tr("Golden Ratio");
assert_ne!(golden, "Golden Ratio", "German has its own name for the overlay");
choose(&mut h, "cropOverlay", "grid");
let thirds = Locale::De.tr("Thirds");
assert_ne!(thirds, "Thirds", "German has its own name for the overlay");
click(&mut h, "dropdown:cropOverlay");
h.step();
assert!(shows(&h, "cropOverlay:golden", golden), "menu item {golden}");
click(&mut h, "cropOverlay:golden");
assert!(shows(&h, "cropOverlay:thirds", thirds), "menu item {thirds}");
click(&mut h, "cropOverlay:thirds");
h.step();
assert_eq!(h.app.ui.crop_overlay, CropOverlay::Golden);
assert!(!has_widget(&h, "cropOverlay:golden"), "the menu closed");
assert!(shows(&h, "dropdown:cropOverlay", golden), "closed dropdown says {golden}");
assert_eq!(h.app.ui.crop_overlay, CropOverlay::Thirds);
assert!(!has_widget(&h, "cropOverlay:thirds"), "the menu closed");
assert!(shows(&h, "dropdown:cropOverlay", thirds), "closed dropdown says {thirds}");
crate::i18n::set_language(Locale::En);
}