public class Language extends Object implements Serializable
Constructor and Description |
---|
Language(LanguageModuleDescriptor moduleDescriptor) |
Language(Locale locale) |
Modifier and Type | Method and Description |
---|---|
String |
getCapitalDisplayName() |
String |
getCountry() |
String |
getDisplayLanguage()
Returns the name of the Language in its locale form
|
String |
getDisplayName()
Returns the name for the Locale that is appropriate to display to the user
|
String |
getEncoding() |
String |
getFlagUrl()
Returns the URL of the flag for this language
|
String |
getLanguage() |
Locale |
getLocale() |
String |
getName()
Returns the name of the Language
|
String |
getResourceBundlePath() |
void |
setCountry(String country) |
void |
setEncoding(String encoding) |
void |
setFlagUrl(String flagUrl)
Sets the URL of the flag for this language
|
void |
setLanguage(String language) |
void |
setLocale(Locale locale) |
String |
setVariant() |
void |
setVariant(String variant) |
public Language(Locale locale)
public Language(LanguageModuleDescriptor moduleDescriptor)
public String getName()
Locale.toString()
public String getDisplayLanguage()
Locale.getDisplayLanguage()
public String getDisplayName()
Locale.getDisplayName()
public String getEncoding()
public void setEncoding(String encoding)
public void setLanguage(String language)
public String getLanguage()
public void setCountry(String country)
public String getCountry()
public void setVariant(String variant)
public String setVariant()
public Locale getLocale()
public void setLocale(Locale locale)
public String getFlagUrl()
Note: This URL does not contain the context path or base URL of the Confluence installation
public void setFlagUrl(String flagUrl)
Note: This URL should not contain the context path or base URL of the Confluence installation
flagUrl
- public String getResourceBundlePath()
public String getCapitalDisplayName()
Copyright © 2003–2016 Atlassian. All rights reserved.