Changeset 3418 in josm
- Timestamp:
- 2010-08-05T18:31:22+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r3415 r3418 424 424 * given by <code>localName</code>. 425 425 * 426 * Ignored if local Name is null. If the locale with name <code>localName</code>426 * Ignored if localeName is null. If the locale with name <code>localName</code> 427 427 * isn't found the default local is set to <tt>en</tt> (english). 428 428 * -
trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java
r3161 r3418 19 19 if (code.length() == 2) { 20 20 if (code.equals("en")) return ""; 21 } else if (code.equals("zh_TW") || code.equals("zh_CN")) { 22 /* do nothing */ 21 23 } else if (code.matches("[^_]+_[^_]+")) { 22 24 code = code.substring(0,2); … … 50 52 51 53 /** 52 * Replies the local code used by JOSM for a given locale.54 * Replies the locale code used by JOSM for a given locale. 53 55 * 54 56 * In most cases JOSM uses the 2-character ISO 639 language code ({@see Locale#getLanguage()} … … 65 67 return "he"; 66 68 /* list of non-single codes supported by josm */ 67 else if (full.equals("en_GB") || full.equals(" en_AU"))69 else if (full.equals("en_GB") || full.equals("pt_BR") || full.equals("en_AU") || full.equals("zh_TW") || full.equals("zh_CN")) 68 70 return full; 69 71
Note:
See TracChangeset
for help on using the changeset viewer.