Add Finnish interface language

Adds a Finnish (Suomi, `fi`) catalog with 4,169 entries: every key of
the other bundled catalogs, written in sentence case from the English
labels with ordinary Finnish image-editing vocabulary. It is registered
with complete_menus, and xtask's source-key coverage check includes it.
Plurals are one/other with the partitive singular after any number but
1 (1 taso, 2 tasoa).

Any fi-* locale selects Finnish; sv-FI does not. Tests cover locale
tags, system-language resolution, id and context overrides, and plurals.

Clean-room, AI-assisted (Claude Code) translation; a native speaker
checked it in the running app, but it has not been proofread line by
line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Janiz-zzzandClaude Opus 5.5 committed 2026-10-29 19:06:55 +02:00
1 parent c645d5fcc9
commit 1990c7c184
9 files changed
+4622 -3

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ next to them.
| `crates/ui-egui/src/i18n/tr.tsv` | Turkish UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/tr.tsv` | Turkish UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) |
| `crates/ui-egui/src/i18n/sr.tsv` | Serbian (Latin, Ekavian) UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/sr.tsv` | Serbian (Latin, Ekavian) UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) |
| `crates/ui-egui/src/i18n/ru.tsv` | Russian UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/ru.tsv` | Russian UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) |
| `crates/ui-egui/src/i18n/fi.tsv` | Finnish UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) |
| `epaint_default_fonts::EGUI_ICONS` (build input; deflated into `OUT_DIR/egui_fonts/egui-icons.ttf.deflate`, registered by `crates/ui-egui/src/egui_fonts.rs`) | egui-icons, five-glyph subset of emoji-icon-font | John Slegers | [egui fork at 6d518fc](https://github.com/storytold/egui/tree/6d518fc799681571963842f95b55a6b68431b15a/crates/epaint_default_fonts/fonts), [original](https://github.com/jslegers/emoji-icon-font); egui subset, unmodified here | MIT; Copyright (c) 2014 John Slegers; full upstream notice in [NOTICE](NOTICE) | | `epaint_default_fonts::EGUI_ICONS` (build input; deflated into `OUT_DIR/egui_fonts/egui-icons.ttf.deflate`, registered by `crates/ui-egui/src/egui_fonts.rs`) | egui-icons, five-glyph subset of emoji-icon-font | John Slegers | [egui fork at 6d518fc](https://github.com/storytold/egui/tree/6d518fc799681571963842f95b55a6b68431b15a/crates/epaint_default_fonts/fonts), [original](https://github.com/jslegers/emoji-icon-font); egui subset, unmodified here | MIT; Copyright (c) 2014 John Slegers; full upstream notice in [NOTICE](NOTICE) |
| `assets/fonts/Inter-Regular.ttf`, `Inter-Medium.ttf`, `Inter-SemiBold.ttf` | Inter 4.001 (UI font) | The Inter Project Authors (Rasmus Andersson) | <https://github.com/rsms/inter> | SIL OFL 1.1, [`assets/fonts/OFL-Inter.txt`](assets/fonts/OFL-Inter.txt) | | `assets/fonts/Inter-Regular.ttf`, `Inter-Medium.ttf`, `Inter-SemiBold.ttf` | Inter 4.001 (UI font) | The Inter Project Authors (Rasmus Andersson) | <https://github.com/rsms/inter> | SIL OFL 1.1, [`assets/fonts/OFL-Inter.txt`](assets/fonts/OFL-Inter.txt) |
| `assets/fonts/JetBrainsMono-Regular.ttf` | JetBrains Mono 2.305 (numeric font) | The JetBrains Mono Project Authors | <https://github.com/JetBrains/JetBrainsMono> | SIL OFL 1.1, [`assets/fonts/OFL-JetBrainsMono.txt`](assets/fonts/OFL-JetBrainsMono.txt) | | `assets/fonts/JetBrainsMono-Regular.ttf` | JetBrains Mono 2.305 (numeric font) | The JetBrains Mono Project Authors | <https://github.com/JetBrains/JetBrainsMono> | SIL OFL 1.1, [`assets/fonts/OFL-JetBrainsMono.txt`](assets/fonts/OFL-JetBrainsMono.txt) |
+4 -1
View File
@@ -199,7 +199,7 @@ fn expand(packed: &str, keys: &[&str]) -> Result<String, String> {
} }
/// The registry. English first: it is the fallback and the source language. /// The registry. English first: it is the fallback and the source language.
pub static LANGUAGES: [LangInfo; 23] = [ pub static LANGUAGES: [LangInfo; 24] = [
LangInfo { code: "en", name: "English", source: b"", plural: plural_one_other, complete_menus: false, catalog: OnceLock::new() }, LangInfo { code: "en", name: "English", source: b"", plural: plural_one_other, complete_menus: false, catalog: OnceLock::new() },
LangInfo { code: "ja", name: "日本語", source: catalog!("ja"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() }, LangInfo { code: "ja", name: "日本語", source: catalog!("ja"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() },
LangInfo { code: "zh-hans", name: "简体中文", source: catalog!("zh-hans"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() }, LangInfo { code: "zh-hans", name: "简体中文", source: catalog!("zh-hans"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() },
@@ -237,6 +237,9 @@ pub static LANGUAGES: [LangInfo; 23] = [
// Arabic (Modern Standard); `ar-SA`, `ar-EG` and the other regional locales resolve here. The // Arabic (Modern Standard); `ar-SA`, `ar-EG` and the other regional locales resolve here. The
// chrome mirrors right to left (`dir_for_code`), and egui lays each label out right to left. // chrome mirrors right to left (`dir_for_code`), and egui lays each label out right to left.
LangInfo { code: "ar", name: "العربية", source: catalog!("ar"), plural: plural_arabic, complete_menus: true, catalog: OnceLock::new() }, LangInfo { code: "ar", name: "العربية", source: catalog!("ar"), plural: plural_arabic, complete_menus: true, catalog: OnceLock::new() },
// Finnish; `fi-FI` resolves here. One/other: the partitive singular follows any number but 1
// ("1 taso", "2 tasoa").
LangInfo { code: "fi", name: "Suomi", source: catalog!("fi"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() },
]; ];
impl LangInfo { impl LangInfo {
@@ -1,5 +1,5 @@
PhotoCraft's Korean, German, Spanish, Brazilian Portuguese, Italian, Ukrainian, Dutch, Czech, PhotoCraft's Korean, German, Spanish, Brazilian Portuguese, Italian, Ukrainian, Dutch, Czech,
Turkish, Hungarian, Serbian and Russian UI translation catalogs are licensed under MIT OR Turkish, Hungarian, Serbian, Russian and Finnish UI translation catalogs are licensed under MIT OR
Apache-2.0, at your option. Apache-2.0, at your option.
The full license texts are in ../../../../LICENSE-MIT and ../../../../LICENSE-APACHE. The full license texts are in ../../../../LICENSE-MIT and ../../../../LICENSE-APACHE.
@@ -45,3 +45,6 @@ Arabic translations: PhotoCraft contributors, combined from the catalogs contrib
@hicbest, @hasan-sdaif, @NibrasAz7, @vfggf95565, @syrrevshin4202-prog and @test-bit-sys and @hicbest, @hasan-sdaif, @NibrasAz7, @vfggf95565, @syrrevshin4202-prog and @test-bit-sys and
reviewed with Claude (Anthropic) as an AI contributor; original translations of PhotoCraft's reviewed with Claude (Anthropic) as an AI contributor; original translations of PhotoCraft's
English labels, and no proprietary translation resources were used. English labels, and no proprietary translation resources were used.
Finnish translations: PhotoCraft contributors, original AI-assisted (Claude Code) translations of
PhotoCraft's English labels; no proprietary translation resources were used.
File diff suppressed because it is too large. Load diff
+1
View File
@@ -28,6 +28,7 @@ fn requested_languages_resolve_regional_preferences() {
("id-ID", "id"), ("id-ID", "id"),
("vi-VN", "vi"), ("vi-VN", "vi"),
("sr-RS", "sr"), ("sr-RS", "sr"),
("fi-FI", "fi"),
] { ] {
assert_eq!(Lang::from_pref(tag), lang(code), "{tag}"); assert_eq!(Lang::from_pref(tag), lang(code), "{tag}");
} }
+2
View File
@@ -102,6 +102,8 @@ mod tests {
(vec!["sr-Latn-RS", "en-US"], "sr"), (vec!["sr-Latn-RS", "en-US"], "sr"),
(vec!["sv-SE", "sr_RS@latin", "ru-RU"], "sr"), (vec!["sv-SE", "sr_RS@latin", "ru-RU"], "sr"),
(vec!["hi-IN", "en-US"], "hi"), (vec!["hi-IN", "en-US"], "hi"),
(vec!["fi-FI", "sv-FI", "en-US"], "fi"),
(vec!["sv-FI", "en-US"], "en"),
(vec![], "en"), (vec![], "en"),
] { ] {
with_system_tags(&tags, || assert_eq!(system_lang().code(), expected)); with_system_tags(&tags, || assert_eq!(system_lang().code(), expected));
+26
View File
@@ -226,6 +226,32 @@ fn arabic_preset_import_results_are_translated() {
assert_eq!(trn(ar, 1, "Imported {n} brush from {file}", "Imported {n} brushes from {file}"), "تم استيراد 1 فرشاة من {file}"); assert_eq!(trn(ar, 1, "Imported {n} brush from {file}", "Imported {n} brushes from {file}"), "تم استيراد 1 فرشاة من {file}");
} }
#[test]
fn finnish_resolves_locales_and_reads_as_finnish() {
let fi = Lang::from_code("fi").expect("fi registered");
assert_eq!(fi.name(), "Suomi");
assert!(fi.complete_menus());
for tag in ["fi", "FI", "fi-FI", "fi_FI", "fi_FI.UTF-8"] {
assert_eq!(lang_from_tag(tag), Some(fi), "{tag}");
assert_eq!(Lang::from_pref(tag), fi, "{tag}");
}
// Filipino (`fil`) and Swedish in Finland (`sv-FI`) don't pick Finnish.
assert_ne!(lang_from_tag("fil"), Some(fi));
assert_ne!(lang_from_tag("sv-FI"), Some(fi));
assert_eq!(tr(fi, "File"), "Tiedosto");
assert_eq!(tr(fi, "Layer"), "Taso");
assert_eq!(tr(fi, "New document…"), "Uusi asiakirja…");
assert_eq!(tr_id(fi, "select.all", "All"), "Valitse kaikki", "an id override wins over the plain label");
assert_eq!(tr(fi, "All"), "Kaikki");
assert_eq!(tr_ctx(fi, "cameraRaw", "Light"), "Valo");
assert_eq!(tr_ctx(fi, "fontWeight", "Light"), "Kevyt");
// The partitive singular follows any number but 1.
for (n, layer) in [(0, "tasoa"), (1, "taso"), (2, "tasoa"), (21, "tasoa"), (u64::MAX, "tasoa")] {
assert_eq!(trn(fi, n, "{n} layer", "{n} layers"), format!("{n} {layer}"));
assert_eq!(trn(fi, n, "Group · {n} layer", "Group · {n} layers"), format!("Ryhmä · {n} {layer}"));
}
}
#[test] #[test]
fn serbian_resolves_locales_and_preferences() { fn serbian_resolves_locales_and_preferences() {
let sr = Lang::from_code("sr").expect("sr registered"); let sr = Lang::from_code("sr").expect("sr registered");
+4 -1
View File
@@ -54,7 +54,9 @@ Polish `pl` (3,366), Greek `el` (3,481), Dutch `nl` (3,568), Italian `it` (4,164
other catalogs translate; reviewed by a native speaker, [notes](localization-it.md)). Turkish `tr` other catalogs translate; reviewed by a native speaker, [notes](localization-it.md)). Turkish `tr`
(3,731 rows) also covers every measured key. Serbian `sr` (4,022 rows, Latin script, Ekavian, added 2026-10-12) covers every (3,731 rows) also covers every measured key. Serbian `sr` (4,022 rows, Latin script, Ekavian, added 2026-10-12) covers every
measured key and the union of the other catalogs' dynamic labels; its one/few/many plurals reuse measured key and the union of the other catalogs' dynamic labels; its one/few/many plurals reuse
the Russian rule. the Russian rule. Finnish `fi` (4,557 rows, added 2026-10-14) covers every measured key and the union of the
other catalogs' dynamic labels; one/other plurals with the partitive after numbers other than 1. AI-assisted,
native proofreading pending.
Czech UI follow-up (2026-10-11): status and notice wrappers, hardware labels, brush and Czech UI follow-up (2026-10-11): status and notice wrappers, hardware labels, brush and
transform accessibility names, rasterization prompts, profile mismatch messages and preset transform accessibility names, rasterization prompts, profile mismatch messages and preset
@@ -93,3 +95,4 @@ engine localization or native review is complete.
| 2026-10-18 | minor | Russian: 1,229 dynamic labels added (filter and adjustment parameters, Camera Raw, lighting, History/Layers/paths menus, metadata, System Info, status templates, dialogs) with a terminology note ([localization-ru](localization-ru.md)) | | 2026-10-18 | minor | Russian: 1,229 dynamic labels added (filter and adjustment parameters, Camera Raw, lighting, History/Layers/paths menus, metadata, System Info, status templates, dialogs) with a terminology note ([localization-ru](localization-ru.md)) |
| 2026-10-22 | minor | Arabic row: paragraph direction has Auto / Left-to-right / Right-to-left buttons in the Paragraph panel and Type options bar (#6793); the visual RTL caret is still missing (TYPE-218-2 partial) | | 2026-10-22 | minor | Arabic row: paragraph direction has Auto / Left-to-right / Right-to-left buttons in the Paragraph panel and Type options bar (#6793); the visual RTL caret is still missing (TYPE-218-2 partial) |
| 2026-10-28 | minor | Arabic (`ar`) UI catalog: every measured key, six plural forms; layer names and the title bar no longer reversed on egui 0.37 | | 2026-10-28 | minor | Arabic (`ar`) UI catalog: every measured key, six plural forms; layer names and the title bar no longer reversed on egui 0.37 |
| 2026-10-14 | minor | Finnish (`fi`) catalog: every measured key plus the dynamic labels of the other catalogs; AI-assisted |
+1
View File
@@ -29,6 +29,7 @@ contextual, command-ID and plural translations; missing entries fall back to Eng
| Tiếng Việt | `vi` | one form | | Tiếng Việt | `vi` | one form |
| Srpski | `sr` | one / few / many (teens use many) | | Srpski | `sr` | one / few / many (teens use many) |
| हिन्दी | `hi` | one / other | | हिन्दी | `hi` | one / other |
| Suomi | `fi` | one / other (partitive after numbers other than 1) |
Languages registered with `complete_menus` cover the current menu labels, `tl!` literals, blend Languages registered with `complete_menus` cover the current menu labels, `tl!` literals, blend
mode names, and generated preference labels. A string a catalog lacks shows in English: mode names, and generated preference labels. A string a catalog lacks shows in English: