com.liferay.portal.language
Class LanguageImpl
java.lang.Object
com.liferay.portal.language.LanguageImpl
- All Implemented Interfaces:
- Language
public class LanguageImpl
- extends Object
- implements Language
Method Summary |
String |
format(Locale locale,
String pattern,
Object argument)
|
String |
format(Locale locale,
String pattern,
Object[] arguments)
|
String |
format(Locale locale,
String pattern,
Object[] arguments,
boolean translateArguments)
|
String |
format(Locale locale,
String pattern,
Object argument,
boolean translateArguments)
|
String |
format(javax.servlet.jsp.PageContext pageContext,
String pattern,
LanguageWrapper argument)
|
String |
format(javax.servlet.jsp.PageContext pageContext,
String pattern,
LanguageWrapper[] arguments)
|
String |
format(javax.servlet.jsp.PageContext pageContext,
String pattern,
LanguageWrapper[] arguments,
boolean translateArguments)
|
String |
format(javax.servlet.jsp.PageContext pageContext,
String pattern,
LanguageWrapper argument,
boolean translateArguments)
|
String |
format(javax.servlet.jsp.PageContext pageContext,
String pattern,
Object argument)
|
String |
format(javax.servlet.jsp.PageContext pageContext,
String pattern,
Object[] arguments)
|
String |
format(javax.servlet.jsp.PageContext pageContext,
String pattern,
Object[] arguments,
boolean translateArguments)
|
String |
format(javax.servlet.jsp.PageContext pageContext,
String pattern,
Object argument,
boolean translateArguments)
|
String |
format(PortletConfig portletConfig,
Locale locale,
String pattern,
Object argument)
|
String |
format(PortletConfig portletConfig,
Locale locale,
String pattern,
Object[] arguments)
|
String |
format(PortletConfig portletConfig,
Locale locale,
String pattern,
Object[] arguments,
boolean translateArguments)
|
String |
format(PortletConfig portletConfig,
Locale locale,
String pattern,
Object argument,
boolean translateArguments)
|
String |
get(Locale locale,
String key)
|
String |
get(Locale locale,
String key,
String defaultValue)
|
String |
get(javax.servlet.jsp.PageContext pageContext,
String key)
|
String |
get(javax.servlet.jsp.PageContext pageContext,
String key,
String defaultValue)
|
String |
get(PortletConfig portletConfig,
Locale locale,
String key)
|
String |
get(PortletConfig portletConfig,
Locale locale,
String key,
String defaultValue)
|
Locale[] |
getAvailableLocales()
|
String |
getCharset(Locale locale)
|
String |
getLanguageId(javax.servlet.http.HttpServletRequest request)
|
String |
getLanguageId(Locale locale)
|
String |
getLanguageId(PortletRequest portletRequest)
|
Locale |
getLocale(String languageCode)
|
Locale[] |
getSupportedLocales()
|
String |
getTimeDescription(Locale locale,
long milliseconds)
|
String |
getTimeDescription(Locale locale,
Long milliseconds)
|
String |
getTimeDescription(Locale locale,
long milliseconds,
boolean approximate)
|
String |
getTimeDescription(javax.servlet.jsp.PageContext pageContext,
long milliseconds)
|
String |
getTimeDescription(javax.servlet.jsp.PageContext pageContext,
Long milliseconds)
|
String |
getTimeDescription(javax.servlet.jsp.PageContext pageContext,
long milliseconds,
boolean approximate)
|
void |
init()
|
boolean |
isAvailableLanguageCode(String languageCode)
|
boolean |
isAvailableLocale(Locale locale)
|
boolean |
isAvailableLocale(String languageId)
|
boolean |
isBetaLocale(Locale locale)
|
boolean |
isDuplicateLanguageCode(String languageCode)
|
void |
resetAvailableLocales(long companyId)
|
void |
updateCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
format
public String format(Locale locale,
String pattern,
Object argument)
- Specified by:
format
in interface Language
format
public String format(Locale locale,
String pattern,
Object argument,
boolean translateArguments)
- Specified by:
format
in interface Language
format
public String format(Locale locale,
String pattern,
Object[] arguments)
- Specified by:
format
in interface Language
format
public String format(Locale locale,
String pattern,
Object[] arguments,
boolean translateArguments)
- Specified by:
format
in interface Language
format
public String format(javax.servlet.jsp.PageContext pageContext,
String pattern,
LanguageWrapper argument)
- Specified by:
format
in interface Language
format
public String format(javax.servlet.jsp.PageContext pageContext,
String pattern,
LanguageWrapper argument,
boolean translateArguments)
- Specified by:
format
in interface Language
format
public String format(javax.servlet.jsp.PageContext pageContext,
String pattern,
LanguageWrapper[] arguments)
- Specified by:
format
in interface Language
format
public String format(javax.servlet.jsp.PageContext pageContext,
String pattern,
LanguageWrapper[] arguments,
boolean translateArguments)
- Specified by:
format
in interface Language
format
public String format(javax.servlet.jsp.PageContext pageContext,
String pattern,
Object argument)
- Specified by:
format
in interface Language
format
public String format(javax.servlet.jsp.PageContext pageContext,
String pattern,
Object argument,
boolean translateArguments)
- Specified by:
format
in interface Language
format
public String format(javax.servlet.jsp.PageContext pageContext,
String pattern,
Object[] arguments)
- Specified by:
format
in interface Language
format
public String format(javax.servlet.jsp.PageContext pageContext,
String pattern,
Object[] arguments,
boolean translateArguments)
- Specified by:
format
in interface Language
format
public String format(PortletConfig portletConfig,
Locale locale,
String pattern,
Object argument)
- Specified by:
format
in interface Language
format
public String format(PortletConfig portletConfig,
Locale locale,
String pattern,
Object argument,
boolean translateArguments)
- Specified by:
format
in interface Language
format
public String format(PortletConfig portletConfig,
Locale locale,
String pattern,
Object[] arguments)
- Specified by:
format
in interface Language
format
public String format(PortletConfig portletConfig,
Locale locale,
String pattern,
Object[] arguments,
boolean translateArguments)
- Specified by:
format
in interface Language
get
public String get(Locale locale,
String key)
- Specified by:
get
in interface Language
get
public String get(Locale locale,
String key,
String defaultValue)
- Specified by:
get
in interface Language
get
public String get(javax.servlet.jsp.PageContext pageContext,
String key)
- Specified by:
get
in interface Language
get
public String get(javax.servlet.jsp.PageContext pageContext,
String key,
String defaultValue)
- Specified by:
get
in interface Language
get
public String get(PortletConfig portletConfig,
Locale locale,
String key)
- Specified by:
get
in interface Language
get
public String get(PortletConfig portletConfig,
Locale locale,
String key,
String defaultValue)
- Specified by:
get
in interface Language
getAvailableLocales
public Locale[] getAvailableLocales()
- Specified by:
getAvailableLocales
in interface Language
getCharset
public String getCharset(Locale locale)
- Specified by:
getCharset
in interface Language
getLanguageId
public String getLanguageId(javax.servlet.http.HttpServletRequest request)
- Specified by:
getLanguageId
in interface Language
getLanguageId
public String getLanguageId(Locale locale)
- Specified by:
getLanguageId
in interface Language
getLanguageId
public String getLanguageId(PortletRequest portletRequest)
- Specified by:
getLanguageId
in interface Language
getLocale
public Locale getLocale(String languageCode)
- Specified by:
getLocale
in interface Language
getSupportedLocales
public Locale[] getSupportedLocales()
- Specified by:
getSupportedLocales
in interface Language
getTimeDescription
public String getTimeDescription(Locale locale,
long milliseconds)
- Specified by:
getTimeDescription
in interface Language
getTimeDescription
public String getTimeDescription(Locale locale,
long milliseconds,
boolean approximate)
- Specified by:
getTimeDescription
in interface Language
getTimeDescription
public String getTimeDescription(Locale locale,
Long milliseconds)
- Specified by:
getTimeDescription
in interface Language
getTimeDescription
public String getTimeDescription(javax.servlet.jsp.PageContext pageContext,
long milliseconds)
- Specified by:
getTimeDescription
in interface Language
getTimeDescription
public String getTimeDescription(javax.servlet.jsp.PageContext pageContext,
long milliseconds,
boolean approximate)
- Specified by:
getTimeDescription
in interface Language
getTimeDescription
public String getTimeDescription(javax.servlet.jsp.PageContext pageContext,
Long milliseconds)
- Specified by:
getTimeDescription
in interface Language
init
public void init()
- Specified by:
init
in interface Language
isAvailableLanguageCode
public boolean isAvailableLanguageCode(String languageCode)
- Specified by:
isAvailableLanguageCode
in interface Language
isAvailableLocale
public boolean isAvailableLocale(Locale locale)
- Specified by:
isAvailableLocale
in interface Language
isAvailableLocale
public boolean isAvailableLocale(String languageId)
- Specified by:
isAvailableLocale
in interface Language
isBetaLocale
public boolean isBetaLocale(Locale locale)
- Specified by:
isBetaLocale
in interface Language
isDuplicateLanguageCode
public boolean isDuplicateLanguageCode(String languageCode)
- Specified by:
isDuplicateLanguageCode
in interface Language
resetAvailableLocales
public void resetAvailableLocales(long companyId)
- Specified by:
resetAvailableLocales
in interface Language
updateCookie
public void updateCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale)
- Specified by:
updateCookie
in interface Language