i18n: translate the 64 MB style file limit in every complete catalog

The error for a styles file over the load limit reads "the file is larger
than 64 MB". Most complete catalogs translate it through their
`the file is larger than {_1} MB` row; ca, el, fi, id and vi have no such
row, so each gets an exact row next to its 1 MB one. A test checks the
message in every complete-message language.
This commit is contained in:
dotCooCoo committed 2026-11-22 03:42:21 -08:00
1 parent 9c636b9036
commit d261130741
6 files changed
+19

No files matched your search

+1
View File
@@ -7549,6 +7549,7 @@ liquify-list-end {0}, {1} {0} i {1}
@msg the file holds no preferences el fitxer no conté cap preferència
@msg `{key}` names a folder, which preferences files leave out `{key}` indica una carpeta, i els fitxers de preferències no inclouen carpetes
@msg the file is larger than 1 MB el fitxer ocupa més d’1 MB
@msg the file is larger than 64 MB el fitxer ocupa més de 64 MB
@msg give `path` or `data` indiqueu `path` o `data`
@msg `{key}` must be an object `{key}` ha de ser un objecte
@msg `prefs.import` runs on its own, not as a batch step `prefs.import` s’executa sol, no com a pas d’un lot
Can't render this file because it is too large.
+1
View File
@@ -5729,6 +5729,7 @@ digits Malayalam Μαλαγιάλαμ
@msg the file holds no preferences το αρχείο δεν περιέχει προτιμήσεις
@msg `{key}` names a folder, which preferences files leave out το `{key}` ορίζει φάκελο, και τα αρχεία προτιμήσεων δεν περιέχουν φακέλους
@msg the file is larger than 1 MB το αρχείο είναι μεγαλύτερο από 1 MB
@msg the file is larger than 64 MB το αρχείο είναι μεγαλύτερο από 64 MB
@msg give `path` or `data` δώστε `path` ή `data`
@msg `{key}` must be an object το `{key}` πρέπει να είναι αντικείμενο
@msg `prefs.import` runs on its own, not as a batch step το `prefs.import` εκτελείται μόνο του, όχι ως βήμα δέσμης
Can't render this file because it is too large.
+1
View File
@@ -6012,6 +6012,7 @@ liquify-list-end {0}, {1} {0} ja {1}
@msg the file holds no preferences tiedostossa ei ole asetuksia
@msg `{key}` names a folder, which preferences files leave out `{key}` nimeää kansion, eikä asetustiedostoissa ole kansioita
@msg the file is larger than 1 MB tiedosto on suurempi kuin 1 Mt
@msg the file is larger than 64 MB tiedosto on suurempi kuin 64 Mt
@msg give `path` or `data` anna `path` tai `data`
@msg `{key}` must be an object `{key}` on oltava objekti
@msg `prefs.import` runs on its own, not as a batch step `prefs.import` ajetaan yksinään, ei erän vaiheena
Can't render this file because it is too large.
+1
View File
@@ -6090,6 +6090,7 @@ imageTrace Outline Kontur
@msg the file holds no preferences file tidak berisi preferensi
@msg `{key}` names a folder, which preferences files leave out `{key}` menunjuk folder, dan file preferensi tidak menyertakan folder
@msg the file is larger than 1 MB file lebih besar dari 1 MB
@msg the file is larger than 64 MB berkas lebih besar dari 64 MB
@msg give `path` or `data` berikan `path` atau `data`
@msg `{key}` must be an object `{key}` harus berupa objek
@msg `prefs.import` runs on its own, not as a batch step `prefs.import` dijalankan sendiri, bukan sebagai langkah batch
Can't render this file because it is too large.
+14
View File
@@ -3860,6 +3860,20 @@ fn warped_type_note_is_translated() {
}
}
/// The error for a character or paragraph styles file over the 64 MB load limit is translated in
/// every complete catalog, through an exact row or the `the file is larger than {_1} MB` template.
#[test]
fn styles_file_size_limit_is_translated() {
assert_eq!(vectorcraft_engine::cmd::textstyles::MAX_LOAD_BYTES, 64 << 20);
let error = "the file is larger than 64 MB";
for code in COMPLETE_MESSAGES {
let lang = Lang::from_code(code).expect("registered");
let shown = message(lang, error);
assert_ne!(shown, error, "{code}");
assert!(shown.contains("64"), "{code}: {shown}");
}
}
/// The notes a CDR import adds to its warnings are translated in every complete catalog.
/// They are constants, which the scan of message literals doesn't see.
#[test]
+1
View File
@@ -6461,6 +6461,7 @@ liquify-list-end {0}, {1} {0} và {1}
@msg the file holds no preferences tệp không chứa tùy chọn nào
@msg `{key}` names a folder, which preferences files leave out `{key}` chỉ định một thư mục, và tệp tùy chọn không chứa thư mục
@msg the file is larger than 1 MB tệp lớn hơn 1 MB
@msg the file is larger than 64 MB tệp lớn hơn 64 MB
@msg give `path` or `data` hãy cung cấp `path` hoặc `data`
@msg `{key}` must be an object `{key}` phải là một đối tượng
@msg `prefs.import` runs on its own, not as a batch step `prefs.import` chạy riêng, không phải là một bước trong lô
Can't render this file because it is too large.