mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 04:38:29 +00:00
i18n: script.run answers errors are translated in every complete-message catalog
script.run refuses an answers value that is not a list, that has more
than 10000 answers or that is larger 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 text longer than
16 KiB or has an unknown kind, and answers given to a run in the app.
Seventeen complete-message catalogs had no rows for these errors, and
none had the `answers[{i}]` {e} row or the in-app refusal, so the status
bar showed them in English. The command's own error stays in English.
- Every complete-message catalog has a row for each of these errors.
The index, the counts and the names answers, kind, value, true, false
and null are kept.
- Of two message templates that start with text, the one with the
longer text before its first placeholder is tried first. Before,
"`{key}` must be true or false" took "`answers[3]` is a confirm's
answer, whose `value` must be true or false" (its key then held
"answers[3]` is a confirm's answer, whose `value"), and the line was
shown half translated.
- The untranslated-strings report lists the refusals of script.run's
parameters (the param helper in cmd/scripts.rs), and the message scan
skips a type's own function of a helper's name (Grays::param).
Tests: i18n::tests::script_answers_errors_are_translated,
the_longer_leading_text_matches_first,
message_scan_reads_script_run_param_refusals.
This commit is contained in:
@@ -5570,6 +5570,18 @@ digits Malayalam Malaiàlam
|
||||
@msg `name` must be the name of a script engine `name` ha de ser el nom d'un motor d'scripts
|
||||
@msg the main script engine is new for each run and is never kept, so it cannot be dropped el motor d'scripts principal és nou a cada execució i no es conserva mai, per tant no es pot descartar
|
||||
@msg there is no script engine named {name} no hi ha cap motor d'scripts anomenat {name}
|
||||
@msg `answers` must be a list of answers `answers` ha de ser una llista de respostes
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` té més de {MAX_ANSWERS} respostes
|
||||
@msg `answers` is larger than 1 MiB `answers` ocupa més d'1 MiB
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` ha de ser un objecte amb `kind` i `value`
|
||||
@msg must have exactly `kind` and `value` ha de tenir exactament `kind` i `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" és la resposta d'un alert, i el seu `value` ha de ser "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false és la resposta d'un confirm, i el seu `value` ha de ser true o false
|
||||
@msg is longer than 16 KiB ocupa més de 16 KiB
|
||||
@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 Running a script S'està executant un script
|
||||
@msg Copied the script report S’ha copiat l’informe de l’script
|
||||
@msg Corners edits the corners of a path Cantonades edita les cantonades d’un traçat
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -211,8 +211,13 @@ impl Catalog {
|
||||
}
|
||||
// Templates that start with text before those that start with a placeholder, so
|
||||
// `plug-in manifest: {0}` wins over `{_1} is {_2} bytes (limit {_3})` for a message it
|
||||
// wraps; then most literal text first, so `Couldn't open {name}: {e}` wins over `{path}: {e}`.
|
||||
c.templates.sort_by_key(|t| (matches!(t.pieces.first(), Some(Piece::Hole(_))), std::cmp::Reverse(t.literal)));
|
||||
// wraps; then the longest text before the first placeholder, so `` `answers[{i}]` {e} `` wins
|
||||
// over `` `{key}` must be true or false `` for a message it wraps; then most literal text
|
||||
// first, so `Couldn't open {name}: {e}` wins over `{path}: {e}`.
|
||||
c.templates.sort_by_key(|t| {
|
||||
let lead = if let Some(Piece::Text(text)) = t.pieces.first() { text.len() } else { 0 };
|
||||
(matches!(t.pieces.first(), Some(Piece::Hole(_))), std::cmp::Reverse(lead), std::cmp::Reverse(t.literal))
|
||||
});
|
||||
c
|
||||
}
|
||||
|
||||
|
||||
@@ -4679,6 +4679,18 @@ imageTrace Outline Obrys
|
||||
@msg `name` must be the name of a script engine `name` musí být název skriptovacího jádra
|
||||
@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` must be a list of answers `answers` musí být seznam odpovědí
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` má více než {MAX_ANSWERS} odpovědí
|
||||
@msg `answers` is larger than 1 MiB `answers` je větší než 1 MiB
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` musí být objekt s `kind` a `value`
|
||||
@msg must have exactly `kind` and `value` musí mít právě `kind` a `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" je odpověď na alert, jejíž `value` musí být "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false je odpověď na confirm, jejíž `value` musí být true nebo false
|
||||
@msg is longer than 16 KiB je delší než 16 KiB
|
||||
@msg is a prompt's answer, whose `value` must be a string or null je odpověď na prompt, jejíž `value` musí být řetězec nebo null
|
||||
@msg must have `kind` alert, confirm or prompt musí mít `kind` alert, confirm nebo prompt
|
||||
@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 Running a script Běží skript
|
||||
@msg Copied the script report Zpráva o skriptu zkopírována
|
||||
@msg Corners edits the corners of a path Rohy upravuje rohy cesty
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7111,8 +7111,10 @@ breakText Glyphs Glyphen
|
||||
@msg `alignOn` must be a string `alignOn` muss ein String sein
|
||||
@msg `align` must be a string `align` muss ein String sein
|
||||
@msg `answer` for this {kind} dialog must be one of: {_1} `answer` für dieses {kind}-Dialogfeld muss eines der folgenden sein: {_1}
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@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 `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
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2439,6 +2439,18 @@ axis Both Και τα δύο
|
||||
@msg `name` must be the name of a script engine το `name` πρέπει να είναι το όνομα μιας μηχανής σεναρίων
|
||||
@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` must be a list of answers το `answers` πρέπει να είναι λίστα απαντήσεων
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers το `answers` έχει περισσότερες από {MAX_ANSWERS} απαντήσεις
|
||||
@msg `answers` is larger than 1 MiB το `answers` είναι μεγαλύτερο από 1 MiB
|
||||
@msg `answers[{i}]` {e} το `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` πρέπει να είναι αντικείμενο με `kind` και `value`
|
||||
@msg must have exactly `kind` and `value` πρέπει να έχει ακριβώς `kind` και `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" είναι απάντηση σε alert, οπότε το `value` πρέπει να είναι "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false είναι απάντηση σε confirm, οπότε το `value` πρέπει να είναι true ή false
|
||||
@msg is longer than 16 KiB είναι μεγαλύτερο από 16 KiB
|
||||
@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 Running a script Εκτελείται σενάριο
|
||||
@msg Copied the script report Η αναφορά του σεναρίου αντιγράφηκε
|
||||
@msg Corners edits the corners of a path Η εντολή Γωνίες επεξεργάζεται τις γωνίες μιας διαδρομής
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4369,6 +4369,18 @@ axis Both Ambos
|
||||
@msg `name` must be the name of a script engine `name` debe ser el nombre de un motor de scripts
|
||||
@msg the main script engine is new for each run and is never kept, so it cannot be dropped el motor de scripts principal es nuevo en cada ejecución y nunca se conserva, por lo que no se puede descartar
|
||||
@msg there is no script engine named {name} no hay ningún motor de scripts llamado {name}
|
||||
@msg `answers` must be a list of answers `answers` debe ser una lista de respuestas
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` tiene más de {MAX_ANSWERS} respuestas
|
||||
@msg `answers` is larger than 1 MiB `answers` ocupa más de 1 MiB
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` debe ser un objeto con `kind` y `value`
|
||||
@msg must have exactly `kind` and `value` debe tener exactamente `kind` y `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" es la respuesta de un alert, cuyo `value` debe ser "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false es la respuesta de un confirm, cuyo `value` debe ser true o false
|
||||
@msg is longer than 16 KiB ocupa más de 16 KiB
|
||||
@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 Running a script Ejecutando un script
|
||||
@msg Copied the script report Se copió el informe del script
|
||||
@msg Corners edits the corners of a path Esquinas edita las esquinas de un trazado
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4593,6 +4593,18 @@ imageTrace Outline Ääriviiva
|
||||
@msg `name` must be the name of a script engine `name` on oltava skriptimoottorin nimi
|
||||
@msg the main script engine is new for each run and is never kept, so it cannot be dropped pääskriptimoottori on uusi jokaisella ajolla eikä sitä koskaan säilytetä, joten sitä ei voi poistaa
|
||||
@msg there is no script engine named {name} skriptimoottoria nimeltä {name} ei ole
|
||||
@msg `answers` must be a list of answers `answers` on oltava vastausten luettelo
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers kohteessa `answers` on yli {MAX_ANSWERS} vastausta
|
||||
@msg `answers` is larger than 1 MiB `answers` on suurempi kuin 1 MiB
|
||||
@msg `answers[{i}]` {e} `answers[{i}]`: {e}
|
||||
@msg must be an object with `kind` and `value` on oltava objekti, jossa on `kind` ja `value`
|
||||
@msg must have exactly `kind` and `value` siinä on oltava täsmälleen `kind` ja `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" on alert-vastaus, joten sen `value`-arvon on oltava "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false on confirm-vastaus, joten sen `value`-arvon on oltava true tai false
|
||||
@msg is longer than 16 KiB on pidempi kuin 16 KiB
|
||||
@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 Running a script Suoritetaan komentosarjaa
|
||||
@msg Copied the script report Komentosarjan raportti kopioitiin
|
||||
@msg Corners edits the corners of a path Kulmat-toiminto muokkaa polun kulmia
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4358,6 +4358,18 @@ 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 `answers` must be a list of answers `answers` doit être une liste de réponses
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` contient plus de {MAX_ANSWERS} réponses
|
||||
@msg `answers` is larger than 1 MiB `answers` dépasse 1 Mio
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` doit être un objet avec `kind` et `value`
|
||||
@msg must have exactly `kind` and `value` doit avoir exactement `kind` et `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" est la réponse d'un alert, dont `value` doit être "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false est la réponse d'un confirm, dont `value` doit être true ou false
|
||||
@msg is longer than 16 KiB dépasse 16 Kio
|
||||
@msg is a prompt's answer, whose `value` must be a string or null est la réponse d'un prompt, dont `value` doit être une chaîne ou null
|
||||
@msg must have `kind` alert, confirm or prompt doit avoir `kind` alert, confirm ou prompt
|
||||
@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é
|
||||
@msg Corners edits the corners of a path Angles modifie les angles d’un tracé
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -6682,6 +6682,18 @@ antiAlias Sharp शार्प
|
||||
@msg `name` must be the name of a script engine `name` किसी स्क्रिप्ट इंजन का नाम होना चाहिए
|
||||
@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` must be a list of answers `answers` उत्तरों की सूची होनी चाहिए
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` में {MAX_ANSWERS} से अधिक उत्तर हैं
|
||||
@msg `answers` is larger than 1 MiB `answers` 1 MiB से बड़ा है
|
||||
@msg `answers[{i}]` {e} `answers[{i}]`: {e}
|
||||
@msg must be an object with `kind` and `value` `kind` और `value` वाला ऑब्जेक्ट होना चाहिए
|
||||
@msg must have exactly `kind` and `value` इसमें ठीक-ठीक `kind` और `value` होने चाहिए
|
||||
@msg is an alert's answer, whose `value` must be "ok" यह alert का उत्तर है, इसलिए इसका `value` "ok" होना चाहिए
|
||||
@msg is a confirm's answer, whose `value` must be true or false यह confirm का उत्तर है, इसलिए इसका `value` true या false होना चाहिए
|
||||
@msg is longer than 16 KiB 16 KiB से लंबा है
|
||||
@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 Running a script स्क्रिप्ट चल रही है
|
||||
@msg Copied the script report Copied स्क्रिप्ट रिपोर्ट
|
||||
@msg copy needs path: the file to copy into the document's folder copy के लिए path चाहिए: डॉक्यूमेंट के फ़ोल्डर में कॉपी करने वाली फ़ाइल
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -5179,6 +5179,18 @@ imageTrace Outline Körvonal
|
||||
@msg `name` must be the name of a script engine a `name` értékének egy parancsfájlmotor nevének kell lennie
|
||||
@msg the main script engine is new for each run and is never kept, so it cannot be dropped a fő parancsfájlmotor minden futáshoz új, és sosem marad meg, ezért nem dobható el
|
||||
@msg there is no script engine named {name} nincs {name} nevű parancsfájlmotor
|
||||
@msg `answers` must be a list of answers az `answers` értékének válaszok listájának kell lennie
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers az `answers` több mint {MAX_ANSWERS} választ tartalmaz
|
||||
@msg `answers` is larger than 1 MiB az `answers` nagyobb 1 MiB-nál
|
||||
@msg `answers[{i}]` {e} `answers[{i}]`: {e}
|
||||
@msg must be an object with `kind` and `value` `kind` és `value` kulcsú objektumnak kell lennie
|
||||
@msg must have exactly `kind` and `value` pontosan `kind` és `value` kulcsot kell tartalmaznia
|
||||
@msg is an alert's answer, whose `value` must be "ok" alert válasza, ezért a `value` értékének "ok"-nak kell lennie
|
||||
@msg is a confirm's answer, whose `value` must be true or false confirm válasza, ezért a `value` értékének true vagy false értéknek kell lennie
|
||||
@msg is longer than 16 KiB hosszabb 16 KiB-nál
|
||||
@msg is a prompt's answer, whose `value` must be a string or null prompt válasza, ezért a `value` értékének karakterláncnak vagy null értéknek kell lennie
|
||||
@msg must have `kind` alert, confirm or prompt a `kind` értékének alert, confirm vagy prompt értéknek kell lennie
|
||||
@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 Running a script Parancsfájl futtatása
|
||||
@msg Copied the script report Szkriptjelentés másolva
|
||||
@msg Corners edits the corners of a path a Sarkok parancs egy útvonal sarkait szerkeszti
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7148,8 +7148,10 @@ breakText Glyphs Glifi
|
||||
@msg `alignOn` must be a string `alignOn` deve essere una stringa
|
||||
@msg `align` must be a string `align` deve essere una stringa
|
||||
@msg `answer` for this {kind} dialog must be one of: {_1} `answer` per questa finestra di dialogo {kind} deve essere uno tra: {_1}
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@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 `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]
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -5183,6 +5183,18 @@ swatch Bright Violet ビビッドバイオレット
|
||||
@msg `name` must be the name of a script engine `name` はスクリプトエンジンの名前にしてください
|
||||
@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` must be a list of answers `answers` は回答のリストである必要があります
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` の回答が {MAX_ANSWERS} 個を超えています
|
||||
@msg `answers` is larger than 1 MiB `answers` が 1 MiB を超えています
|
||||
@msg `answers[{i}]` {e} `answers[{i}]`: {e}
|
||||
@msg must be an object with `kind` and `value` `kind` と `value` を持つオブジェクトである必要があります
|
||||
@msg must have exactly `kind` and `value` `kind` と `value` だけを持つ必要があります
|
||||
@msg is an alert's answer, whose `value` must be "ok" alert の回答なので、`value` は "ok" である必要があります
|
||||
@msg is a confirm's answer, whose `value` must be true or false confirm の回答なので、`value` は true または false である必要があります
|
||||
@msg is longer than 16 KiB 16 KiB を超えています
|
||||
@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 Running a script スクリプトを実行中
|
||||
@msg Copied the script report スクリプトのレポートをコピーしました
|
||||
@msg Exported {path} {path} を書き出しました
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -5589,6 +5589,18 @@ imageTrace Outline კონტური
|
||||
@msg `name` must be the name of a script engine `name` უნდა იყოს სკრიპტის ძრავის სახელი
|
||||
@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` must be a list of answers `answers` უნდა იყოს პასუხების სია
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers`-ში {MAX_ANSWERS}-ზე მეტი პასუხია
|
||||
@msg `answers` is larger than 1 MiB `answers` 1 MiB-ზე დიდია
|
||||
@msg `answers[{i}]` {e} `answers[{i}]`: {e}
|
||||
@msg must be an object with `kind` and `value` უნდა იყოს ობიექტი `kind`-ითა და `value`-ით
|
||||
@msg must have exactly `kind` and `value` უნდა ჰქონდეს ზუსტად `kind` და `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" alert-ის პასუხია, ამიტომ მისი `value` უნდა იყოს "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false confirm-ის პასუხია, ამიტომ მისი `value` უნდა იყოს true ან false
|
||||
@msg is longer than 16 KiB 16 KiB-ზე გრძელია
|
||||
@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 Running a script სკრიპტი მუშაობს
|
||||
@msg Copied the script report კოპირებულია სკრიპტის ანგარიში
|
||||
@msg Offset Path: the offset leaves nothing of the selected paths (an inset larger than the shapes) ტრაექტორიის წანაცვლება: წანაცვლების შემდეგ მონიშნული ტრაექტორიებიდან არაფერი რჩება (შიგნით წანაცვლება ფიგურებზე დიდია)
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -5110,6 +5110,18 @@ theme Appearance 외관
|
||||
@msg `name` must be the name of a script engine `name`은(는) 스크립트 엔진의 이름이어야 합니다
|
||||
@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` must be a list of answers `answers`는 답의 목록이어야 합니다
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers`에 답이 {MAX_ANSWERS}개보다 많습니다
|
||||
@msg `answers` is larger than 1 MiB `answers`가 1 MiB보다 큽니다
|
||||
@msg `answers[{i}]` {e} `answers[{i}]`: {e}
|
||||
@msg must be an object with `kind` and `value` `kind`와 `value`가 있는 객체여야 합니다
|
||||
@msg must have exactly `kind` and `value` 정확히 `kind`와 `value`만 있어야 합니다
|
||||
@msg is an alert's answer, whose `value` must be "ok" alert의 답이므로 `value`는 "ok"여야 합니다
|
||||
@msg is a confirm's answer, whose `value` must be true or false confirm의 답이므로 `value`는 true 또는 false여야 합니다
|
||||
@msg is longer than 16 KiB 16 KiB보다 깁니다
|
||||
@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 Running a script 스크립트 실행 중
|
||||
@msg Copied the script report 스크립트 보고서를 복사했습니다
|
||||
@msg Exported {path} {path}을(를) 내보냈습니다
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -145,6 +145,18 @@
|
||||
@msg `name` must be the name of a script engine `name` moet de naam van een scriptengine zijn
|
||||
@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` must be a list of answers `answers` moet een lijst met antwoorden zijn
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` heeft meer dan {MAX_ANSWERS} antwoorden
|
||||
@msg `answers` is larger than 1 MiB `answers` is groter dan 1 MiB
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` moet een object met `kind` en `value` zijn
|
||||
@msg must have exactly `kind` and `value` moet precies `kind` en `value` hebben
|
||||
@msg is an alert's answer, whose `value` must be "ok" is het antwoord op een alert, waarvan `value` "ok" moet zijn
|
||||
@msg is a confirm's answer, whose `value` must be true or false is het antwoord op een confirm, waarvan `value` true of false moet zijn
|
||||
@msg is longer than 16 KiB is langer dan 16 KiB
|
||||
@msg is a prompt's answer, whose `value` must be a string or null is het antwoord op een prompt, waarvan `value` een tekenreeks of null moet zijn
|
||||
@msg must have `kind` alert, confirm or prompt moet `kind` alert, confirm of prompt hebben
|
||||
@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 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}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7381,8 +7381,10 @@ breakText Glyphs Glify
|
||||
@msg `alignOn` must be a string `alignOn` musi być ciągiem znaków
|
||||
@msg `align` must be a string `align` musi być ciągiem znaków
|
||||
@msg `answer` for this {kind} dialog must be one of: {_1} `answer` dla tego okna dialogowego {kind} musi mieć jedną z wartości: {_1}
|
||||
@msg `answers[{i}]` {e} `answers[{i}]`: {e}
|
||||
@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 `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]
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7645,8 +7645,10 @@ swatch Yellow Green Verde-amarelado
|
||||
@msg `anchors` must list anchor indices (0, 1, 2…), not {k} `anchors` deve listar índices de pontos de ancoragem (0, 1, 2…), não {k}
|
||||
@msg `anchors` must list anchor indices (0, 1, 2…), not {v} `anchors` deve listar índices de pontos de ancoragem (0, 1, 2…), não {v}
|
||||
@msg `answer` for this {kind} dialog must be one of: {_1} `answer` para esta caixa de diálogo {kind} deve ser um de: {_1}
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@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 `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]
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4406,6 +4406,18 @@ axis Both Оба
|
||||
@msg `name` must be the name of a script engine `name` должно быть именем движка скриптов
|
||||
@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` must be a list of answers `answers` должен быть списком ответов
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers в `answers` больше {MAX_ANSWERS} ответов
|
||||
@msg `answers` is larger than 1 MiB `answers` больше 1 МиБ
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` должен быть объектом с `kind` и `value`
|
||||
@msg must have exactly `kind` and `value` должен содержать ровно `kind` и `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" является ответом на alert, поэтому его `value` должно быть "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false является ответом на confirm, поэтому его `value` должно быть true или false
|
||||
@msg is longer than 16 KiB длиннее 16 КиБ
|
||||
@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 Running a script Выполняется скрипт
|
||||
@msg Copied the script report Отчёт о сценарии скопирован
|
||||
@msg Corners edits the corners of a path «Углы» редактирует углы контура
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4279,6 +4279,18 @@ axis Both Båda
|
||||
@msg `name` must be the name of a script engine `name` måste vara namnet på en skriptmotor
|
||||
@msg the main script engine is new for each run and is never kept, so it cannot be dropped huvudskriptmotorn är ny för varje körning och sparas aldrig, så den kan inte tas bort
|
||||
@msg there is no script engine named {name} det finns ingen skriptmotor med namnet {name}
|
||||
@msg `answers` must be a list of answers `answers` måste vara en lista med svar
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` har fler än {MAX_ANSWERS} svar
|
||||
@msg `answers` is larger than 1 MiB `answers` är större än 1 MiB
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` måste vara ett objekt med `kind` och `value`
|
||||
@msg must have exactly `kind` and `value` måste ha exakt `kind` och `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" är svaret på en alert, vars `value` måste vara "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false är svaret på en confirm, vars `value` måste vara true eller false
|
||||
@msg is longer than 16 KiB är längre än 16 KiB
|
||||
@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 Running a script Kör ett skript
|
||||
@msg Copied the script report Kopierade skriptrapporten
|
||||
@msg Corners edits the corners of a path Hörn redigerar hörnen på en bana
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2061,6 +2061,26 @@ fn a_repeated_placeholder_matches_the_same_text() {
|
||||
assert!(c.message("alert: the next answer is for prompt, not confirm").is_none());
|
||||
}
|
||||
|
||||
/// Of two templates that start with text, the one with the longer text before its first
|
||||
/// placeholder matches first, so a row that wraps a message takes it before a row with more text
|
||||
/// in all whose placeholder would take part of it; a quoted name may still hold a backtick.
|
||||
#[test]
|
||||
fn the_longer_leading_text_matches_first() {
|
||||
let c = Catalog::parse(concat!(
|
||||
"@msg\t`{key}` must be true or false\tkey {key}\n",
|
||||
"@msg\t`answers[{i}]` {e}\tanswer {i} {e}\n",
|
||||
"@msg\tno brush named `{name}`\tbrush {name}\n",
|
||||
));
|
||||
let (form, caps) = c.message("`select` must be true or false").expect("matches");
|
||||
assert_eq!((form, caps), ("key {key}", vec![("key", "select")]));
|
||||
let (form, caps) = c.message("`answers[3]` is a confirm's answer, whose `value` must be true or false").expect("matches");
|
||||
assert_eq!((form, caps), ("answer {i} {e}", vec![("i", "3"), ("e", "is a confirm's answer, whose `value` must be true or false")]));
|
||||
let (form, caps) = c.message("`a`b` must be true or false").expect("matches");
|
||||
assert_eq!((form, caps), ("key {key}", vec![("key", "a`b")]));
|
||||
let (form, caps) = c.message("no brush named `a`b`").expect("matches");
|
||||
assert_eq!((form, caps), ("brush {name}", vec![("name", "a`b")]));
|
||||
}
|
||||
|
||||
/// A template that starts with text matches a message it wraps before a template that starts
|
||||
/// with a placeholder, even one with more literal text, so the wrapped reason is translated by
|
||||
/// its own row.
|
||||
@@ -3312,6 +3332,96 @@ fn dataset_import_repeated_column_error_is_translated() {
|
||||
}
|
||||
}
|
||||
|
||||
/// The scan reads the refusals `script.run`'s `param(msg)` gives, and not the arguments of a type's
|
||||
/// own function of that name.
|
||||
#[test]
|
||||
fn message_scan_reads_script_run_param_refusals() {
|
||||
let code = r#"
|
||||
fn f(p: &Value) -> Result<()> {
|
||||
let grays = Grays::param(C, p)?;
|
||||
let pick = Pick::param(p, C)?;
|
||||
let _ = cmd::bad(C, "the name is too long");
|
||||
Err(param("`path` is empty"))
|
||||
}
|
||||
"#;
|
||||
let engine: Vec<_> = ERROR_HELPERS.iter().filter(|(c, _, _)| *c == "engine").map(|&(_, call, before)| (call, before)).collect();
|
||||
let consts = [("C".to_string(), vec!["view.proofSetup".to_string()])].into();
|
||||
assert_eq!(source_messages(code, &engine, &consts), ["the name is too long", "`path` is empty"]);
|
||||
}
|
||||
|
||||
/// `script.run`'s refusals of `answers`, the list's own, an answer's at its index and the refusal
|
||||
/// of `answers` in the app, are translated in every language that translates every message, with
|
||||
/// the index, the counts and the code names kept. The command's error stays in English.
|
||||
#[test]
|
||||
fn script_answers_errors_are_translated() {
|
||||
use serde_json::{Value, json};
|
||||
use vectorcraft_engine::{EngineError, Session};
|
||||
let reasons = [
|
||||
"must be an object with `kind` and `value`",
|
||||
"must have exactly `kind` and `value`",
|
||||
"is an alert's answer, whose `value` must be \"ok\"",
|
||||
"is a confirm's answer, whose `value` must be true or false",
|
||||
"is longer than 16 KiB",
|
||||
"is a prompt's answer, whose `value` must be a string or null",
|
||||
"must have `kind` alert, confirm or prompt",
|
||||
];
|
||||
let in_app = "`answers` is only for a run with nobody to ask: in the app, the person answers each dialog";
|
||||
let lists = ["`answers` must be a list of answers", "`answers` has more than {MAX_ANSWERS} answers", "`answers` is larger than 1 MiB"];
|
||||
let scanned = message_literals();
|
||||
for template in reasons.into_iter().chain(lists).chain(["`answers[{i}]` {e}", in_app]) {
|
||||
assert!(scanned.contains(template), "{template}");
|
||||
}
|
||||
let ok = json!({"kind": "alert", "value": "ok"});
|
||||
let wrong = [
|
||||
json!(1),
|
||||
json!({"kind": "alert"}),
|
||||
json!({"kind": "alert", "value": "yes"}),
|
||||
json!({"kind": "confirm", "value": "yes"}),
|
||||
json!({"kind": "prompt", "value": "x".repeat(16 * 1024 + 1)}),
|
||||
json!({"kind": "prompt", "value": 1}),
|
||||
json!({"kind": "beep", "value": 1}),
|
||||
];
|
||||
let run = |s: &mut Session, answers: Value| s.execute("script.run", &json!({"source": "1", "answers": answers})).unwrap_err();
|
||||
let mut s = Session::new();
|
||||
// Each error, with the English message the command gives and the reason an answer's holds.
|
||||
let mut errors = vec![];
|
||||
for (reason, answer) in reasons.into_iter().zip(wrong) {
|
||||
for at in [3, 9_999] {
|
||||
let mut list = vec![ok.clone(); at];
|
||||
list.push(answer.clone());
|
||||
errors.push((run(&mut s, json!(list)), format!("`answers[{at}]` {reason}"), Some(reason)));
|
||||
}
|
||||
}
|
||||
errors.push((run(&mut s, json!("ok")), lists[0].to_string(), None));
|
||||
errors.push((run(&mut s, json!(vec![ok.clone(); 10_001])), "`answers` has more than 10000 answers".to_string(), None));
|
||||
let long = json!({"kind": "prompt", "value": "x".repeat(16 * 1024)});
|
||||
errors.push((run(&mut s, json!(vec![long; 70])), lists[2].to_string(), None));
|
||||
s.script_frames = true;
|
||||
errors.push((run(&mut s, json!([ok])), in_app.to_string(), None));
|
||||
for (e, want, reason) in &errors {
|
||||
assert!(matches!(e, EngineError::BadParams { cmd, msg } if cmd == "script.run" && msg == want), "{e}");
|
||||
let line = e.to_string();
|
||||
for code in COMPLETE_MESSAGES {
|
||||
let lang = Lang::from_code(code).expect("registered");
|
||||
let shown = message(lang, &line);
|
||||
let inner = message(lang, want);
|
||||
assert_ne!(inner, *want, "{code}");
|
||||
assert!(shown.contains(&inner) && !shown.contains("invalid parameters"), "{code}: {shown}");
|
||||
if let Some(reason) = reason {
|
||||
let translated = message(lang, reason);
|
||||
assert_ne!(translated, *reason, "{code}");
|
||||
assert!(inner.contains(&translated), "{code}: {inner}");
|
||||
}
|
||||
let numbers: Vec<&str> = want.split(|c: char| !c.is_ascii_digit()).filter(|n| !n.is_empty()).collect();
|
||||
let names = ["`answers", "`kind`", "`value`", "true", "false", "null"];
|
||||
assert!(numbers.iter().chain(&names).all(|n| !want.contains(n) || shown.contains(n)), "{code}: {shown}");
|
||||
if want.ends_with("alert, confirm or prompt") {
|
||||
assert!(["alert", "confirm", "prompt"].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]
|
||||
@@ -4052,14 +4162,15 @@ const MESSAGE_MARKERS: &[&str] = &[".status(", "ui.status = ", "status = ", "Oth
|
||||
/// message: the engine's `bad(cmd, msg)` (`EngineError::BadParams`), `err(msg)` (`cmd/fileio`)
|
||||
/// and `error(msg)` (`cmd/dimension.rs`), the script host's `fail(msg)` (`script/files.rs`,
|
||||
/// `script/dollar.rs`) and `value(msg)`, which gives the messages the script `File` object's own
|
||||
/// code throws (`script/files.rs`), and `.over(limit)` for a limit a run passes (`script/mod.rs`),
|
||||
/// the PDF writer's `bad(why)` (`forms.rs`) and `failed(why)` (`encrypt.rs`, `linearize.rs`), the
|
||||
/// code throws (`script/files.rs`), `.over(limit)` for a limit a run passes (`script/mod.rs`) and
|
||||
/// `param(msg)` for `script.run`'s parameters (`cmd/scripts.rs`), the PDF writer's `bad(why)` (`forms.rs`) and `failed(why)` (`encrypt.rs`, `linearize.rs`), the
|
||||
/// plug-in host's `bad(what)` (a parameter's spec and dialog keys), `wrong(what)` (a parameter's
|
||||
/// value), `out_err(at, msg)` (plug-in output), `in_range(x, lo, hi, at, what)` and
|
||||
/// `unit(x, at, what)` (a painted effect's numbers) and `.read_packed(packed, what, max)` (the block
|
||||
/// a plug-in returned), and the script interpreter's methods that throw an error at a script:
|
||||
/// `.type_error(msg)`, `.throw(kind, msg)` and the XPath evaluator's `.error(msg)`. A helper that
|
||||
/// starts with `.` is a method of any receiver.
|
||||
/// starts with `.` is a method of any receiver; any other is a function, not a type's own function
|
||||
/// of the same name (`Grays::param(C, p)`).
|
||||
const ERROR_HELPERS: &[(&str, &str, usize)] = &[
|
||||
("engine", "bad(", 1),
|
||||
("engine", "err(", 0),
|
||||
@@ -4067,6 +4178,7 @@ const ERROR_HELPERS: &[(&str, &str, usize)] = &[
|
||||
("engine", "fail(", 0),
|
||||
("engine", "value(", 0),
|
||||
("engine", ".over(", 0),
|
||||
("engine", "param(", 0),
|
||||
("pdf", "bad(", 0),
|
||||
("pdf", "failed(", 0),
|
||||
("plugins", "bad(", 0),
|
||||
@@ -4245,6 +4357,10 @@ fn source_messages(code: &str, helpers: &[(&str, usize)], consts: &std::collecti
|
||||
let in_helpers = helpers.iter().flat_map(|&(call, before)| {
|
||||
code.match_indices(call)
|
||||
.filter(|&(at, _)| call.starts_with('.') || !code[..at].ends_with(|c: char| c.is_alphanumeric() || c == '_' || c == '.'))
|
||||
.filter(|&(at, _)| {
|
||||
let owner = code[..at].strip_suffix("::").map(|p| p.rsplit(|c: char| !c.is_alphanumeric() && c != '_').next().unwrap_or(""));
|
||||
!owner.is_some_and(|o| o.starts_with(|c: char| c.is_ascii_uppercase()))
|
||||
})
|
||||
.filter_map(move |(at, _)| skip_args(&code[at + call.len()..], before))
|
||||
});
|
||||
let mut out = vec![];
|
||||
|
||||
@@ -4134,6 +4134,18 @@ axis Both Her İkisi
|
||||
@msg `name` must be the name of a script engine `name` bir betik motorunun adı olmalıdır
|
||||
@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` must be a list of answers `answers` bir yanıt listesi olmalıdır
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` içinde {MAX_ANSWERS} taneden fazla yanıt var
|
||||
@msg `answers` is larger than 1 MiB `answers` 1 MiB'den büyük
|
||||
@msg `answers[{i}]` {e} `answers[{i}]`: {e}
|
||||
@msg must be an object with `kind` and `value` `kind` ve `value` içeren bir nesne olmalıdır
|
||||
@msg must have exactly `kind` and `value` tam olarak `kind` ve `value` içermelidir
|
||||
@msg is an alert's answer, whose `value` must be "ok" bir alert yanıtıdır, bu yüzden `value` değeri "ok" olmalıdır
|
||||
@msg is a confirm's answer, whose `value` must be true or false bir confirm yanıtıdır, bu yüzden `value` değeri true veya false olmalıdır
|
||||
@msg is longer than 16 KiB 16 KiB'den uzun
|
||||
@msg is a prompt's answer, whose `value` must be a string or null bir prompt yanıtıdır, bu yüzden `value` değeri bir dize veya null olmalıdır
|
||||
@msg must have `kind` alert, confirm or prompt `kind` değeri alert, confirm veya prompt olmalıdır
|
||||
@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 Running a script Betik çalıştırılıyor
|
||||
@msg Copied the script report Komut dosyası raporu kopyalandı
|
||||
@msg Corners edits the corners of a path Köşeler bir yolun köşelerini düzenler
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 5 and column 25.
|
@@ -7186,8 +7186,10 @@ breakText Glyphs Гліфи
|
||||
@msg `anchors` must list anchor indices (0, 1, 2…), not {k} `anchors` має містити індекси опорних точок (0, 1, 2…), а не {k}
|
||||
@msg `anchors` must list anchor indices (0, 1, 2…), not {v} `anchors` має містити індекси опорних точок (0, 1, 2…), а не {v}
|
||||
@msg `answer` for this {kind} dialog must be one of: {_1} `answer` для цього діалогового вікна ({kind}) має бути одним з: {_1}
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@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 `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]
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4833,6 +4833,18 @@ theme Appearance Giao diện
|
||||
@msg `name` must be the name of a script engine `name` phải là tên của một bộ máy tập lệnh
|
||||
@msg the main script engine is new for each run and is never kept, so it cannot be dropped bộ máy tập lệnh chính được tạo mới cho mỗi lần chạy và không bao giờ được giữ lại, nên không thể loại bỏ nó
|
||||
@msg there is no script engine named {name} không có bộ máy tập lệnh nào tên {name}
|
||||
@msg `answers` must be a list of answers `answers` phải là một danh sách câu trả lời
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` có hơn {MAX_ANSWERS} câu trả lời
|
||||
@msg `answers` is larger than 1 MiB `answers` lớn hơn 1 MiB
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` phải là một đối tượng có `kind` và `value`
|
||||
@msg must have exactly `kind` and `value` phải có đúng `kind` và `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" là câu trả lời cho alert, nên `value` phải là "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false là câu trả lời cho confirm, nên `value` phải là true hoặc false
|
||||
@msg is longer than 16 KiB dài hơn 16 KiB
|
||||
@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 Running a script Đang chạy tập lệnh
|
||||
@msg Copied the script report Đã sao chép báo cáo script
|
||||
@msg Corners edits the corners of a path Corners chỉnh sửa các góc của đường dẫn
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 204 and column 5.
|
@@ -7362,8 +7362,10 @@ breakText Glyphs 字形
|
||||
@msg `alignOn` must be a string `alignOn` 必须是字符串
|
||||
@msg `align` must be a string `align` 必须是字符串
|
||||
@msg `answer` for this {kind} dialog must be one of: {_1} 此 {kind} 对话框的 `answer` 必须是以下之一:{_1}
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@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 `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]
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2577,6 +2577,18 @@ file-filter Templates 範本
|
||||
@msg `name` must be the name of a script engine `name` 必須是指令碼引擎的名稱
|
||||
@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` must be a list of answers `answers` 必須是回答的清單
|
||||
@msg `answers` has more than {MAX_ANSWERS} answers `answers` 中的回答超過 {MAX_ANSWERS} 個
|
||||
@msg `answers` is larger than 1 MiB `answers` 大於 1 MiB
|
||||
@msg `answers[{i}]` {e} `answers[{i}]` {e}
|
||||
@msg must be an object with `kind` and `value` 必須是包含 `kind` 和 `value` 的物件
|
||||
@msg must have exactly `kind` and `value` 必須只包含 `kind` 和 `value`
|
||||
@msg is an alert's answer, whose `value` must be "ok" 是 alert 的回答,其 `value` 必須是 "ok"
|
||||
@msg is a confirm's answer, whose `value` must be true or false 是 confirm 的回答,其 `value` 必須為 true 或 false
|
||||
@msg is longer than 16 KiB 長度超過 16 KiB
|
||||
@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 Running a script 正在執行指令碼
|
||||
@msg Copied the script report 已複製指令碼報告
|
||||
@msg Exported {path} 已匯出 {path}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -894,6 +894,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- The Polish catalog (`crates/ui-egui/src/i18n/pl.tsv`) has an `@msg` row for the status and error messages the untranslated report (`untranslated_report`) finds in the sources, 3,439 `@msg` rows in all: the errors of commands, scripts, file import and export and plug-ins. The report lists 46 Polish messages: 44 that open #7211, #7214, #7116, #7330 and #1931 translate, and 2 that no language has a row for. A message with two placeholders in a row (`Template::parse` in `crates/ui-egui/src/i18n/catalog.rs`) is still shown in English.
|
||||
- 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 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`).
|
||||
- Localised UI: menus (in-window and native), panels, dialogs, toolbar and Preferences read from per-language catalogs (`crates/ui-egui/src/i18n`, see `docs/development.md`); Traditional Chinese (Taiwan), Simplified Chinese (mainland), Japanese, Korean, Vietnamese, German, Spanish, French, Italian, Polish, Brazilian Portuguese, Russian, Ukrainian, Georgian and Catalan ship complete, and Czech covers every menu label (and more), with system-locale detection on macOS, Windows, Linux and the web (the browser's languages, or `?lang=`), a Language preference and, on macOS, a VectorCraft ▸ Language menu. Names are never translated (fonts and their styles, layers, artboards, saved presets, user libraries, custom workspaces, recent files, plug-ins).
|
||||
The counts that Package's status and question, the folder search of Missing Fonts and Find Linked Files, the modified and missing linked file prompts and the CSS Properties panel's notes show use the interface language's plural forms instead of a fixed "(s)" form. Evidence: `the_missing_links_note_uses_each_count_form` in `crates/ui-egui/src/dialogs/tests_package.rs`, `the_modified_links_question_uses_each_count_form` in `crates/ui-egui/src/dialogs/missing_links.rs`, `search_counts_use_each_count_form` in `crates/ui-egui/src/dialogs/missing_fonts/tests.rs` and `the_unnamed_objects_note_uses_each_count_form` in `crates/ui-egui/src/panels/tests_css_properties.rs`.
|
||||
|
||||
Reference in New Issue
Block a user