You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We try to utilize solutions that will cover most cases to ensure it's simple enough that people will actually use it. Have you found a spot where it's causing confusion? Let me know where and I can update. In cases where there might be potential for confusion over zero conditions, I prefer to treat them independently, i.e.
PW doesn't know anything about the rules of different languages, and that's intended. Developers can add as many languages as they want, but PW doesn't know that one is English and another is Chinese and what other rules that might entail. We leave language-specific rules to the developer implementing the language.
What I may be able to do is amend the _n() function to support 4 arguments, and treat the first as a 0 condition when it detects there are 4 arguments. That's still not going to cover every possible need here, so beyond that, my preference is less complexity/higher-usage, and let the edge cases be handled by the developer and situation where it is required.
It should be mentioned somewhere (or fixed) that plural support is very limited. It may even be unusable for some languages.
It only supports singular and plural. No 0 (zero) or different plural translations.
Some languages have the plural for 0 items, some have the singular. And some languages have different plurals for different numbers of items.
See http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html#Plural-forms
The text was updated successfully, but these errors were encountered: