Changeset 16029 in josm


Ignore:
Timestamp:
2020-03-04T11:40:48+01:00 (3 months ago)
Author:
stoecker
Message:

see #18856 - reactivate arabic language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r16017 r16029  
    6363        MODE_GREATERONE,
    6464        /* 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,
    6767        /** Special mode for
    6868         * <a href="http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#cs">Czech</a>. */
     
    9999    // NOTE: check also WikiLanguage handling in LanguageInfo.java when adding new languages
    100100    static {
    101         //languages.put("ar", PluralMode.MODE_AR);
     101        languages.put("ar", PluralMode.MODE_AR);
    102102        languages.put("ast", PluralMode.MODE_NOTONE);
    103103        languages.put("bg", PluralMode.MODE_NOTONE);
     
    633633        case MODE_CS:
    634634            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)))));
    638638        case MODE_PL:
    639639            return (n == 1) ? 0 : (((((n % 10) >= 2) && ((n % 10) <= 4))
Note: See TracChangeset for help on using the changeset viewer.