| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,126 @@ | ||
| # Romanian translations for humanize. | ||
| # This file is distributed under the same license as the humanize package. | ||
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: humanize\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "POT-Creation-Date: 2026-06-24 00:00+0000\n" | ||
| "PO-Revision-Date: 2026-06-24 00:00+0000\n" | ||
| "Last-Translator: Automatically generated\n" | ||
| "Language-Team: Romanian\n" | ||
| "Language: ro\n" | ||
| "MIME-Version: 1.0\n" | ||
| "Content-Type: text/plain; charset=UTF-8\n" | ||
| "Content-Transfer-Encoding: 8bit\n" | ||
| "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2);\n" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal value 1 (male)" | ||
| msgid "%(value)s" | ||
| msgstr "primul" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal value 1 (female)" | ||
| msgid "%(value)s" | ||
| msgstr "prima" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 0 (male)" | ||
| msgid "%(value)sth" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 1 (male)" | ||
| msgid "%(value)sst" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 2 (male)" | ||
| msgid "%(value)snd" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 3 (male)" | ||
| msgid "%(value)srd" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 4 (male)" | ||
| msgid "%(value)sth" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 5 (male)" | ||
| msgid "%(value)sth" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 6 (male)" | ||
| msgid "%(value)sth" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 7 (male)" | ||
| msgid "%(value)sth" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 8 (male)" | ||
| msgid "%(value)sth" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 9 (male)" | ||
| msgid "%(value)sth" | ||
| msgstr "al %(value)s-lea" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 0 (female)" | ||
| msgid "%(value)sth" | ||
| msgstr "a %(value)s-a" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 1 (female)" | ||
| msgid "%(value)sst" | ||
| msgstr "a %(value)s-a" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 2 (female)" | ||
| msgid "%(value)snd" | ||
| msgstr "a %(value)s-a" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 3 (female)" | ||
| msgid "%(value)srd" | ||
| msgstr "a %(value)s-a" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 4 (female)" | ||
| msgid "%(value)sth" | ||
| msgstr "a %(value)s-a" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 5 (female)" | ||
| msgid "%(value)sth" | ||
| msgstr "a %(value)s-a" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 6 (female)" | ||
| msgid "%(value)sth" | ||
| msgstr "a %(value)s-a" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 7 (female)" | ||
| msgid "%(value)sth" | ||
| msgstr "a %(value)s-a" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 8 (female)" | ||
| msgid "%(value)sth" | ||
| msgstr "a %(value)s-a" | ||
|
|
||
| #: src/humanize/number.py | ||
| msgctxt "ordinal 9 (female)" | ||
| msgid "%(value)sth" | ||
| msgstr "a %(value)s-a" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -34,6 +34,7 @@ | |
| _SUPERSCRIPT_TRANS = str.maketrans(_SUPERSCRIPT_MAP) | ||
|
|
||
| _ORDINAL_SUFFIXES = ("th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th") | ||
| _ORDINAL_VALUE = "%(value)s" | ||
| _APNUMBER_WORDS = ( | ||
| "zero", | ||
| "one", | ||
| Expand Down Expand Up | @@ -108,7 +109,11 @@ def ordinal(value: NumberOrString, gender: str = "male") -> str: | |
| return str(value) | ||
| gender = "male" if gender == "male" else "female" | ||
| digit = 0 if value % 100 in (11, 12, 13) else value % 10 | ||
| return f"{value}{P_(f'{digit} ({gender})', _ORDINAL_SUFFIXES[digit])}" | ||
| ordinal_format = P_(f"ordinal value {value} ({gender})", _ORDINAL_VALUE) | ||
| if ordinal_format == _ORDINAL_VALUE: | ||
| suffix = P_(f"{digit} ({gender})", _ORDINAL_SUFFIXES[digit]) | ||
| ordinal_format = P_(f"ordinal {digit} ({gender})", f"{_ORDINAL_VALUE}{suffix}") | ||
| return ordinal_format % {"value": value} | ||
|
Comment thread
Comment on lines
+112
to
+116
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityCould you explain a bit how this works? Any special instructions for the translator?
Sorry, something went wrong.
All reactions
|
||
|
|
||
|
|
||
| def intcomma(value: NumberOrString, ndigits: int | None = None) -> str: | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis file only translates src/humanize/number.py, and not the other files. Is that intentional?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.