- Timestamp:
- 2015-04-18T00:27:22+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/display/LanguagePreference.java
r7509 r8207 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.tools.I18n.trc; 5 6 6 7 import java.awt.Component; … … 118 119 int index, boolean isSelected, boolean cellHasFocus) { 119 120 return dispatch.getListCellRendererComponent(list, 120 l == null ? tr("Default (Auto determined)") : l.getDisplayName(l), 121 index, isSelected, cellHasFocus); 121 l == null 122 ? tr("Default (Auto determined)") 123 : "ca__valencia".equals(l.toString()) 124 ? trc("language", "Valencian") 125 : l.getDisplayName(l), 126 index, isSelected, cellHasFocus); 122 127 } 123 128 } -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r8160 r8207 400 400 languages.put("bg", PluralMode.MODE_NOTONE); 401 401 languages.put("ca", PluralMode.MODE_NOTONE); 402 languages.put("ca@valencia", PluralMode.MODE_NOTONE); 402 403 languages.put("cs", PluralMode.MODE_CS); 403 404 languages.put("da", PluralMode.MODE_NOTONE); -
trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java
r8091 r8207 91 91 else if ("in".equals(full)) 92 92 return "id"; 93 else if ("ca__valencia".equals(full)) 94 return "ca@valencia"; 93 95 else if (I18n.hasCode(full)) // catch all non-single codes 94 96 return full; … … 107 109 */ 108 110 public static Locale getLocale(String localeName) { 111 if ("ca@valencia".equals(localeName) || "ca__valencia".equals(localeName)) { 112 return new Locale("ca", "", "valencia"); 113 } 109 114 if ("he".equals(localeName)) { 110 115 localeName = "iw_IL";
Note:
See TracChangeset
for help on using the changeset viewer.