Comments (5)
As Weblate supports v4 now as well, I've added hint about plurals to our docs: WeblateOrg/weblate@bf7db3c
from translate.
The code states it is based on https://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html, but that is not true as well.
Farsi mentioned in WeblateOrg/weblate#8625 has two plurals there (same as in CLDR), but only one in i18next. Maybe this is i18next bug in the end?
from translate.
Okay, I think it's a bug in i18next, there were already similar in the past, see i18next/i18next#1607
from translate.
Okay, I think it's a bug in i18next, there were already similar in the past, see i18next/i18next#1607
Ok, thanks! I'll open an issue there, then!
from translate.
It turns out that i18next decided to build their own plural rules instead of relying on CLDR like nearly everybody else. Because of that plural tags differ for some language in translate-toolkit and the original code.
I looked more into this. They moved to the v4 format exactly for that reason.
So now, the v3 plural rules are set into the stone (and forever broken) and the v4 rules depends on the Intl
Javascript API, which is maintained by upstream (NodeJS/Chromium/Firefo/etc...) and change according to the CLDR.
from translate.
Related Issues (20)
- rc2po annoyed by pragma code_page that change the encoding interpretation HOT 6
- rc2po adds 2 extra lines when the msg contains one '\n' HOT 1
- Crash in parsing gotext file with complex id HOT 1
- Crash in gotext plurals parsing HOT 1
- Broken i18next v3 plural rules in multiple languages HOT 5
- rc2po fills the wrong keys HOT 1
- JUnit reporting support for pocount HOT 1
- Supporting source string descriptions in yaml files HOT 1
- Single whitespace is not preserved while enclosed in double quotes on Android HOT 2
- Plural issues on Android due to update to CLDR 41 HOT 4
- po2csv - I didn't find it in the documentation and it ignores context
- po2rc should preserve comments location
- test_odf_xliff changes working directory and does not change it back, breaking other tests
- Unable to make tests pass locally - pycountry triggers DeprecationWarning with pkg_resources HOT 3
- translate-toolkit-3.9.2-1.fc39.x86_64/usr/bin/mozfunny2prop --manpage hangs HOT 4
- Extract only text from IDML by idml2po
- support several input parameters for pofilter (and other commands)
- Support for Android resource converter HOT 4
- prop2po: support for different encodings for both the input file and the template
- prop2po: personality given in command line is ignored for .strings files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from translate.