mirror of
https://github.com/storytold/craft-i18n.git
synced 2026-11-28 17:29:14 +01:00
tools/sync_app.py ../photocraft 8d2e615 --ref 848fa306 --app photocraft: round trip 141,125 rows reproduced, 0 not. 12 new PhotoCraft locales (ar, az, da, fi, he, hi, nb, ro, sv, ta, th, ur; az new to craft-i18n, its language.name from PhotoCraft's LANGUAGES). Hebrew: 35 @plural rows listed one|other; CLDR he has one|two|other, so the other form is repeated (PhotoCraft clamps the index today, so n=2 already shows it). tools/plural_forms.tsv gains az. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
| 1 | # Each locale's gettext Plural-Forms, for the PO files tools/weblate_bridge.py writes for Weblate. | ||
|---|---|---|---|
| 2 | # Columns, separated by a TAB: locale <TAB> nplurals <TAB> plural expression (C syntax, in n) | ||
| 3 | # The expression's index is the form's position in the catalog's `@plural` row: CLDR order, over the | ||
| 4 | # categories whole numbers 0..=1000 reach (docs/catalog-format.md, Plurals). The test | ||
| 5 | # `plural_forms_table_matches_the_runtime_crate` checks every row against craft-libs' runtime crate. | ||
| 6 | ar | 6 | n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5 |
| 7 | az | 2 | n != 1 |
| 8 | bg | 2 | n != 1 |
| 9 | bn | 2 | n > 1 |
| 10 | bs | 3 | n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2 |
| 11 | ca | 2 | n != 1 |
| 12 | ckb | 2 | n != 1 |
| 13 | cs | 3 | n==1 ? 0 : n>=2 && n<=4 ? 1 : 2 |
| 14 | da | 2 | n != 1 |
| 15 | de | 2 | n != 1 |
| 16 | dv | 2 | n != 1 |
| 17 | el | 2 | n != 1 |
| 18 | es | 2 | n != 1 |
| 19 | et | 2 | n != 1 |
| 20 | fa | 2 | n > 1 |
| 21 | fi | 2 | n != 1 |
| 22 | fr | 2 | n > 1 |
| 23 | gl | 2 | n != 1 |
| 24 | he | 3 | n==1 ? 0 : n==2 ? 1 : 2 |
| 25 | hi | 2 | n > 1 |
| 26 | hr | 3 | n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2 |
| 27 | hu | 2 | n != 1 |
| 28 | id | 1 | 0 |
| 29 | it | 2 | n != 1 |
| 30 | ja | 1 | 0 |
| 31 | ka | 2 | n != 1 |
| 32 | kk | 2 | n != 1 |
| 33 | ko | 1 | 0 |
| 34 | lo | 1 | 0 |
| 35 | lt | 3 | n%10==1 && (n%100<11 || n%100>19) ? 0 : n%10>=2 && (n%100<11 || n%100>19) ? 1 : 2 |
| 36 | lv | 3 | n%10==0 || (n%100>=11 && n%100<=19) ? 0 : n%10==1 && n%100!=11 ? 1 : 2 |
| 37 | nb | 2 | n != 1 |
| 38 | nl | 2 | n != 1 |
| 39 | pl | 3 | n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2 |
| 40 | pt-br | 2 | n > 1 |
| 41 | ro | 3 | n==1 ? 0 : n==0 || (n%100>=1 && n%100<=19) ? 1 : 2 |
| 42 | ru | 3 | n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2 |
| 43 | sk | 3 | n==1 ? 0 : n>=2 && n<=4 ? 1 : 2 |
| 44 | sl | 4 | n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3 |
| 45 | sq | 2 | n != 1 |
| 46 | sr | 3 | n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2 |
| 47 | sr-latn | 3 | n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2 |
| 48 | sv | 2 | n != 1 |
| 49 | ta | 2 | n != 1 |
| 50 | te | 2 | n != 1 |
| 51 | th | 1 | 0 |
| 52 | tr | 2 | n != 1 |
| 53 | uk | 3 | n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2 |
| 54 | ur | 2 | n != 1 |
| 55 | vi | 1 | 0 |
| 56 | zh-hans | 1 | 0 |
| 57 | zh-hant | 1 | 0 |