Add Czech (cs_CZ) locale#330
Open
r1cksync wants to merge 1 commit into
Open
Conversation
Add a complete Czech translation catalog for humanize, covering filesize, large-number scale words (intword), relative time phrases (naturaltime/naturaldelta) and ordinals. Czech uses three plural forms (one / few / many), declared via the standard Plural-Forms header, with msgstr[0..2] provided for every plural message. Number scale words follow the long-scale Czech naming (milion, miliarda, bilion, biliarda, trilion, ...) and ordinals use the trailing period that Czech ordinals require. Also list Czech in the README locale list and add cs_CZ cases to the parametrized intword and naturalsize i18n tests.
Member
|
Do you speak Czech? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Czech (
cs_CZ) localeThis adds a complete Czech translation catalog for humanize.
What's translated
%d Byte/%d Bytes→bajt/bajtů)intwordusing long-scale Czech naming:milion,miliarda,bilion,biliarda,trilion,triliarda,kvadrilion, ... down togoogolnaturaltime/naturaldelta(před %s/za %s,nyní,dnes,zítra,včera, plus all second/minute/hour/day/month/year units)ordinal) — Czech ordinals are written with a trailing period (e.g.5.)Plural forms
Czech has three plural categories (one / few / many). The catalog declares the standard rule:
and provides
msgstr[0..2]for every plural message (matching the existing Slovaksk_SKcatalog, a closely related language).How it was produced
The template was regenerated from the current sources with the documented workflow (
xgettextwith the project's keyword set), the catalog initialised withmsginit --locale cs_CZ, then everymsgstrtranslated by hand.msgfmt --checkreports 59 translated, 0 fuzzy, 0 untranslated and validates all format strings and plural counts.Tests
cs_CZcases to the parametrizedtest_intword_i18nandtest_naturalsize_i18ntests intests/test_i18n.py.777 passed.ruff checkclean.Only the
.posource is committed;.mobinaries remain gitignored and are produced byscripts/generate-translation-binaries.sh, matching every other locale.