Changeset 8160 in josm
- Timestamp:
- 2015-03-31T12:03:11+02:00 (10 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r8126 r8160 65 65 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ro">Romanian</a>.* 66 66 MODE_RO,*/ 67 /** Special mode for 68 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lt">Lithuanian</a>. */ 69 MODE_LT, 67 70 /** Special mode for 68 71 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ru">Russian</a>. */ … … 417 420 // fully supported only with Java 8 and later (needs CLDR) 418 421 languages.put("km", PluralMode.MODE_NONE); 422 languages.put("lt", PluralMode.MODE_LT); 419 423 //languages.put("nb", PluralMode.MODE_NOTONE); 420 424 languages.put("nl", PluralMode.MODE_NOTONE); … … 706 710 //case MODE_RO: 707 711 // return ((n == 1) ? 0 : ((((n % 100) > 19) || (((n % 100) == 0) && (n != 0))) ? 2 : 1)); 712 case MODE_LT: 713 return (((n % 10) == 1) && ((n % 100) != 11) ? 0 : (((n % 10) >= 2) 714 && (((n % 100) < 10) || ((n % 100) >= 20)) ? 1 : 2)); 708 715 case MODE_RU: 709 716 return ((((n % 10) == 1) && ((n % 100) != 11)) ? 0 : (((((n % 10) >= 2)
Note:
See TracChangeset
for help on using the changeset viewer.