Changeset 6360 in josm for trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java
- Timestamp:
- 2013-11-02T23:47:36+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java
r6223 r6360 5 5 6 6 public class LanguageInfo { 7 8 private LanguageInfo() { 9 // Hide default constructor for utils classes 10 } 11 7 12 /** 8 13 * Type of the locale to use … … 86 91 else if (full.equals("in")) 87 92 return "id"; 88 else if (I18n.hasCode(full)) / * catch all non-single codes */93 else if (I18n.hasCode(full)) // catch all non-single codes 89 94 return full; 90 95 91 / * return single code */96 // return single code 92 97 return locale.getLanguage(); 93 98 } … … 118 123 } 119 124 120 static public String getLanguageCodeXML() 121 { 125 static public String getLanguageCodeXML() { 122 126 return getJOSMLocaleCode()+"."; 123 127 } 124 static public String getLanguageCodeManifest()125 {128 129 static public String getLanguageCodeManifest() { 126 130 return getJOSMLocaleCode()+"_"; 127 131 }
Note:
See TracChangeset
for help on using the changeset viewer.