public static class LanguageManager.LanguageDescriptor
extends java.lang.Object
LanguageDescriptor
object represents one of the installed language.Constructor and Description |
---|
LanguageManager.LanguageDescriptor(int languageID,
java.util.Locale locale,
java.lang.String localeString,
java.lang.String displayName,
boolean isFullySupported)
Creates a new
LanguageDescriptor . |
LanguageManager.LanguageDescriptor(int languageID,
java.lang.String localeString,
java.lang.String displayName,
boolean isFullySupported)
Creates a new
LanguageDescriptor . |
Modifier and Type | Method and Description |
---|---|
java.text.Collator |
getCollator()
Returns the
Collator for this language. |
java.lang.String |
getDisplayCountry(java.util.Locale targetLocale)
Returns the display name for the country of this descriptor.
|
java.lang.String |
getDisplayLanguage(java.util.Locale targetLocale)
Returns the display name for this language (without an optional country).
|
java.lang.String |
getDisplayName()
Returns the display name for this language.
|
int |
getLanguageID()
Returns the language ID for this language.
|
java.util.Locale |
getLocale()
Returns the
Locale for this language. |
java.lang.String |
getLocaleString()
Returns the locale string for this language.
|
boolean |
isFullySupported()
Returns whether this language is fully supported which means that also the user interface is localized to that language.
|
java.lang.String |
toString()
Returns a
String representation for this object. |
public LanguageManager.LanguageDescriptor(int languageID, java.lang.String localeString, java.lang.String displayName, boolean isFullySupported)
LanguageDescriptor
.languageID
- the language ID.localeString
- the locale string.displayName
- the display name.isFullySupported
- whether this language is also available for the client application user interfacepublic LanguageManager.LanguageDescriptor(int languageID, java.util.Locale locale, java.lang.String localeString, java.lang.String displayName, boolean isFullySupported)
LanguageDescriptor
.languageID
- the language ID.locale
- the locale.localeString
- the locale string.displayName
- the display name.isFullySupported
- whether this language is also available for the client application user interfacepublic boolean isFullySupported()
public int getLanguageID()
public java.util.Locale getLocale()
Locale
for this language.Locale
.public java.text.Collator getCollator()
Collator
for this language.Collator
.public java.lang.String getDisplayName()
public java.lang.String getDisplayLanguage(java.util.Locale targetLocale)
targetLocale
- The locale for the language in which the string should be returnedpublic java.lang.String getDisplayCountry(java.util.Locale targetLocale)
targetLocale
- The locale for the language in which the string should be returnedpublic java.lang.String getLocaleString()
public java.lang.String toString()
String
representation for this object.toString
in class java.lang.Object
String
representation for this object.www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.