jdk/src/java.base/share/classes/java/util/Locale.java
changeset 28059 e576535359cc
parent 26219 1a19360ff122
child 30655 d83f50188ca9
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
    93  *   language codes in the IANA Language Subtag Registry (search for
    93  *   language codes in the IANA Language Subtag Registry (search for
    94  *   "Type: language").  The language field is case insensitive, but
    94  *   "Type: language").  The language field is case insensitive, but
    95  *   <code>Locale</code> always canonicalizes to lower case.</dd>
    95  *   <code>Locale</code> always canonicalizes to lower case.</dd>
    96  *
    96  *
    97  *   <dd>Well-formed language values have the form
    97  *   <dd>Well-formed language values have the form
    98  *   <code>[a-zA-Z]{2,8}</code>.  Note that this is not the the full
    98  *   <code>[a-zA-Z]{2,8}</code>.  Note that this is not the full
    99  *   BCP47 language production, since it excludes extlang.  They are
    99  *   BCP47 language production, since it excludes extlang.  They are
   100  *   not needed since modern three-letter language codes replace
   100  *   not needed since modern three-letter language codes replace
   101  *   them.</dd>
   101  *   them.</dd>
   102  *
   102  *
   103  *   <dd>Example: "en" (English), "ja" (Japanese), "kok" (Konkani)</dd>
   103  *   <dd>Example: "en" (English), "ja" (Japanese), "kok" (Konkani)</dd>
  1689     public String getDisplayLanguage(Locale inLocale) {
  1689     public String getDisplayLanguage(Locale inLocale) {
  1690         return getDisplayString(baseLocale.getLanguage(), inLocale, DISPLAY_LANGUAGE);
  1690         return getDisplayString(baseLocale.getLanguage(), inLocale, DISPLAY_LANGUAGE);
  1691     }
  1691     }
  1692 
  1692 
  1693     /**
  1693     /**
  1694      * Returns a name for the the locale's script that is appropriate for display to
  1694      * Returns a name for the locale's script that is appropriate for display to
  1695      * the user. If possible, the name will be localized for the default
  1695      * the user. If possible, the name will be localized for the default
  1696      * {@link Locale.Category#DISPLAY DISPLAY} locale.  Returns
  1696      * {@link Locale.Category#DISPLAY DISPLAY} locale.  Returns
  1697      * the empty string if this locale doesn't specify a script code.
  1697      * the empty string if this locale doesn't specify a script code.
  1698      *
  1698      *
  1699      * @return the display name of the script code for the current default
  1699      * @return the display name of the script code for the current default