repository.grepcode.com$java$root@jdk$openjdk@6-b14
repository.grepcode.com$java$root@jdk$openjdk@6-b14@java$util$spi$LocaleNameProvider.java
file
oh
o
[]
An abstract class for service providers that
provide localized names for the
Locale class.
Sole constructor. (For invocation by subclass constructors, typically
implicit.)
Returns a localized name for the given ISO 639 language code and the
given locale that is appropriate for display to the user.
For example, if
languageCode is "fr" and
locale
is en_US, getDisplayLanguage() will return "French"; if
languageCode
is "en" and
locale is fr_FR, getDisplayLanguage() will return "anglais".
If the name returned cannot be localized according to
locale,
(say, the provider does not have a Japanese name for Croatian),
this method returns null.
Returns a localized name for the given ISO 3166 country code and the
given locale that is appropriate for display to the user.
For example, if
countryCode is "FR" and
locale
is en_US, getDisplayCountry() will return "France"; if
countryCode
is "US" and
locale is fr_FR, getDisplayCountry() will return "Etats-Unis".
If the name returned cannot be localized according to
locale,
(say, the provider does not have a Japanese name for Croatia),
this method returns null.
Returns a localized name for the given variant code and the given locale that
is appropriate for display to the user.
If the name returned cannot be localized according to
locale,
this method returns null.