From dc428e4db61373453d92c3cb580249db5288b67b Mon Sep 17 00:00:00 2001 From: Korg1ch <57859048+Korg1ch@users.noreply.github.com> Date: Sat, 17 Oct 2026 21:32:37 +0300 Subject: [PATCH 1/2] fix(i18n): translate the 14 counted status messages missing from Indonesian --- crates/ui-egui/src/i18n/id.tsv | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index 9e0012bd64..e0e38995b8 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -795,6 +795,22 @@ Split Warp Vertically Bagi Warp Vertikal Statistics… Statistik… Refine Strokes Goresan penyempurnaan +# Counted status and panel messages +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} swatch diekspor ke {file} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} swatch diimpor dari {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} kuas diimpor dari {group} +@plural Played {n} step|Played {n} steps {n} langkah diputar +@plural {n} step|{n} steps {n} langkah +@plural Saved for Web: {n} file|Saved for Web: {n} files Disimpan untuk Web: {n} file +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} Smart Object tertaut yang berubah di disk telah diperbarui +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} layer yang direkam oleh layer comp ini telah dihapus. Perbarui layer comp, atau hapus peringatannya. +@plural {n} plane|{n} planes {n} bidang +@plural {n} preset|{n} presets {n} preset +@plural {n} sample point removed|{n} sample points removed {n} titik sampel dihapus +@plural {n} slice|{n} slices {n} slice +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} peringatan preset kuas lainnya) +@plural {what} with {n} warning|{what} with {n} warnings {what} dengan {n} peringatan + @plural {n} item|{n} items {n} item Auto Otomatis (print to the printer) (cetak ke printer) From 9461446919ffe3083b60e114346a7c4b6d85d9db Mon Sep 17 00:00:00 2001 From: Korg1ch <57859048+Korg1ch@users.noreply.github.com> Date: Sat, 17 Oct 2026 21:32:37 +0300 Subject: [PATCH 2/2] test(i18n): Indonesian counted messages are translated --- crates/ui-egui/src/i18n/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/ui-egui/src/i18n/mod.rs b/crates/ui-egui/src/i18n/mod.rs index 39eaaeed59..ec8c8c3657 100644 --- a/crates/ui-egui/src/i18n/mod.rs +++ b/crates/ui-egui/src/i18n/mod.rs @@ -906,6 +906,17 @@ mod tests { assert_eq!(forms, [2, 0, 1, 1, 2, 2, 2, 2, 1, 2, 2, 1]); } + /// Counted status messages read in Indonesian instead of falling back to English (they were + /// missing from the catalog). + #[test] + fn indonesian_counted_messages_are_translated() { + let lang = Lang::from_code("id").expect("id registered"); + assert_eq!(trn(lang, 3, "Played {n} step", "Played {n} steps"), "3 langkah diputar"); + let brushes = trn(lang, 2, "Imported {n} brush from {group}", "Imported {n} brushes from {group}"); + assert_eq!(fmt(&brushes, &[("group", "Cat Air")]), "2 kuas diimpor dari Cat Air"); + assert_eq!(trn(lang, 5, "{n} slice", "{n} slices"), "5 slice"); + } + #[test] fn czech_plural_rule() { let forms: Vec = [0, 1, 2, 3, 4, 5, 11, 12, 21, 22, 100, u64::MAX].into_iter().map(plural_cs).collect();