Revision 41715 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/impl/DefaultLocaleManager.java
DefaultLocaleManager.java | ||
---|---|---|
265 | 265 |
|
266 | 266 |
return StringUtils.capitalize(displayName); |
267 | 267 |
} |
268 |
|
|
269 |
public String getLocaleDisplayName(Locale locale) { |
|
270 |
String displayName = this.getLanguageDisplayName(locale); |
|
271 |
|
|
272 |
if( !StringUtils.isBlank(locale.getCountry()) ) { |
|
273 |
if( !StringUtils.isBlank(locale.getVariant()) ) { |
|
274 |
displayName = displayName + " (" + |
|
275 |
StringUtils.capitalize(locale.getDisplayCountry(locale)) + "/" + |
|
276 |
locale.getDisplayVariant(locale) + ")"; |
|
277 |
} else { |
|
278 |
displayName = displayName + " ("+locale.getDisplayCountry(locale)+")"; |
|
279 |
} |
|
280 |
} |
|
281 |
|
|
282 |
return displayName; |
|
283 |
} |
|
268 | 284 |
|
269 | 285 |
public Locale[] getLocaleAlternatives(Locale locale) { |
270 | 286 |
Locale alternatives[] = null; |
Also available in: Unified diff