Repository navigation
feat(gui): add Russian translation - #166
Conversation
Add full Russian (ru) gettext catalog for hatchzip-gui with 3-form Russian Plural-Forms rules.
Add "ru" to LANGUAGES and ("ru", "Русский") to NAMES, and cover ru-RU in locale unit tests.
Include "Русский" in the expected Settings > Language list and update the zh_CN selection index from 5 to 6.
Add the Russian (ru) entry to the table of bundled GUI translations.
|
Thank you @D0n-A, this is a really good translation: natural, consistent terms (извлечение, архив, элемент), and the three plural forms are right everywhere ("1 вложенный архив / 2 вложенных архива / 5 вложенных архивов"). The catalog test and the rest of CI pass on all three systems. I pushed one small commit to your branch: the screenshot harness only rendered en/es/hi/zh_CN, so I added One message loses part of its meaning:
Once that's in, I'll merge it. Thanks again! |
|
Thanks for the review and for adding About that message: "not yet extracted" is actually already included inside the 1: Whereas If you'd prefer "not yet extracted" to stay inside the |
|
You're right, and that's the better way to do it: |
What this changes
Adds a Russian (
ru) translation for the desktop app (hatchzip-gui), registers it inlocale.rs, updates the language list test intests/language.rs, and adds Russian tocrates/gui/translations/README.md.Why
Makes the desktop app available in Russian, following the system language automatically or selectable under Settings > Language.
Verification
Checked the
.pocatalog syntax withmsgfmt --check.Verified all
@trmessage IDs, placeholders, leading/trailing whitespace, and 3-form RussianPlural-Formsrules againstcrates/gui/tests/catalog.rs.Relying on GitHub Actions CI for
cargo fmt,cargo clippy, andcargo testacross Linux, macOS, and Windows.cargo fmt --all --checkandcargo clippy --all-targets -- -D warningspasscargo testpassesAny change to extraction, the journal or the truncation order was run against the crash tests
Any number in the README this changes was re-measured