mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 17:37:14 +00:00
Merge PR #7159: i18n(id): translate the 14 counted status messages missing from Indonesian
crates/ui-egui/src/i18n/mod.rs (tests module): both sides' appended tests kept whole.
This commit is contained in:
commit
7a01dee9f4
2 files changed
+27
No files matched your search
@@ -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)
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 4 and column 47.
|
@@ -928,6 +928,17 @@ mod tests {
|
||||
assert_eq!(trn(lang, 5, "{n} slice", "{n} slices"), "분할 영역 5개");
|
||||
}
|
||||
|
||||
/// 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<usize> = [0, 1, 2, 3, 4, 5, 11, 12, 21, 22, 100, u64::MAX].into_iter().map(plural_cs).collect();
|
||||
|
||||
Reference in new issue
Block a user