mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 17:46:59 +00:00
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.