php-gettext / Languages

gettext language list automatically generated from CLDR data
https://php-gettext.github.io/Languages/
Other
70 stars 10 forks source link

CLDR 37 and #31

Closed doublex closed 3 years ago

doublex commented 4 years ago

Hello,

Would it be possible to update to CLDR 37?

And GCC complains a warning: suggest parentheses around ‘&&’ within ‘||’ E.g.:

{
  "name": "Romanian",
  "formula": "(n == 1) ? 0 : ((n == 0 || n % 100 >= 2 && n % 100 <= 19) ? 1 : 2)",
}

Thanks a lot for this great module Best wishes

mlocati commented 3 years ago

Done: this library now uses CLDR 39. Versus the previous CLDR 36 data, we have these new languages:

I'll publish a new release app.

For the GCC warning, could you open a new issue?

doublex commented 3 years ago

@mlocati Thank you for the effort!

mlocati commented 3 years ago

(Sorry for the unacceptable delay)

doublex commented 3 years ago

Not that much has changed ... Great code!

mlocati commented 3 years ago

Well, the major change is that French now has 3 plural forms (for example for "1 million"): see https://github.com/php-gettext/Languages/commit/798a8cc0c7750aaa9f433e81fe4a2e621ca5ad3e