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

Confusing plural examples #58

Open
timwhitlock opened this issue Jun 27, 2018 · 1 comment
Open

Confusing plural examples #58

timwhitlock opened this issue Jun 27, 2018 · 1 comment

Comments

@timwhitlock
Copy link

There are two examples of plural forms on this page

  1. "%d key" : [ "%d key", "%d keys" ],
  2. "test singular": ["test plural", "test_1 singular", "test_1 plural"],

These appear to be different structures. Using Gettext terminology they look like:

  1. msgid: [ msgstr1, msgstr2 ]
  2. msgid: [ msgid_plural, msgstr1, msgstr2 ]

Can you please clarify how this structure should be used and whether it has changed at some point?

@kbrock
Copy link

kbrock commented Mar 15, 2022

Different languages have different pluralization rules.

English only has 2 forms: singular (used for 1) and plural (used for 0 or more than 1)

Arabic has 6. see http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html

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

2 participants