- Timestamp:
- 2025-01-01T20:20:34+01:00 (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r19248 r19276 50 50 * Enumeration of possible plural modes. It allows us to identify and implement logical conditions of 51 51 * plural forms defined on <a href="https://help.launchpad.net/Translations/PluralForms">Launchpad</a>. 52 * See <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html">CLDR</a> 52 * See <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html">CLDR</a> 53 53 * for another complete list. 54 54 * @see #pluralEval … … 62 62 MODE_GREATERONE, 63 63 /* Special mode for 64 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ar">Arabic</a>.*/ 64 * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ar">Arabic</a>.*/ 65 65 MODE_AR, 66 66 /** Special mode for 67 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#cs">Czech</a>. */ 67 * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#cs">Czech</a>. */ 68 68 MODE_CS, 69 69 /** Special mode for 70 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#pl">Polish</a>. */ 70 * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#pl">Polish</a>. */ 71 71 MODE_PL, 72 72 /* Special mode for 73 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ro">Romanian</a>.* 73 * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ro">Romanian</a>.* 74 74 MODE_RO,*/ 75 75 /** Special mode for 76 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lt">Lithuanian</a>. */ 76 * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lt">Lithuanian</a>. */ 77 77 MODE_LT, 78 78 /** Special mode for 79 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ru">Russian</a>. */ 79 * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ru">Russian</a>. */ 80 80 MODE_RU, 81 81 /** Special mode for 82 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#sk">Slovak</a>. */ 82 * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#sk">Slovak</a>. */ 83 MODE_CY, 84 /** Special mode for 85 * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#cy">Welsh</a>. */ 83 86 MODE_SK, 84 87 /* Special mode for 85 * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#sl">Slovenian</a>.* 88 * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#sl">Slovenian</a>.* 86 89 MODE_SL,*/ 87 90 } … … 105 108 languages.put("ca@valencia", PluralMode.MODE_NOTONE); 106 109 languages.put("cs", PluralMode.MODE_CS); 110 languages.put("cy", PluralMode.MODE_CY); 107 111 languages.put("da", PluralMode.MODE_NOTONE); 108 112 languages.put("de", PluralMode.MODE_NOTONE); … … 139 143 languages.put("sr@latin", PluralMode.MODE_RU); 140 144 languages.put("sv", PluralMode.MODE_NOTONE); 141 //languages.put("tr", PluralMode.MODE_NONE);145 languages.put("tr", PluralMode.MODE_NONE); 142 146 languages.put("uk", PluralMode.MODE_RU); 143 147 //languages.put("vi", PluralMode.MODE_NONE); … … 677 681 case MODE_SK: 678 682 return (n == 1) ? 1 : (((n >= 2) && (n <= 4)) ? 2 : 0); 683 case MODE_CY: 684 return (n == 1) ? 0 : ((n == 2) ? 1 : (n != 8 && n != 11) ? 2 : 3); 679 685 //case MODE_SL: 680 686 // return (((n % 100) == 1) ? 1 : (((n % 100) == 2) ? 2 : ((((n % 100) == 3)
Note:
See TracChangeset
for help on using the changeset viewer.