PhotoCraft: An open-source, photo editor written by scratch in pure Rust
i18n: wrap remaining hardcoded UI strings for translation (#2467)
seldomsede3da019d96
diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex a9c13c972..022f60c61 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -2337,6 +2337,7 @@ fontWeight Italic KurzívaColor to Alpha… Barva na alfu…Transparency Threshold Práh průhlednostiOpacity Threshold Práh krytí+ PhotoCraft — Screen Color Picker PhotoCraft — Výběr barvy obrazovkyRasterize svg groups deeper than Rasterizovat skupiny SVG hlubší než tato úroveň0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 vypne tento práh; skupiny SVG vnořené hlouběji než 100 úrovní se rastrují vždy.diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex cae545d06..7e2d14f08 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -2376,6 +2376,7 @@ fontWeight Italic KursivColor to Alpha… Farbe zu Alpha…Transparency Threshold Transparenz-SchwellenwertOpacity Threshold Deckkraft-Schwellenwert+ PhotoCraft — Screen Color Picker PhotoCraft — BildschirmfarbenauswahlRasterize svg groups deeper than SVG-Gruppen ab dieser Tiefe rastern0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 schaltet diese Schwelle aus; SVG-Gruppen, die tiefer als 100 Ebenen verschachtelt sind, werden immer gerastert.diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex 8894c40ce..f1f160fb9 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -3446,6 +3446,7 @@ fontWeight Thin Πολύ λεπτάColor to Alpha… Χρώμα σε άλφα…Transparency Threshold Κατώφλι διαφάνειαςOpacity Threshold Κατώφλι αδιαφάνειας+ PhotoCraft — Screen Color Picker PhotoCraft — Επιλογή χρώματος οθόνηςRasterize svg groups deeper than Ραστεροποίηση ομάδων SVG πέρα από αυτό το βάθος0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. Το 0 απενεργοποιεί αυτό το όριο· ομάδες SVG με ένθεση βαθύτερη από 100 επίπεδα ραστεροποιούνται πάντα.diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex 3e2835ad3..6bffff35f 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -2405,6 +2405,7 @@ fontWeight Italic CursivaColor to Alpha… Color a alfa…Transparency Threshold Umbral de transparenciaOpacity Threshold Umbral de opacidad+ PhotoCraft — Screen Color Picker PhotoCraft — Selector de color de pantallaRasterize svg groups deeper than Rasterizar grupos SVG con mayor profundidad0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 desactiva este umbral; los grupos SVG anidados a más de 100 niveles siempre se rasterizan.diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex 0fbc0bb1a..ed8dc39fe 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -2757,6 +2757,7 @@ fontWeight Italic ItaliqueColor to Alpha… Couleur vers alpha…Transparency Threshold Seuil de transparenceOpacity Threshold Seuil d'opacité+ PhotoCraft — Screen Color Picker PhotoCraft — Sélecteur de couleur d'écranRasterize svg groups deeper than Pixelliser les groupes SVG au-delà de cette profondeur0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 désactive ce seuil ; les groupes SVG imbriqués sur plus de 100 niveaux sont toujours pixellisés.diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex 3a320bfbf..8b658a098 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -2744,6 +2744,7 @@ fontWeight Italic MiringColor to Alpha… Warna ke Alpha…Transparency Threshold Ambang transparansiOpacity Threshold Ambang opasitas+ PhotoCraft — Screen Color Picker PhotoCraft — Pemilih Warna LayarRasterize svg groups deeper than Rasterisasi grup SVG yang lebih dalam dari ini0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 menonaktifkan ambang ini; grup SVG yang bersarang lebih dari 100 tingkat selalu dirasterisasi.diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex e76574f61..36bae98f8 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -2407,6 +2407,7 @@ fontWeight Italic CorsivoColor to Alpha… Colore ad alfa…Transparency Threshold Soglia di trasparenzaOpacity Threshold Soglia di opacità+ PhotoCraft — Screen Color Picker PhotoCraft — Selettore colore schermoRasterize svg groups deeper than Rasterizza i gruppi SVG oltre questa profondità0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 disattiva questa soglia; i gruppi SVG annidati oltre 100 livelli vengono sempre rasterizzati.diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex d2c194454..e807a56e8 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -3360,6 +3360,7 @@ fontWeight Italic 斜体Color to Alpha… カラーを透明に…Transparency Threshold 透明のしきい値Opacity Threshold 不透明度のしきい値+ PhotoCraft — Screen Color Picker PhotoCraft — スクリーンカラーピッカーRasterize svg groups deeper than この深さを超える SVG グループをラスタライズ0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 でこのしきい値は無効になります。100 階層を超えて入れ子になった SVG グループは常にラスタライズされます。diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex c33e19c2a..96cbe43ed 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -2917,6 +2917,7 @@ fontWeight Italic 기울임Color to Alpha… 색상을 알파로…Transparency Threshold 투명도 한계값Opacity Threshold 불투명도 한계값+ PhotoCraft — Screen Color Picker PhotoCraft — 화면 색상 선택기Rasterize svg groups deeper than 이 깊이보다 깊은 SVG 그룹 래스터화0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0이면 이 임계값을 끕니다. 100단계보다 깊이 중첩된 SVG 그룹은 항상 래스터화됩니다.diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex e9bc2f5ab..304a81e17 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -3604,3 +3604,4 @@ cameraRaw Whites WittenPrevious Document Vorig documentW x H x Resolution B x H x ResolutieFront Image Voorste afbeelding+ PhotoCraft — Screen Color Picker PhotoCraft — Schermkleurkiezerdiff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex 79a17c94c..dd596cf24 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -3360,6 +3360,7 @@ cameraRaw Roughness ChropowatośćColor to Alpha… Kolor na alfę…Transparency Threshold Próg przezroczystościOpacity Threshold Próg krycia+ PhotoCraft — Screen Color Picker PhotoCraft — Próbnik kolorów ekranuRasterize svg groups deeper than Rasteryzuj grupy SVG głębsze niż ten poziom0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 wyłącza ten próg; grupy SVG zagnieżdżone głębiej niż 100 poziomów są zawsze rasteryzowane.diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex 870397d49..ed19dd0a4 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -2765,6 +2765,7 @@ fontWeight Italic ItálicoColor to Alpha… Cor para alfa…Transparency Threshold Limiar de transparênciaOpacity Threshold Limiar de opacidade+ PhotoCraft — Screen Color Picker PhotoCraft — Seletor de cor da telaRasterize svg groups deeper than Rasterizar grupos SVG além desta profundidade0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 desativa este limite; grupos SVG aninhados em mais de 100 níveis são sempre rasterizados.diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 7e8c0432d..c43e70dec 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -2610,6 +2610,7 @@ fontWeight Italic КурсивColor to Alpha… Цвет в альфа-канал…Transparency Threshold Порог прозрачностиOpacity Threshold Порог непрозрачности+ PhotoCraft — Screen Color Picker PhotoCraft — Пипетка цвета экранаRasterize svg groups deeper than Растеризовать группы SVG глубже этого уровня0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 отключает этот порог; группы SVG с вложенностью более 100 уровней всегда растрируются.diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex 455228639..4011b55c8 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -3532,3 +3532,4 @@ cameraRaw Masking МаскуванняPrevious Document Попередній документW x H x Resolution Ш x В x Роздільна здатністьFront Image Зображення переднього плану+ PhotoCraft — Screen Color Picker PhotoCraft — Піпетка кольору екранаdiff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex d1913bd90..759b1533b 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -2345,6 +2345,7 @@ fontWeight Italic 斜体Color to Alpha… 颜色转为 Alpha…Transparency Threshold 透明度阈值Opacity Threshold 不透明度阈值+ PhotoCraft — Screen Color Picker PhotoCraft — 屏幕取色器Rasterize svg groups deeper than 栅格化超过此深度的 SVG 组0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 设为 0 可关闭此阈值;嵌套超过 100 层的 SVG 组始终会被栅格化。diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex 8bb9d0c0b..41bb2d66f 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -2314,6 +2314,7 @@ fontWeight Italic 斜體Color to Alpha… 顏色轉為 Alpha…Transparency Threshold 透明度臨界值Opacity Threshold 不透明度臨界值+ PhotoCraft — Screen Color Picker PhotoCraft — 螢幕取色器Rasterize svg groups deeper than 點陣化超過此深度的 SVG 群組0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 設為 0 可關閉此臨界值;巢狀超過 100 層的 SVG 群組一律會點陣化。diff --git a/crates/ui-egui/src/screen_picker.rs b/crates/ui-egui/src/screen_picker.rsindex 2915d53ff..c9da4cdca 100644--- a/crates/ui-egui/src/screen_picker.rs+++ b/crates/ui-egui/src/screen_picker.rs@@ -261,7 +261,7 @@ pub fn show(ctx: &Context) {let shared = r.clone();let vid = egui::ViewportId::from_hash_of(("screen-color", generation, n));let mut builder = egui::ViewportBuilder::default()- .with_title("PhotoCraft — Screen Color Picker")+ .with_title(tl!("PhotoCraft — Screen Color Picker")).with_decorations(false).with_resizable(false).with_position(image.position / ctx.zoom_factor())diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rsindex 65dbbfa28..e38e90991 100644--- a/crates/ui-egui/src/widgets.rs+++ b/crates/ui-egui/src/widgets.rs@@ -1433,7 +1433,7 @@ mod tests {if round {*v = v.round();}- if ui.button("OK").clicked() || ui.input(|i| i.key_pressed(egui::Key::Enter)) {+ if ui.button(tl!("OK")).clicked() || ui.input(|i| i.key_pressed(egui::Key::Enter)) {*ok = Some(*v);}},