< prev index next >

src/java.base/share/classes/sun/util/locale/provider/LocaleNameProviderImpl.java

Print this page

        

*** 70,80 **** * is en_US, getDisplayLanguage() will return "French"; if <code>languageCode</code> * is "en" and <code>locale</code> is fr_FR, getDisplayLanguage() will return "anglais". * If the name returned cannot be localized according to <code>locale</code>, * (say, the provider does not have a Japanese name for Croatian), * this method returns null. ! * @param languageCode the ISO 639 language code string in the form of two * lower-case letters between 'a' (U+0061) and 'z' (U+007A) * @param locale the desired locale * @return the name of the given language code for the specified locale, or null if it's not * available. * @exception NullPointerException if <code>languageCode</code> or <code>locale</code> is null --- 70,80 ---- * is en_US, getDisplayLanguage() will return "French"; if <code>languageCode</code> * is "en" and <code>locale</code> is fr_FR, getDisplayLanguage() will return "anglais". * If the name returned cannot be localized according to <code>locale</code>, * (say, the provider does not have a Japanese name for Croatian), * this method returns null. ! * @param lang the ISO 639 language code string in the form of two * lower-case letters between 'a' (U+0061) and 'z' (U+007A) * @param locale the desired locale * @return the name of the given language code for the specified locale, or null if it's not * available. * @exception NullPointerException if <code>languageCode</code> or <code>locale</code> is null
*** 127,137 **** * is en_US, getDisplayCountry() will return "France"; if <code>countryCode</code> * is "US" and <code>locale</code> is fr_FR, getDisplayCountry() will return "Etats-Unis". * If the name returned cannot be localized according to <code>locale</code>, * (say, the provider does not have a Japanese name for Croatia), * this method returns null. ! * @param countryCode the ISO 3166 country code string in the form of two * upper-case letters between 'A' (U+0041) and 'Z' (U+005A) * @param locale the desired locale * @return the name of the given country code for the specified locale, or null if it's not * available. * @exception NullPointerException if <code>countryCode</code> or <code>locale</code> is null --- 127,137 ---- * is en_US, getDisplayCountry() will return "France"; if <code>countryCode</code> * is "US" and <code>locale</code> is fr_FR, getDisplayCountry() will return "Etats-Unis". * If the name returned cannot be localized according to <code>locale</code>, * (say, the provider does not have a Japanese name for Croatia), * this method returns null. ! * @param ctry the ISO 3166 country code string in the form of two * upper-case letters between 'A' (U+0041) and 'Z' (U+005A) * @param locale the desired locale * @return the name of the given country code for the specified locale, or null if it's not * available. * @exception NullPointerException if <code>countryCode</code> or <code>locale</code> is null
*** 150,160 **** /** * 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 <code>locale</code>, * this method returns null. ! * @param variant the variant string * @param locale the desired locale * @return the name of the given variant string for the specified locale, or null if it's not * available. * @exception NullPointerException if <code>variant</code> or <code>locale</code> is null * @exception IllegalArgumentException if <code>locale</code> isn't --- 150,160 ---- /** * 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 <code>locale</code>, * this method returns null. ! * @param vrnt the variant string * @param locale the desired locale * @return the name of the given variant string for the specified locale, or null if it's not * available. * @exception NullPointerException if <code>variant</code> or <code>locale</code> is null * @exception IllegalArgumentException if <code>locale</code> isn't
< prev index next >