- Timestamp:
- 2011-07-08T21:28:59+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r4211 r4212 299 299 }); 300 300 return l; 301 } 302 303 public static boolean hasCode(String code) 304 { 305 return languages.containsKey(code); 301 306 } 302 307 -
trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java
r4211 r4212 69 69 else if (full.equals("in")) 70 70 return "id"; 71 /* list of non-single codes supported by josm */ 72 else if (full.equals("en_GB") || full.equals("pt_BR") || full.equals("en_AU") || full.equals("zh_TW") || full.equals("zh_CN")) 71 else if (I18n.hasCode(full)) /* catch all non-single codes */ 73 72 return full; 74 73 74 /* return single code */ 75 75 return locale.getLanguage(); 76 76 }
Note:
See TracChangeset
for help on using the changeset viewer.