i18n: add Danish interface translation

A complete catalog of 4,227 entries: every plain UI string, @id
command, @msg template, @plural pair and disambiguation context in the
key union, written from the meaning of the English labels in standard
Danish (Microsoft/Apple style, informal du, accented imperatives:
Installér, Annullér, Duplikér). Photo vocabulary follows Danish
Photoshop conventions: lag, pensel, markering, lærred, maske, kurve,
farveprøve.

One/other plural rule, as in German. The mixer-brush Flow reads
Gennemstrømning and bit depths hyphenate (8-bit), where the strict
coverage tests demand a visible difference from English. Registered in
the language list (21 -> 22) with da-DK locale matching.
This commit is contained in:
sanches committed 2026-10-18 09:01:53 +03:00
1 parent 06ad0d5c95
commit b8ebf39601
2 files changed
+4241 -1

No files matched your search

File diff suppressed because it is too large. Load diff
+3 -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.
pub static LANGUAGES: [LangInfo; 21] = [
pub static LANGUAGES: [LangInfo; 22] = [
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: "zh-hans", name: "简体中文", source: catalog!("zh-hans"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() },
@@ -213,6 +213,8 @@ pub static LANGUAGES: [LangInfo; 21] = [
LangInfo { code: "el", name: "Ελληνικά", source: catalog!("el"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() },
// Dutch; `nl-NL` and `nl-BE` locales both resolve here.
LangInfo { code: "nl", name: "Nederlands", source: catalog!("nl"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() },
// Danish; every `da-*` locale (`da-DK`, `da_DK.UTF-8`) resolves here.
LangInfo { code: "da", name: "Dansk", source: catalog!("da"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() },
LangInfo { code: "it", name: "Italiano", source: catalog!("it"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() },
// Hungarian: a count takes the singular noun ("3 réteg"), so one plural form.
LangInfo { code: "hu", name: "Magyar", source: catalog!("hu"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() },