From 4bce6bcf8904d6d6c90b0d0b120a663cd0dfea98 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sun, 15 Nov 2026 10:46:26 -0800 Subject: [PATCH 1/2] i18n: script.run's other parameter refusals are translated The status bar translated script.run's refusals of `answers` but left its other parameter refusals in English. Every language that translates every message now has rows for a `maxFuel` outside its range, `args` nested more than 64 levels deep, `args` that is not an object or is larger than 1 MiB, an empty `path`, a `source` given with `installed`, a `path` that does not name a .js or .jsx file, and neither or both of `path` and `source`. The code names, the place in `args`, the file suffixes and the limits are kept. The command's error stays in English. script_run_param_errors_are_translated checks each refusal, the generic string and switch refusals, and the errors for a script that cannot be read, in every complete-message language. --- crates/ui-egui/src/i18n/ca.tsv | 8 +++ crates/ui-egui/src/i18n/cs.tsv | 8 +++ crates/ui-egui/src/i18n/da.tsv | 8 +++ crates/ui-egui/src/i18n/de.tsv | 8 +++ crates/ui-egui/src/i18n/el.tsv | 8 +++ crates/ui-egui/src/i18n/es.tsv | 8 +++ crates/ui-egui/src/i18n/fi.tsv | 8 +++ crates/ui-egui/src/i18n/fr.tsv | 8 +++ crates/ui-egui/src/i18n/hi.tsv | 8 +++ crates/ui-egui/src/i18n/hu.tsv | 8 +++ crates/ui-egui/src/i18n/it.tsv | 8 +++ crates/ui-egui/src/i18n/ja.tsv | 8 +++ crates/ui-egui/src/i18n/ka.tsv | 8 +++ crates/ui-egui/src/i18n/ko.tsv | 8 +++ crates/ui-egui/src/i18n/nl.tsv | 8 +++ crates/ui-egui/src/i18n/pl.tsv | 8 +++ crates/ui-egui/src/i18n/pt-br.tsv | 8 +++ crates/ui-egui/src/i18n/ru.tsv | 8 +++ crates/ui-egui/src/i18n/sv.tsv | 8 +++ crates/ui-egui/src/i18n/tests.rs | 79 +++++++++++++++++++++++++++++ crates/ui-egui/src/i18n/tr.tsv | 8 +++ crates/ui-egui/src/i18n/uk.tsv | 8 +++ crates/ui-egui/src/i18n/vi.tsv | 8 +++ crates/ui-egui/src/i18n/zh-hans.tsv | 8 +++ crates/ui-egui/src/i18n/zh-hant.tsv | 8 +++ docs/target-app-parity.md | 1 + 26 files changed, 272 insertions(+) diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index 87ce2c3730..23bfbcf449 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -5732,6 +5732,14 @@ digits Malayalam Malaiàlam @msg is a prompt's answer, whose `value` must be a string or null és la resposta d'un prompt, i el seu `value` ha de ser una cadena o null @msg must have `kind` alert, confirm or prompt ha de tenir `kind` alert, confirm o prompt @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` només és per a una execució sense ningú a qui preguntar: a l'aplicació, la persona respon cada quadre de diàleg +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` ha de ser un nombre enter d’1 a {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` està imbricat en més de 64 nivells +@msg `args` must be an object `args` ha de ser un objecte +@msg `args` is larger than 1 MiB `args` ocupa més d'1 MiB +@msg `path` is empty `path` és buit +@msg `installed` takes a `path`, not a `source` `installed` admet un `path`, no un `source` +@msg `path` must name a .js or .jsx file `path` ha d’indicar un fitxer .js o .jsx +@msg give exactly one of `path` and `source` indiqueu exactament un de `path` i `source` @msg Running a script S'està executant un script @msg Copied the script report S’ha copiat l’informe de l’script @msg Copied the link info S’ha copiat la informació de l’enllaç diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index ffc55aad5a..7602bfa269 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -4811,6 +4811,14 @@ imageTrace Outline Obrys @msg the main script engine is new for each run and is never kept, so it cannot be dropped hlavní skriptovací jádro je pro každý běh nové a nikdy se neuchovává, proto je nelze zahodit @msg there is no script engine named {name} skriptovací jádro s názvem {name} neexistuje @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` je jen pro běh, kde se nemá koho zeptat: v aplikaci odpovídá na každý dialog uživatel +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` musí být celé číslo od 1 do {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` je vnořen hlouběji než 64 úrovní +@msg `args` must be an object `args` musí být objekt +@msg `args` is larger than 1 MiB `args` je větší než 1 MiB +@msg `path` is empty `path` je prázdný +@msg `installed` takes a `path`, not a `source` `installed` přijímá `path`, ne `source` +@msg `path` must name a .js or .jsx file `path` musí označovat soubor .js nebo .jsx +@msg give exactly one of `path` and `source` zadejte právě jedno z `path` a `source` @msg Running a script Běží skript @msg Copied the script report Zpráva o skriptu zkopírována @msg Copied the link info Informace o propojení zkopírovány diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index edce184e8e..50a086776e 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -157,6 +157,14 @@ @msg is a prompt's answer, whose `value` must be a string or null er svaret på en prompt, hvis `value` skal være en streng eller null @msg must have `kind` alert, confirm or prompt skal have `kind` alert, confirm eller prompt @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` er kun til en kørsel uden nogen at spørge: i appen besvarer personen hver dialog +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` skal være et heltal fra 1 til {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` er indlejret mere end 64 niveauer dybt +@msg `args` must be an object `args` skal være et objekt +@msg `args` is larger than 1 MiB `args` er større end 1 MiB +@msg `path` is empty `path` er tom +@msg `installed` takes a `path`, not a `source` `installed` tager en `path`, ikke en `source` +@msg `path` must name a .js or .jsx file `path` skal angive en .js- eller .jsx-fil +@msg give exactly one of `path` and `source` angiv præcis én af `path` og `source` @msg Running a script Kører et script @msg Data Recovery can't keep copies in {path}: {e} Datagendannelse kan ikke opbevare kopier i {path}: {e} @msg Plug-ins can't be loaded from {path}: {e} Plug-ins kan ikke indlæses fra {path}: {e} diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index c456cd5bc1..07d0d659c0 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -7274,6 +7274,14 @@ breakText Glyphs Glyphen @msg `answers` has more than {MAX_ANSWERS} answers `answers` hat mehr als {MAX_ANSWERS} Antworten @msg `answers` is larger than 1 MiB `answers` ist größer als 1 MiB @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` ist nur für einen Lauf ohne jemanden, der gefragt werden kann: In der App beantwortet die Person jeden Dialog +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` muss eine ganze Zahl von 1 bis {_1} sein +@msg `args{place}` is nested more than 64 levels deep `args{place}` ist mehr als 64 Ebenen tief verschachtelt +@msg `args` must be an object `args` muss ein Objekt sein +@msg `args` is larger than 1 MiB `args` ist größer als 1 MiB +@msg `path` is empty `path` ist leer +@msg `installed` takes a `path`, not a `source` `installed` nimmt einen `path`, keine `source` +@msg `path` must name a .js or .jsx file `path` muss eine .js- oder .jsx-Datei angeben +@msg give exactly one of `path` and `source` geben Sie genau eines von `path` und `source` an @msg `answers` must be a list of answers `answers` muss eine Liste von Antworten sein @msg `artboard` must be the index of an artboard of the document `artboard` muss der Index einer Zeichenfläche des Dokuments sein @msg `artboardsAt` must be [x, y] `artboardsAt` muss [x, y] sein diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 4e30f47e3f..1cbb45455c 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -2508,6 +2508,14 @@ axis Both Και τα δύο @msg is a prompt's answer, whose `value` must be a string or null είναι απάντηση σε prompt, οπότε το `value` πρέπει να είναι συμβολοσειρά ή null @msg must have `kind` alert, confirm or prompt πρέπει να έχει `kind` alert, confirm ή prompt @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog το `answers` είναι μόνο για εκτέλεση χωρίς κανέναν να ερωτηθεί: στην εφαρμογή, το άτομο απαντά σε κάθε παράθυρο διαλόγου +@msg `maxFuel` must be a whole number from 1 to {_1} το `maxFuel` πρέπει να είναι ακέραιος από 1 έως {_1} +@msg `args{place}` is nested more than 64 levels deep το `args{place}` έχει ένθεση μεγαλύτερη των 64 επιπέδων +@msg `args` must be an object το `args` πρέπει να είναι αντικείμενο +@msg `args` is larger than 1 MiB το `args` είναι μεγαλύτερο από 1 MiB +@msg `path` is empty το `path` είναι κενό +@msg `installed` takes a `path`, not a `source` το `installed` δέχεται `path`, όχι `source` +@msg `path` must name a .js or .jsx file το `path` πρέπει να ορίζει αρχείο .js ή .jsx +@msg give exactly one of `path` and `source` δώστε ακριβώς ένα από τα `path` και `source` @msg Running a script Εκτελείται σενάριο @msg Copied the script report Η αναφορά του σεναρίου αντιγράφηκε @msg Copied the link info Οι πληροφορίες συνδέσμου αντιγράφηκαν diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 6719052a94..cde0723bd2 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -4503,6 +4503,14 @@ axis Both Ambos @msg is a prompt's answer, whose `value` must be a string or null es la respuesta de un prompt, cuyo `value` debe ser una cadena o null @msg must have `kind` alert, confirm or prompt debe tener `kind` alert, confirm o prompt @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` solo es para una ejecución sin nadie a quien preguntar: en la aplicación, la persona responde cada cuadro de diálogo +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` debe ser un número entero de 1 a {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` está anidado a más de 64 niveles +@msg `args` must be an object `args` debe ser un objeto +@msg `args` is larger than 1 MiB `args` ocupa más de 1 MiB +@msg `path` is empty `path` está vacío +@msg `installed` takes a `path`, not a `source` `installed` admite un `path`, no un `source` +@msg `path` must name a .js or .jsx file `path` debe indicar un archivo .js o .jsx +@msg give exactly one of `path` and `source` indique exactamente uno de `path` y `source` @msg Running a script Ejecutando un script @msg Copied the script report Se copió el informe del script @msg Copied the link info Se copió la información del vínculo diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index 2ed3c5e427..7507d1b23d 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -4735,6 +4735,14 @@ imageTrace Outline Ääriviiva @msg is a prompt's answer, whose `value` must be a string or null on prompt-vastaus, joten sen `value`-arvon on oltava merkkijono tai null @msg must have `kind` alert, confirm or prompt `kind`-arvon on oltava alert, confirm tai prompt @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` on vain ajolle, jossa ei ole ketään kysyttävää: sovelluksessa henkilö vastaa jokaiseen valintaikkunaan +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` on oltava kokonaisluku väliltä 1–{_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` on sisäkkäin yli 64 tason syvyydellä +@msg `args` must be an object `args` on oltava objekti +@msg `args` is larger than 1 MiB `args` on suurempi kuin 1 MiB +@msg `path` is empty `path` on tyhjä +@msg `installed` takes a `path`, not a `source` `installed` ottaa `path`-arvon, ei `source`-arvoa +@msg `path` must name a .js or .jsx file `path` on oltava .js- tai .jsx-tiedosto +@msg give exactly one of `path` and `source` anna tasan yksi arvoista `path` ja `source` @msg Running a script Suoritetaan komentosarjaa @msg Copied the script report Komentosarjan raportti kopioitiin @msg Copied the link info Linkin tiedot kopioitiin diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 6a735eb1eb..c925ae7769 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -4481,6 +4481,14 @@ axis Both Les deux @msg `name` must be the name of a script engine `name` doit être le nom d'un moteur de script @msg the main script engine is new for each run and is never kept, so it cannot be dropped le moteur de script principal est nouveau à chaque exécution et n'est jamais conservé, il ne peut donc pas être supprimé @msg there is no script engine named {name} il n'y a aucun moteur de script nommé {name} +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` doit être un nombre entier de 1 à {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` est imbriqué sur plus de 64 niveaux +@msg `args` must be an object `args` doit être un objet +@msg `args` is larger than 1 MiB `args` dépasse 1 Mio +@msg `path` is empty `path` est vide +@msg `installed` takes a `path`, not a `source` `installed` prend un `path`, pas un `source` +@msg `path` must name a .js or .jsx file `path` doit désigner un fichier .js ou .jsx +@msg give exactly one of `path` and `source` indiquez exactement un paramètre parmi `path` et `source` @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` est réservé à une exécution sans personne à qui demander : dans l'application, la personne répond à chaque boîte de dialogue @msg Running a script Exécution d’un script @msg Copied the script report Rapport du script copié diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index aedec9da73..14a7b27d69 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -6846,6 +6846,14 @@ antiAlias Sharp शार्प @msg is a prompt's answer, whose `value` must be a string or null यह prompt का उत्तर है, इसलिए इसका `value` स्ट्रिंग या null होना चाहिए @msg must have `kind` alert, confirm or prompt `kind` alert, confirm या prompt होना चाहिए @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` केवल ऐसे रन के लिए है जिसमें पूछने के लिए कोई नहीं है: ऐप में, व्यक्ति हर डायलॉग का उत्तर देता है +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` 1 से {_1} तक की पूर्ण संख्या होनी चाहिए +@msg `args{place}` is nested more than 64 levels deep `args{place}` 64 से अधिक स्तर गहराई तक नेस्ट किया गया है +@msg `args` must be an object `args` एक ऑब्जेक्ट होना चाहिए +@msg `args` is larger than 1 MiB `args` 1 MiB से बड़ा है +@msg `path` is empty `path` खाली है +@msg `installed` takes a `path`, not a `source` `installed` एक `path` लेता है, `source` नहीं +@msg `path` must name a .js or .jsx file `path` में किसी .js या .jsx फ़ाइल का नाम होना चाहिए +@msg give exactly one of `path` and `source` `path` और `source` में से ठीक एक दें @msg Running a script स्क्रिप्ट चल रही है @msg Copied the script report Copied स्क्रिप्ट रिपोर्ट @msg Copied the link info लिंक जानकारी कॉपी की गई diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index 80a39e7c70..c457ccf3b8 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -5314,6 +5314,14 @@ imageTrace Outline Körvonal @msg there is no script engine named {name} nincs {name} nevű parancsfájlmotor @msg `answers[{i}]` {e} `answers[{i}]`: {e} @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog az `answers` csak olyan futtatáshoz való, ahol nincs kit megkérdezni: az alkalmazásban minden párbeszédpanelre a felhasználó válaszol +@msg `maxFuel` must be a whole number from 1 to {_1} a `maxFuel` értéke 1 és {_1} közötti egész szám lehet +@msg `args{place}` is nested more than 64 levels deep az `args{place}` 64 szintnél mélyebben van egymásba ágyazva +@msg `args` must be an object az `args` értékének objektumnak kell lennie +@msg `args` is larger than 1 MiB `args`: nagyobb 1 MiB-nál +@msg `path` is empty a `path` üres +@msg `installed` takes a `path`, not a `source` az `installed` `path` értéket vár, nem `source` értéket +@msg `path` must name a .js or .jsx file a `path` értékének .js vagy .jsx fájlt kell megadnia +@msg give exactly one of `path` and `source` pontosan egyet adj meg ezek közül: `path`, `source` @msg Running a script Parancsfájl futtatása @msg Copied the script report Szkriptjelentés másolva @msg Copied the link info Csatolás adatai másolva diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 66d162f02c..1d2b7bbfd9 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -7313,6 +7313,14 @@ breakText Glyphs Glifi @msg `answers` has more than {MAX_ANSWERS} answers `answers` ha più di {MAX_ANSWERS} risposte @msg `answers` is larger than 1 MiB `answers` supera 1 MiB @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` è solo per un'esecuzione senza nessuno a cui chiedere: nell'app, la persona risponde a ogni finestra di dialogo +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` deve essere un numero intero da 1 a {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` è annidato per più di 64 livelli +@msg `args` must be an object `args` deve essere un oggetto +@msg `args` is larger than 1 MiB `args` supera 1 MiB +@msg `path` is empty `path` è vuoto +@msg `installed` takes a `path`, not a `source` `installed` accetta un `path`, non un `source` +@msg `path` must name a .js or .jsx file `path` deve indicare un file .js o .jsx +@msg give exactly one of `path` and `source` indica esattamente uno tra `path` e `source` @msg `answers` must be a list of answers `answers` deve essere un elenco di risposte @msg `artboard` must be the index of an artboard of the document `artboard` deve essere l'indice di una tavola da disegno del documento @msg `artboardsAt` must be [x, y] `artboardsAt` deve essere [x, y] diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index e6fcd47ccc..d736a982fa 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -5310,6 +5310,14 @@ swatch Bright Violet ビビッドバイオレット @msg the main script engine is new for each run and is never kept, so it cannot be dropped メインのスクリプトエンジンは実行ごとに新しく作られ、保持されないため、破棄できません @msg there is no script engine named {name} {name} という名前のスクリプトエンジンはありません @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` は尋ねる相手がいない実行専用です。アプリでは、各ダイアログに本人が回答します +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` には 1 から {_1} までの整数を指定してください +@msg `args{place}` is nested more than 64 levels deep `args{place}` の入れ子が 64 階層を超えています +@msg `args` must be an object `args` はオブジェクトである必要があります +@msg `args` is larger than 1 MiB `args` が 1 MiB を超えています +@msg `path` is empty `path` が空です +@msg `installed` takes a `path`, not a `source` `installed` には `source` ではなく `path` を指定してください +@msg `path` must name a .js or .jsx file `path` には .js または .jsx ファイルを指定してください +@msg give exactly one of `path` and `source` `path` と `source` のうち 1 つだけを指定してください @msg Running a script スクリプトを実行中 @msg Copied the script report スクリプトのレポートをコピーしました @msg Copied the link info リンク情報をコピーしました diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 9475bb917c..11b40c4ab7 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -7806,6 +7806,14 @@ imageTrace Outline კონტური @msg the main script engine is new for each run and is never kept, so it cannot be dropped მთავარი სკრიპტის ძრავა ყოველი გაშვებისთვის ახალია და არასოდეს ინახება, ამიტომ მისი მოცილება შეუძლებელია @msg there is no script engine named {name} სკრიპტის ძრავა სახელით {name} არ არსებობს @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` მხოლოდ ისეთი გაშვებისთვისაა, სადაც შესაკითხი არავინაა: აპში თითოეულ დიალოგს ადამიანი პასუხობს +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` უნდა იყოს მთელი რიცხვი 1-დან {_1}-მდე +@msg `args{place}` is nested more than 64 levels deep `args{place}` 64 დონეზე ღრმადაა ჩადგმული +@msg `args` must be an object `args` უნდა იყოს ობიექტი +@msg `args` is larger than 1 MiB `args` 1 MiB-ზე დიდია +@msg `path` is empty `path` ცარიელია +@msg `installed` takes a `path`, not a `source` `installed` იღებს `path`-ს და არა `source`-ს +@msg `path` must name a .js or .jsx file `path` უნდა ასახელებდეს .js ან .jsx ფაილს +@msg give exactly one of `path` and `source` მიუთითეთ ზუსტად ერთი: `path` ან `source` @msg Running a script სკრიპტი მუშაობს @msg Copied the script report კოპირებულია სკრიპტის ანგარიში @msg Copied the link info კოპირებულია ბმულის ინფორმაცია diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index ea9a413f88..da79b68a1e 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -5237,6 +5237,14 @@ theme Appearance 외관 @msg the main script engine is new for each run and is never kept, so it cannot be dropped 기본 스크립트 엔진은 실행마다 새로 만들어지고 유지되지 않으므로 삭제할 수 없습니다 @msg there is no script engine named {name} 이름이 {name}인 스크립트 엔진이 없습니다 @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers`는 물어볼 사람이 없는 실행에만 쓰입니다. 앱에서는 사람이 각 대화 상자에 답합니다 +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel`은(는) 1에서 {_1} 사이의 정수여야 합니다 +@msg `args{place}` is nested more than 64 levels deep `args{place}`이(가) 64단계보다 깊게 중첩되어 있습니다 +@msg `args` must be an object `args`은(는) 개체여야 합니다 +@msg `args` is larger than 1 MiB `args`이(가) 1 MiB보다 큽니다 +@msg `path` is empty `path`이(가) 비어 있습니다 +@msg `installed` takes a `path`, not a `source` `installed`에는 `source`가 아니라 `path`를 지정하세요 +@msg `path` must name a .js or .jsx file `path`은(는) .js 또는 .jsx 파일을 가리켜야 합니다 +@msg give exactly one of `path` and `source` `path`, `source` 중 정확히 하나를 지정하세요 @msg Running a script 스크립트 실행 중 @msg Copied the script report 스크립트 보고서를 복사했습니다 @msg Copied the link info 링크 정보를 복사했습니다 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index bf8fd86aa3..3ebcb13714 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -146,6 +146,14 @@ @msg the main script engine is new for each run and is never kept, so it cannot be dropped de hoofdscriptengine is bij elke uitvoering nieuw en wordt nooit bewaard, dus kan hij niet worden verwijderd @msg there is no script engine named {name} er is geen scriptengine met de naam {name} @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` is alleen voor een uitvoering zonder iemand om te vragen: in de app beantwoordt de persoon elk dialoogvenster +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` moet een geheel getal van 1 tot {_1} zijn +@msg `args{place}` is nested more than 64 levels deep `args{place}` is meer dan 64 niveaus diep genest +@msg `args` must be an object `args` moet een object zijn +@msg `args` is larger than 1 MiB `args` is groter dan 1 MiB +@msg `path` is empty `path` is leeg +@msg `installed` takes a `path`, not a `source` `installed` neemt een `path`, geen `source` +@msg `path` must name a .js or .jsx file `path` moet een .js- of .jsx-bestand aanwijzen +@msg give exactly one of `path` and `source` geef precies een van `path` en `source` @msg Running a script Er wordt een script uitgevoerd @msg Data Recovery can't keep copies in {path}: {e} Gegevensherstel kan geen kopieën bewaren in {path}: {e} @msg Plug-ins can't be loaded from {path}: {e} Plug-ins kunnen niet worden geladen uit {path}: {e} diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index da2304edad..fb08b091c6 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -7548,6 +7548,14 @@ breakText Glyphs Glify @msg `answers` has more than {MAX_ANSWERS} answers `answers` zawiera więcej niż {MAX_ANSWERS} odpowiedzi @msg `answers` is larger than 1 MiB `answers` ma rozmiar większy niż 1 MiB @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` służy tylko do uruchomienia, w którym nie ma kogo zapytać: w aplikacji na każde okno dialogowe odpowiada użytkownik +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` musi być liczbą całkowitą od 1 do {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` jest zagnieżdżone głębiej niż na 64 poziomy +@msg `args` must be an object `args` musi być obiektem +@msg `args` is larger than 1 MiB `args` ma rozmiar większy niż 1 MiB +@msg `path` is empty `path` jest puste +@msg `installed` takes a `path`, not a `source` `installed` przyjmuje `path`, a nie `source` +@msg `path` must name a .js or .jsx file `path` musi wskazywać plik .js lub .jsx +@msg give exactly one of `path` and `source` podaj dokładnie jedno z: `path` i `source` @msg `answers` must be a list of answers `answers` musi być listą odpowiedzi @msg `artboard` must be the index of an artboard of the document `artboard` musi być indeksem obszaru kompozycji dokumentu @msg `artboardsAt` must be [x, y] `artboardsAt` musi mieć postać [x, y] diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index 772a72544a..d4658cd8be 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -7927,6 +7927,14 @@ swatch Yellow Green Verde-amarelado @msg `answers` has more than {MAX_ANSWERS} answers `answers` tem mais de {MAX_ANSWERS} respostas @msg `answers` is larger than 1 MiB `answers` tem mais de 1 MiB @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` é só para uma execução sem ninguém a quem perguntar: no app, a pessoa responde a cada caixa de diálogo +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` deve ser um número inteiro de 1 a {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` está aninhado em mais de 64 níveis +@msg `args` must be an object `args` deve ser um objeto +@msg `args` is larger than 1 MiB `args` tem mais de 1 MiB +@msg `path` is empty `path` está vazio +@msg `installed` takes a `path`, not a `source` `installed` aceita um `path`, não um `source` +@msg `path` must name a .js or .jsx file `path` deve indicar um arquivo .js ou .jsx +@msg give exactly one of `path` and `source` informe exatamente um de `path` e `source` @msg `answers` must be a list of answers `answers` deve ser uma lista de respostas @msg `artboard` must be the index of an artboard of the document `artboard` deve ser o índice de uma prancheta do documento @msg `artboardsAt` must be [x, y] `artboardsAt` deve ser [x, y] diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 02cdb08e31..f044e673d4 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -4540,6 +4540,14 @@ axis Both Оба @msg is a prompt's answer, whose `value` must be a string or null является ответом на prompt, поэтому его `value` должно быть строкой или null @msg must have `kind` alert, confirm or prompt должен иметь `kind` alert, confirm или prompt @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` предназначен только для запуска, в котором некого спросить: в приложении человек сам отвечает на каждое диалоговое окно +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` должен быть целым числом от 1 до {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` вложен глубже 64 уровней +@msg `args` must be an object `args` должен быть объектом +@msg `args` is larger than 1 MiB `args` больше 1 МиБ +@msg `path` is empty параметр `path` пуст +@msg `installed` takes a `path`, not a `source` `installed` принимает `path`, а не `source` +@msg `path` must name a .js or .jsx file `path` должен указывать на файл .js или .jsx +@msg give exactly one of `path` and `source` укажите ровно одно из: `path` и `source` @msg Running a script Выполняется скрипт @msg Copied the script report Отчёт о сценарии скопирован @msg Copied the link info Сведения о связи скопированы diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index d4d0d0a4b5..e15f6cf44b 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -4414,6 +4414,14 @@ axis Both Båda @msg is a prompt's answer, whose `value` must be a string or null är svaret på en prompt, vars `value` måste vara en sträng eller null @msg must have `kind` alert, confirm or prompt måste ha `kind` alert, confirm eller prompt @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` är bara för en körning utan någon att fråga: i appen svarar personen på varje dialogruta +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` måste vara ett heltal från 1 till {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` är kapslat mer än 64 nivåer djupt +@msg `args` must be an object `args` måste vara ett objekt +@msg `args` is larger than 1 MiB `args` är större än 1 MiB +@msg `path` is empty `path` är tomt +@msg `installed` takes a `path`, not a `source` `installed` tar en `path`, inte en `source` +@msg `path` must name a .js or .jsx file `path` måste ange en .js- eller .jsx-fil +@msg give exactly one of `path` and `source` ange exakt en av `path` och `source` @msg Running a script Kör ett skript @msg Copied the script report Kopierade skriptrapporten @msg Copied the link info Kopierade länkinfo diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index b632e5cac3..5912e7dff5 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -3903,6 +3903,85 @@ fn script_answers_errors_are_translated() { } } +/// `script.run`'s other refusals of its parameters (`maxFuel`, `args`, `path`, `source`, +/// `installed`, `name`) and its errors for a script it cannot read are translated in every language +/// that translates every message, with the code names, the place in `args`, the file suffixes, the +/// limits and the file's path kept. The command's error stays in English. +#[test] +fn script_run_param_errors_are_translated() { + use serde_json::{Value, json}; + use vectorcraft_engine::{EngineError, Session}; + let refusals = [ + "`maxFuel` must be a whole number from 1 to {_1}", + "`args{place}` is nested more than 64 levels deep", + "`args` must be an object", + "`args` is larger than 1 MiB", + "`path` is empty", + "`installed` takes a `path`, not a `source`", + "`path` must name a .js or .jsx file", + "give exactly one of `path` and `source`", + ]; + let scanned = message_literals(); + for template in refusals { + assert!(scanned.contains(template), "{template}"); + } + let dir = vectorcraft_testkit::TempDir::new("i18n-script-run-params"); + let not_text = dir.join("not-text.js"); + std::fs::write(¬_text, [0x66, 0xff, 0xfe]).expect("write"); + let folder = dir.join("folder.js"); + std::fs::create_dir(&folder).expect("folder"); + let (not_text, folder) = (not_text.to_string_lossy().into_owned(), folder.to_string_lossy().into_owned()); + let mut deep = json!(1); + for _ in 0..70 { + deep = json!([deep]); + } + let fuel = vectorcraft_engine::script::MAX_FUEL; + // Each call, with the English message its parameter refusal gives, or `None` for an error that + // is not one. + let bad: Vec<(Value, Option)> = vec![ + (json!({"source": "1", "maxFuel": 0}), Some(format!("`maxFuel` must be a whole number from 1 to {fuel}"))), + (json!({"source": "1", "maxFuel": fuel + 1}), Some(format!("`maxFuel` must be a whole number from 1 to {fuel}"))), + (json!({"source": "1", "args": {"a": deep}}), Some(format!("`args.a{}` is nested more than 64 levels deep", "[0]".repeat(64)))), + (json!({"source": "1", "args": [1]}), Some("`args` must be an object".into())), + (json!({"source": "1", "args": {"x": "x".repeat(1 << 20)}}), Some("`args` is larger than 1 MiB".into())), + (json!({"path": ""}), Some("`path` is empty".into())), + (json!({"source": "1", "installed": true}), Some("`installed` takes a `path`, not a `source`".into())), + (json!({"path": "notes.txt"}), Some("`path` must name a .js or .jsx file".into())), + (json!({}), Some("give exactly one of `path` and `source`".into())), + (json!({"path": "a.js", "source": "1"}), Some("give exactly one of `path` and `source`".into())), + (json!({"path": 1}), Some("`path` must be a string".into())), + (json!({"source": "1", "name": false}), Some("`name` must be a string".into())), + (json!({"source": "1", "installed": "yes"}), Some("`installed` must be true or false".into())), + (json!({"path": "built.jsxbin"}), None), + (json!({"source": "x".repeat(vectorcraft_engine::script::MAX_SOURCE_BYTES + 1)}), None), + (json!({"path": "listed.js", "installed": true}), None), + (json!({"path": not_text}), None), + (json!({"path": folder}), None), + ]; + let mut s = Session::new(); + for (params, want) in bad { + let e = s.execute("script.run", ¶ms).unwrap_err(); + let line = e.to_string(); + let inner = match (&e, &want) { + (EngineError::BadParams { cmd, msg }, Some(want)) if cmd == "script.run" && msg == want => want.clone(), + (EngineError::Other(msg), None) => msg.clone(), + _ => panic!("{params:.80}: {e}"), + }; + // The code names and the place in `args`, the numbers, the file suffixes and the path. + let mut kept: Vec<&str> = inner.split('`').skip(1).step_by(2).collect(); + kept.extend(inner.split(|c: char| !c.is_ascii_digit()).filter(|n| !n.is_empty())); + kept.extend([".jsx", ".js", not_text.as_str(), folder.as_str()].into_iter().filter(|k| inner.contains(*k))); + for code in COMPLETE_MESSAGES { + let lang = Lang::from_code(code).expect("registered"); + let shown = message(lang, &line); + let translated = message(lang, &inner); + assert_ne!(translated, inner, "{code}"); + assert!(shown.contains(&translated) && !shown.contains("invalid parameters"), "{code}: {shown}"); + assert!(kept.iter().all(|k| shown.contains(k)), "{code}: {shown}"); + } + } +} + /// The errors of a command's parameter schema are translated in every language that translates /// every message, with the parameter's path and the refused value kept. #[test] diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index cd471d910c..ca023705b0 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -4258,6 +4258,14 @@ axis Both Her İkisi @msg the main script engine is new for each run and is never kept, so it cannot be dropped ana betik motoru her çalıştırmada yenidir ve hiç saklanmaz, bu yüzden bırakılamaz @msg there is no script engine named {name} {name} adlı bir betik motoru yok @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` yalnızca sorulacak kimsenin olmadığı bir çalıştırma içindir: uygulamada her iletişim kutusunu kişi yanıtlar +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` 1 ile {_1} arasında bir tam sayı olmalıdır +@msg `args{place}` is nested more than 64 levels deep `args{place}` 64 düzeyden daha derin iç içe geçmiş +@msg `args` must be an object `args` bir nesne olmalıdır +@msg `args` is larger than 1 MiB `args` 1 MiB'tan büyük +@msg `path` is empty `path` boş +@msg `installed` takes a `path`, not a `source` `installed` bir `path` alır, `source` almaz +@msg `path` must name a .js or .jsx file `path` bir .js veya .jsx dosyasını adlandırmalıdır +@msg give exactly one of `path` and `source` `path` ve `source` değerlerinden tam olarak birini verin @msg Running a script Betik çalıştırılıyor @msg Copied the script report Komut dosyası raporu kopyalandı @msg Copied the link info Bağlantı bilgisi kopyalandı diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index bc0ffe5928..76914dcdde 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -7470,6 +7470,14 @@ breakText Glyphs Гліфи @msg `answers` has more than {MAX_ANSWERS} answers `answers` містить понад {MAX_ANSWERS} відповідей @msg `answers` is larger than 1 MiB `answers` більший за 1 МіБ @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` призначений лише для запуску, у якому немає кого запитати: у застосунку людина сама відповідає на кожне діалогове вікно +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` має бути цілим числом від 1 до {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` має вкладеність понад 64 рівні +@msg `args` must be an object `args` має бути об’єктом +@msg `args` is larger than 1 MiB `args` більший за 1 МіБ +@msg `path` is empty параметр `path` порожній +@msg `installed` takes a `path`, not a `source` `installed` приймає `path`, а не `source` +@msg `path` must name a .js or .jsx file `path` має вказувати на файл .js або .jsx +@msg give exactly one of `path` and `source` укажіть рівно одне з: `path`, `source` @msg `answers` must be a list of answers `answers` має бути списком відповідей @msg `artboard` must be the index of an artboard of the document `artboard` має бути індексом монтажної області документа @msg `artboardsAt` must be [x, y] `artboardsAt` має бути [x, y] diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index a8543b90ae..9e439250c9 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -4979,6 +4979,14 @@ theme Appearance Giao diện @msg is a prompt's answer, whose `value` must be a string or null là câu trả lời cho prompt, nên `value` phải là chuỗi hoặc null @msg must have `kind` alert, confirm or prompt phải có `kind` là alert, confirm hoặc prompt @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` chỉ dành cho lần chạy không có ai để hỏi: trong ứng dụng, người dùng trả lời từng hộp thoại +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` phải là số nguyên từ 1 đến {_1} +@msg `args{place}` is nested more than 64 levels deep `args{place}` lồng sâu hơn 64 cấp +@msg `args` must be an object `args` phải là một đối tượng +@msg `args` is larger than 1 MiB `args` lớn hơn 1 MiB +@msg `path` is empty `path` trống +@msg `installed` takes a `path`, not a `source` `installed` nhận `path`, không nhận `source` +@msg `path` must name a .js or .jsx file `path` phải chỉ đến tệp .js hoặc .jsx +@msg give exactly one of `path` and `source` hãy cung cấp đúng một trong `path` và `source` @msg Running a script Đang chạy tập lệnh @msg Copied the script report Đã sao chép báo cáo script @msg Copied the link info Đã sao chép thông tin liên kết diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index 04dedf4229..70d4f7b4bf 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -7529,6 +7529,14 @@ breakText Glyphs 字形 @msg `answers` has more than {MAX_ANSWERS} answers `answers` 中的回答超过 {MAX_ANSWERS} 个 @msg `answers` is larger than 1 MiB `answers` 大于 1 MiB @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` 仅用于无人可问的运行:在应用中,由用户回答每个对话框 +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` 必须是 1 到 {_1} 之间的整数 +@msg `args{place}` is nested more than 64 levels deep `args{place}` 的嵌套超过 64 层 +@msg `args` must be an object `args` 必须是对象 +@msg `args` is larger than 1 MiB `args` 大于 1 MiB +@msg `path` is empty `path` 为空 +@msg `installed` takes a `path`, not a `source` `installed` 需要 `path`,而不是 `source` +@msg `path` must name a .js or .jsx file `path` 必须指向 .js 或 .jsx 文件 +@msg give exactly one of `path` and `source` `path` 和 `source` 中必须且只能给出一个 @msg `answers` must be a list of answers `answers` 必须是回答的列表 @msg `artboard` must be the index of an artboard of the document `artboard` 必须是文档中某个画板的索引 @msg `artboardsAt` must be [x, y] `artboardsAt` 必须是 [x, y] diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 7e3cb24439..c99dc72947 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -2636,6 +2636,14 @@ file-filter Templates 範本 @msg the main script engine is new for each run and is never kept, so it cannot be dropped 主指令碼引擎在每次執行時都是新的,從不保留,因此無法捨棄 @msg there is no script engine named {name} 沒有名為 {name} 的指令碼引擎 @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` 僅適用於沒有人可詢問的執行:在應用程式中,由使用者回答每個對話框 +@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` 必須是 1 到 {_1} 之間的整數 +@msg `args{place}` is nested more than 64 levels deep `args{place}` 的巢狀層次超過 64 層 +@msg `args` must be an object `args` 必須是物件 +@msg `args` is larger than 1 MiB `args` 大於 1 MiB +@msg `path` is empty `path` 為空 +@msg `installed` takes a `path`, not a `source` `installed` 需要 `path`,而不是 `source` +@msg `path` must name a .js or .jsx file `path` 必須指向 .js 或 .jsx 檔案 +@msg give exactly one of `path` and `source` `path` 和 `source` 請只提供其中一個 @msg Running a script 正在執行指令碼 @msg Copied the script report 已複製指令碼報告 @msg Copied the link info 已複製連結資訊 diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index eed107bf24..a4cf38be71 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -953,6 +953,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur - The status bar translates the limits a plug-in run can exceed (its instruction, time and memory budgets and its output size) and the error of a plug-in removal that leaves the plug-in's grant in the plug-in store, in every language that translates every message. The untranslated-strings report also lists messages that an error or a status takes from a `&str` constant (`plugin_limit_errors_are_translated`, `message_scan_reads_messages_held_in_constants`). - The status bar translates the plug-in host's other errors (manifest, module and run checks, the output an importer, exporter or effect returns, and the approval a plug-in's permissions need) in every language that translates every message. A JSON object or array inside a message stays as written, and a message that wraps another one, such as `plug-in manifest: {0}`, is matched by its own row before a row that starts with a placeholder. The reasons inside these errors (what is wrong with a parameter's spec or dialog keys, the value a parameter needs, what is wrong with an object, stroke, paint or effect in a plug-in's output) are translated with them, and the untranslated-strings report lists the reasons the plug-in host's error helpers take (`plugin_messages_are_translated_in_every_complete_catalog`, `plugin_errors_translate_with_their_values`, `plugin_error_reasons_are_translated_with_the_error`, `message_scan_reads_plugin_helpers`, `templates_that_start_with_text_match_first`). - The status bar translates `script.run`'s refusals of `answers` in every language that translates every message: a value that is not a list, more than 10,000 answers, more than 1 MiB, an answer at an index that is not an object, does not have exactly `kind` and `value`, has a `value` its kind of dialog does not take, holds a prompt's text longer than 16 KiB or has an unknown `kind`, and `answers` given to a run in the app. The index, the counts and the code names are shown as they are, and the command's error stays in English. The untranslated-strings report also lists the refusals of `script.run`'s parameters (`script_answers_errors_are_translated`, `message_scan_reads_script_run_param_refusals`). + - The status bar also translates `script.run`'s other refusals of its parameters in every language that translates every message: a `maxFuel` outside 1 to 100,000,000,000, `args` nested more than 64 levels deep (with the place in `args`), `args` that is not an object or is larger than 1 MiB, an empty `path`, a `source` given with `installed`, a `path` that does not name a .js or .jsx file, and neither or both of `path` and `source`. The code names, the place in `args`, the file suffixes and the limits are shown as they are, and the command's error stays in English (`script_run_param_errors_are_translated`). - The Japanese catalog (`crates/ui-egui/src/i18n/ja.tsv`) has 3,562 `@msg` rows and 49 `@msgplural` rows (counted 2026-11-14). The untranslated report (`untranslated_report`) lists 98 status and error messages in the sources that have no Japanese row: 77 that every complete-message language lacks, and 21 more. Open #7211 translates 34 of them, among them the composite font errors, and open #7116 translates the justification order error. The status bar does not use the rows for ``unknown parameter `{within}{key}`; {why}`` and `{name} must be {lo}–{hi}{unit} (got {v})`, because a message with two placeholders in a row cannot be matched (`Template::parse` in `crates/ui-egui/src/i18n/catalog.rs`). The row for `{k} has control characters{_1}` does not match the File Info error for a multi-line field, where the last placeholder is empty. A native speaker has not reviewed the wording. - A status or error message whose braces are literal, such as a plug-in's `expected {"objects": [...]}` or a command's `quotes must be {double?, single?}`, is translated only when the whole message matches its row: the row writes those braces doubled and has no placeholder, so it no longer replaces a different message that starts with the same words, such as a JSON reason `expected value at line 1 column 1`, which stays in English. A row without placeholders is found at any message length (`plain_message_keys_double_their_braces`, `literal_brace_rows_match_only_their_message`). - The status bar translates the errors a script's `File` and `Folder` objects, `vc.run`, `$.evalFile`, the `$` object's properties and functions, `alert`, `confirm` and `prompt`, `vc.document` and `vc.log` raise, the limits a run can pass, and the errors of Drop Script Engine, and the line for a run that fails (a syntax error, a thrown error, a limit, a stop or an internal error, with the script's name, the line and column, the included file it is in and the files left written), in every language that translates every message. The script's name, paths, numbers, command ids and the text a script throws itself are shown as they are. A failure with no line and column, such as an error in code `eval` compiled, is shown with one colon after the script's name (`an_error_without_a_place_names_the_script_and_kind`). A message template that names a value twice matches only when both places hold the same text, so the line for a failed run is not taken for the message inside it (`a_repeated_placeholder_matches_the_same_text`). The untranslated-strings report also lists the messages the script host's `fail`, `value` and `over` helpers take and the errors the script interpreter throws, and a constant's text comes from the file or crate that declares it, so the Scripts menu's headers are not listed as messages (`script_errors_are_translated`, `script_host_errors_are_translated`, `message_scan_reads_script_interpreter_errors`, `message_scan_reads_constants_of_the_file_and_its_crate`, `message_scan_skips_test_modules_with_any_test_cfg`). From 543b9335699a2d96031b40c084f224e57a06bfdf Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 17 Nov 2026 14:27:31 -0800 Subject: [PATCH 2/2] i18n: drop rows main already has The merge with main left rows in ka.tsv that main already carries; main's rows stay. --- crates/ui-egui/src/i18n/ka.tsv | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 7747f41e84..414f45171c 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -8144,14 +8144,6 @@ liquify-list-end {0}, {1} {0} და {1} @msg the main script engine is new for each run and is never kept, so it cannot be dropped მთავარი სკრიპტის ძრავა ყოველი გაშვებისთვის ახალია და არასოდეს ინახება, ამიტომ მისი მოცილება შეუძლებელია @msg there is no script engine named {name} სკრიპტის ძრავა სახელით {name} არ არსებობს @msg `answers` is only for a run with nobody to ask: in the app, the person answers each dialog `answers` მხოლოდ ისეთი გაშვებისთვისაა, სადაც შესაკითხი არავინაა: აპში თითოეულ დიალოგს ადამიანი პასუხობს -@msg `maxFuel` must be a whole number from 1 to {_1} `maxFuel` უნდა იყოს მთელი რიცხვი 1-დან {_1}-მდე -@msg `args{place}` is nested more than 64 levels deep `args{place}` 64 დონეზე ღრმადაა ჩადგმული -@msg `args` must be an object `args` უნდა იყოს ობიექტი -@msg `args` is larger than 1 MiB `args` 1 MiB-ზე დიდია -@msg `path` is empty `path` ცარიელია -@msg `installed` takes a `path`, not a `source` `installed` იღებს `path`-ს და არა `source`-ს -@msg `path` must name a .js or .jsx file `path` უნდა ასახელებდეს .js ან .jsx ფაილს -@msg give exactly one of `path` and `source` მიუთითეთ ზუსტად ერთი: `path` ან `source` @msg Running a script სკრიპტი მუშაობს @msg Copied the script report კოპირებულია სკრიპტის ანგარიში @msg Copied the link info კოპირებულია ბმულის ინფორმაცია