Ignore:
Timestamp:
2015-04-18T00:27:22+02:00 (8 years ago)
Author:
simon04
Message:

fix #11148 - Add Valencian language to josm (ca@valencia)

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

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

    r8160 r8207  
    400400        languages.put("bg", PluralMode.MODE_NOTONE);
    401401        languages.put("ca", PluralMode.MODE_NOTONE);
     402        languages.put("ca@valencia", PluralMode.MODE_NOTONE);
    402403        languages.put("cs", PluralMode.MODE_CS);
    403404        languages.put("da", PluralMode.MODE_NOTONE);
  • trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java

    r8091 r8207  
    9191        else if ("in".equals(full))
    9292            return "id";
     93        else if ("ca__valencia".equals(full))
     94            return "ca@valencia";
    9395        else if (I18n.hasCode(full)) // catch all non-single codes
    9496            return full;
     
    107109     */
    108110    public static Locale getLocale(String localeName) {
     111        if ("ca@valencia".equals(localeName) || "ca__valencia".equals(localeName)) {
     112            return new Locale("ca", "", "valencia");
     113        }
    109114        if ("he".equals(localeName)) {
    110115            localeName = "iw_IL";
Note: See TracChangeset for help on using the changeset viewer.