Skip to content
New issue

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

Plural strings and variables, usage of CLDR #169

Open
yarons opened this issue May 7, 2019 · 0 comments
Open

Plural strings and variables, usage of CLDR #169

yarons opened this issue May 7, 2019 · 0 comments

Comments

@yarons
Copy link

yarons commented May 7, 2019

<string name="second">"second"</string>
<string name="seconds">"seconds"</string>
<string name="minute">"minute"</string>
<string name="minutes">"minutes"</string>
<string name="hour">"hour"</string>
<string name="day">"day"</string>
<string name="days">"days"</string>
<string name="week">"week"</string>
<string name="weeks">"weeks"</string>
<string name="month">"month"</string>
<string name="months">"months"</string>
<string name="year">"year"</string>
<string name="years">"years"</string>

These strings should be handled like the other plurals but also with an argument (%d day, %d days).

The reason for it is that the placement of the variable is different in Hebrew (Single day is usually not counted, 2 days is a single word, starting from 3 days there's a number before the plural form of the expression "day" in Hebrew).

In Arabic it's much more complicated but based on the same principals.

EDIT: Also, there's an option to use CLDR instead of asking the translators to translate the days of the week, etc.

@yarons yarons changed the title Plural strings and variables Plural strings and variables, usage of CLDR May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant