- Timestamp:
- 2020-03-04T11:40:48+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r16017 r16029 63 63 MODE_GREATERONE, 64 64 /* Special mode for 65 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ar">Arabic</a>.* 66 MODE_AR, */65 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ar">Arabic</a>.*/ 66 MODE_AR, 67 67 /** Special mode for 68 68 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#cs">Czech</a>. */ … … 99 99 // NOTE: check also WikiLanguage handling in LanguageInfo.java when adding new languages 100 100 static { 101 //languages.put("ar", PluralMode.MODE_AR);101 languages.put("ar", PluralMode.MODE_AR); 102 102 languages.put("ast", PluralMode.MODE_NOTONE); 103 103 languages.put("bg", PluralMode.MODE_NOTONE); … … 633 633 case MODE_CS: 634 634 return (n == 1) ? 0 : (((n >= 2) && (n <= 4)) ? 1 : 2); 635 //case MODE_AR:636 //return ((n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((((n % 100) >= 3)637 //&& ((n % 100) <= 10)) ? 3 : ((((n % 100) >= 11) && ((n % 100) <= 99)) ? 4 : 5)))));635 case MODE_AR: 636 return ((n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((((n % 100) >= 3) 637 && ((n % 100) <= 10)) ? 3 : ((((n % 100) >= 11) && ((n % 100) <= 99)) ? 4 : 5))))); 638 638 case MODE_PL: 639 639 return (n == 1) ? 0 : (((((n % 10) >= 2) && ((n % 10) <= 4))
Note:
See TracChangeset
for help on using the changeset viewer.