mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 23:05:39 +00:00
i18n: Russian translates 1,811 more status and error messages
The Russian catalog had no row for 1,811 of the status and error
messages that the untranslated report finds in the sources, so the
status bar showed those messages in English.
- ru.tsv gains 1,811 `@msg` rows: the errors of command parameters,
the script interpreter's errors, and the notes and errors of file
import and export. The translations are VectorCraft's own, written
from the English meaning with the feature names the catalog already
uses. Placeholders, parameter names, values and command ids stay as
the English writes them.
- Rows for messages that open pull requests add to ru.tsv are left to
those pull requests.
- Two of the messages have two placeholders in a row. The status bar
cannot match such a row, so it does not use those two rows.
- The row for `{k} has control characters{_1}` does not match the
message for a multi-line File Info field, where the last
placeholder is empty.
- A test reads nine of the messages back in Russian.
- The Russian row of docs/localization-parity.md gives the catalog's
current counts.
Docs: docs/target-app-parity.md, docs/localization-parity.md.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -3505,6 +3505,27 @@ fn dataset_import_cell_errors_are_translated() {
|
||||
}
|
||||
}
|
||||
|
||||
/// Russian shows command, script and file messages in Russian: a whole message, a message that
|
||||
/// begins with a feature name, messages with a name, a number or a command id filled in, and the
|
||||
/// two messages whose catalog rows escape a backslash.
|
||||
#[test]
|
||||
fn russian_translates_command_script_and_file_messages() {
|
||||
let ru = Lang::from_code("ru").expect("registered");
|
||||
for (english, russian) in [
|
||||
("CSV is empty", "CSV пуст"),
|
||||
("Offset Path: the path is too complex to offset", "Смещение контура: контур слишком сложен для смещения"),
|
||||
("no swatch named `Gold`", "нет образца с именем `Gold`"),
|
||||
("object 12 is not an Intertwine group", "объект 12 не является группой переплетения"),
|
||||
("no slice 4 in the image (see slice.list)", "в изображении нет фрагмента 4 (см. slice.list)"),
|
||||
("give origin: [x, y], or reset: true", "укажите origin: [x, y] или reset: true"),
|
||||
("`kinsoku` must be \"none\", \"hard\" or \"soft\"", "`kinsoku` должно быть \"none\", \"hard\" или \"soft\""),
|
||||
("\\ at end of pattern", "\\ в конце шаблона"),
|
||||
("a \\u escape needs four hexadecimal digits", "после \\u нужны четыре шестнадцатеричные цифры"),
|
||||
] {
|
||||
assert_eq!(message(ru, english), russian, "{english}");
|
||||
}
|
||||
}
|
||||
|
||||
/// The errors of the parameter checks that many commands share (a number given as text, a missing
|
||||
/// number or index, a fraction for a whole number, `ids` that aren't a list of object ids, an
|
||||
/// `ids` entry or an `id` that is negative, an object id that names no object, a date that isn't
|
||||
|
||||
@@ -53,7 +53,7 @@ plus review. Native-speaker review is human work and isn't in the hours.
|
||||
| Italian | `it` | 4,011 / 4,020 | full |
|
||||
| Dutch | `nl` | 7,299 rows, 1,609 of them `@msg` and 47 `@msgplural` (counted 2026-11-13 on `main` at `9a1a158a3`): in `COMPLETE_MESSAGES`, and the untranslated report lists the same missing messages for it as for German; one/other plurals | full |
|
||||
| Danish | `da` | 5,279 rows, 750 of them `@msg` (counted 2026-10-21): menus and `tl!` literals complete when counted; its messages are partial; one/other plurals | full |
|
||||
| Russian | `ru` | 4,009 / 4,020 | full |
|
||||
| Russian | `ru` | 9,259 rows, 3,444 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): in `COMPLETE_MESSAGES`; the untranslated report lists 46 menu strings, 21 `tl!` literals and 11 undo labels as missing | full |
|
||||
| Ukrainian | `uk` | 4,009 / 4,020 (one/few/many plurals) | full |
|
||||
| Hungarian | `hu` | 5,253 rows (counted 2026-10-21): menus, `tl!` literals and messages complete when counted; one plural form | full |
|
||||
| Polish | `pl` | 5,130 rows (counted 2026-10-21): menus, `tl!` literals and messages complete when counted; one/few/many plurals | full; native review pending |
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user