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-24 10:14:10 +03:00
1 parent 1c3db2e5c3
commit 5ecaf1d486
8 files changed
+4530 -3

No files matched your search

+1
View File
@@ -26,6 +26,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) |
| `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) |
| `assets/icons/*.svg` except `slice-knife.svg`, `slice-select.svg`, `sampler.svg`, `artboard.svg`, `perspective-crop.svg`, `frame-placeholder.svg`, `ellipse-dashed.svg`, `gradient.svg`, `type-mask.svg`, `type-mask-vertical.svg`, `text-warp.svg`, `clip-below.svg`, `clip-release.svg`, `layer-mask.svg`, `adjustment-layer.svg`, `brush-replace.svg`, `quick-selection.svg`, `eraser-background.svg`, `eraser-magic.svg`, `lasso-magnetic.svg`, `direct-select.svg`, `convert-point.svg`, `pen-add-anchor.svg`, `pen-delete-anchor.svg`, `pen-freeform.svg`, `pen-curvature.svg`, `bandage-sparkle.svg`, `painting-symmetry.svg`, `symmetry-*.svg` and `marquee-{row,column}.svg`, `align-edge-*.svg` and `distribute-*.svg` (113 files; `star-filled.svg` is `star.svg` with a solid fill) | Lucide icons | Lucide Icons and Contributors | <https://github.com/lucide-icons/lucide> (`icons/<name>.svg`; `align-*` are now named `text-align-*` upstream) | ISC, [`assets/icons/LICENSE-lucide.txt`](assets/icons/LICENSE-lucide.txt) | | `assets/icons/*.svg` except `slice-knife.svg`, `slice-select.svg`, `sampler.svg`, `artboard.svg`, `perspective-crop.svg`, `frame-placeholder.svg`, `ellipse-dashed.svg`, `gradient.svg`, `type-mask.svg`, `type-mask-vertical.svg`, `text-warp.svg`, `clip-below.svg`, `clip-release.svg`, `layer-mask.svg`, `adjustment-layer.svg`, `brush-replace.svg`, `quick-selection.svg`, `eraser-background.svg`, `eraser-magic.svg`, `lasso-magnetic.svg`, `direct-select.svg`, `convert-point.svg`, `pen-add-anchor.svg`, `pen-delete-anchor.svg`, `pen-freeform.svg`, `pen-curvature.svg`, `bandage-sparkle.svg`, `painting-symmetry.svg`, `symmetry-*.svg` and `marquee-{row,column}.svg`, `align-edge-*.svg` and `distribute-*.svg` (113 files; `star-filled.svg` is `star.svg` with a solid fill) | Lucide icons | Lucide Icons and Contributors | <https://github.com/lucide-icons/lucide> (`icons/<name>.svg`; `align-*` are now named `text-align-*` upstream) | ISC, [`assets/icons/LICENSE-lucide.txt`](assets/icons/LICENSE-lucide.txt) |
@@ -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.
@@ -40,3 +40,6 @@ PhotoCraft's English labels; no proprietary translation resources were used.
Russian translations: PhotoCraft contributors, original translations of Russian translations: PhotoCraft contributors, original translations of
PhotoCraft's English labels; no proprietary translation resources were used. PhotoCraft's English labels; 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}");
} }
+30 -1
View File
@@ -187,7 +187,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; 22] = [ pub static LANGUAGES: [LangInfo; 23] = [
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() },
@@ -222,6 +222,9 @@ pub static LANGUAGES: [LangInfo; 22] = [
LangInfo { code: "vi", name: "Tiếng Việt", source: catalog!("vi"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() }, LangInfo { code: "vi", name: "Tiếng Việt", source: catalog!("vi"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() },
// Hindi; `hi`, `hi-IN` locales resolve here. // Hindi; `hi`, `hi-IN` locales resolve here.
LangInfo { code: "hi", name: "हिन्दी", source: catalog!("hi"), plural: plural_one_other, complete_menus: false, catalog: OnceLock::new() }, LangInfo { code: "hi", name: "हिन्दी", source: catalog!("hi"), plural: plural_one_other, complete_menus: false, 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 {
@@ -649,6 +652,32 @@ mod tests {
assert_eq!(forms, [2, 0, 1, 1, 2, 2, 2, 2, 2, 0, 1, 1, 2, 2, 0, 2, 2, 2, 0, 1, 2]); assert_eq!(forms, [2, 0, 1, 1, 2, 2, 2, 2, 2, 0, 1, 1, 2, 2, 0, 2, 2, 2, 0, 1, 2]);
} }
#[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");
+2
View File
@@ -101,6 +101,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));
+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,465 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
@@ -92,3 +94,4 @@ engine localization or native review is complete.
| 2026-10-13 | minor | Italian: the `Screen` blend mode read *Schermo* (the display) and is now *Scherma*; the Dodge/Burn/Sponge tool names were already Adobe's (*Scherma*, *Brucia*, *Spugna*) and stay. Pinned by a test | | 2026-10-13 | minor | Italian: the `Screen` blend mode read *Schermo* (the display) and is now *Scherma*; the Dodge/Burn/Sponge tool names were already Adobe's (*Scherma*, *Brucia*, *Spugna*) and stay. Pinned by a test |
| 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-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: