i18n: wrap remaining hardcoded UI strings for translation (#2467)

- Wrap "PhotoCraft — Screen Color Picker" viewport title with tl!()
- Wrap "OK" button in widgets.rs with tl!()
- Add "PhotoCraft — Screen Color Picker" entry to all 14 language catalogs

Co-authored-by: seldoms <seldoms@Mac.lan>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
seldoms
2026-10-10 17:10:36 -04:00
committed by GitHub
co-authored by seldoms Brandon Thomas Claude Opus 5.5
parent 994a042123
commit ede3da019d
18 changed files with 18 additions and 2 deletions
+1
View File
@@ -2337,6 +2337,7 @@ fontWeight Italic Kurzíva
Color to Alpha… Barva na alfu…
Transparency Threshold Práh průhlednosti
Opacity Threshold Práh krytí
PhotoCraft — Screen Color Picker PhotoCraft — Výběr barvy obrazovky
Rasterize 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.
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1
View File
@@ -2376,6 +2376,7 @@ fontWeight Italic Kursiv
Color to Alpha… Farbe zu Alpha…
Transparency Threshold Transparenz-Schwellenwert
Opacity Threshold Deckkraft-Schwellenwert
PhotoCraft — Screen Color Picker PhotoCraft — Bildschirmfarbenauswahl
Rasterize svg groups deeper than SVG-Gruppen ab dieser Tiefe rastern
0 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.
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1
View File
@@ -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 επίπεδα ραστεροποιούνται πάντα.
Can't render this file because it contains an unexpected character in line 973 and column 18.
+1
View File
@@ -2405,6 +2405,7 @@ fontWeight Italic Cursiva
Color to Alpha… Color a alfa…
Transparency Threshold Umbral de transparencia
Opacity Threshold Umbral de opacidad
PhotoCraft — Screen Color Picker PhotoCraft — Selector de color de pantalla
Rasterize svg groups deeper than Rasterizar grupos SVG con mayor profundidad
0 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.
Can't render this file because it contains an unexpected character in line 4 and column 47.
+1
View File
@@ -2757,6 +2757,7 @@ fontWeight Italic Italique
Color to Alpha… Couleur vers alpha…
Transparency Threshold Seuil de transparence
Opacity Threshold Seuil d'opacité
PhotoCraft — Screen Color Picker PhotoCraft — Sélecteur de couleur d'écran
Rasterize svg groups deeper than Pixelliser les groupes SVG au-delà de cette profondeur
0 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.
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1
View File
@@ -2744,6 +2744,7 @@ fontWeight Italic Miring
Color to Alpha… Warna ke Alpha…
Transparency Threshold Ambang transparansi
Opacity Threshold Ambang opasitas
PhotoCraft — Screen Color Picker PhotoCraft — Pemilih Warna Layar
Rasterize svg groups deeper than Rasterisasi grup SVG yang lebih dalam dari ini
0 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.
Can't render this file because it contains an unexpected character in line 4 and column 47.
+1
View File
@@ -2407,6 +2407,7 @@ fontWeight Italic Corsivo
Color to Alpha… Colore ad alfa…
Transparency Threshold Soglia di trasparenza
Opacity Threshold Soglia di opacità
PhotoCraft — Screen Color Picker PhotoCraft — Selettore colore schermo
Rasterize 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.
1 # Italian (it) catalog. Columns, separated by a TAB: context <TAB> source <TAB> translation
2407
2408
2409
2410
2411
2412
2413
+1
View File
@@ -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 グループは常にラスタライズされます。
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1
View File
@@ -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 그룹은 항상 래스터화됩니다.
1 # Korean (ko) catalog. UTF-8: context<TAB>English source<TAB>translation.
2917
2918
2919
2920
2921
2922
2923
+1
View File
@@ -3604,3 +3604,4 @@ cameraRaw Whites Witten
Previous Document Vorig document
W x H x Resolution B x H x Resolutie
Front Image Voorste afbeelding
PhotoCraft — Screen Color Picker PhotoCraft — Schermkleurkiezer
Can't render this file because it contains an unexpected character in line 8 and column 34.
+1
View File
@@ -3360,6 +3360,7 @@ cameraRaw Roughness Chropowatość
Color to Alpha… Kolor na alfę…
Transparency Threshold Próg przezroczystości
Opacity Threshold Próg krycia
PhotoCraft — Screen Color Picker PhotoCraft — Próbnik kolorów ekranu
Rasterize svg groups deeper than Rasteryzuj grupy SVG głębsze niż ten poziom
0 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.
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1
View File
@@ -2765,6 +2765,7 @@ fontWeight Italic Itálico
Color to Alpha… Cor para alfa…
Transparency Threshold Limiar de transparência
Opacity Threshold Limiar de opacidade
PhotoCraft — Screen Color Picker PhotoCraft — Seletor de cor da tela
Rasterize svg groups deeper than Rasterizar grupos SVG além desta profundidade
0 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.
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1
View File
@@ -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 уровней всегда растрируются.
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1
View File
@@ -3532,3 +3532,4 @@ cameraRaw Masking Маскування
Previous Document Попередній документ
W x H x Resolution Ш x В x Роздільна здатність
Front Image Зображення переднього плану
PhotoCraft — Screen Color Picker PhotoCraft — Піпетка кольору екрана
Can't render this file because it contains an unexpected character in line 1326 and column 18.
+1
View File
@@ -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 组始终会被栅格化。
1 # Simplified Chinese (zh-hans) catalog. UTF-8, TAB-separated columns:
2345
2346
2347
2348
2349
2350
2351
+1
View File
@@ -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 群組一律會點陣化。
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1 -1
View File
@@ -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())
+1 -1
View File
@@ -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);
}
},