@ProviderType
public interface Language
Modifier and Type | Method and Description |
---|---|
String |
format(javax.servlet.http.HttpServletRequest request,
String pattern,
LanguageWrapper argument) |
String |
format(javax.servlet.http.HttpServletRequest request,
String pattern,
LanguageWrapper[] arguments) |
String |
format(javax.servlet.http.HttpServletRequest request,
String pattern,
LanguageWrapper[] arguments,
boolean translateArguments) |
String |
format(javax.servlet.http.HttpServletRequest request,
String pattern,
LanguageWrapper argument,
boolean translateArguments) |
String |
format(javax.servlet.http.HttpServletRequest request,
String pattern,
Object argument) |
String |
format(javax.servlet.http.HttpServletRequest request,
String pattern,
Object[] arguments) |
String |
format(javax.servlet.http.HttpServletRequest request,
String pattern,
Object[] arguments,
boolean translateArguments) |
String |
format(javax.servlet.http.HttpServletRequest request,
String pattern,
Object argument,
boolean translateArguments) |
String |
format(Locale locale,
String pattern,
List<Object> arguments) |
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(ResourceBundle resourceBundle,
String pattern,
Object argument) |
String |
format(ResourceBundle resourceBundle,
String pattern,
Object[] arguments) |
String |
format(ResourceBundle resourceBundle,
String pattern,
Object[] arguments,
boolean translateArguments) |
String |
format(ResourceBundle resourceBundle,
String pattern,
Object argument,
boolean translateArguments) |
String |
get(javax.servlet.http.HttpServletRequest request,
ResourceBundle resourceBundle,
String key) |
String |
get(javax.servlet.http.HttpServletRequest request,
ResourceBundle resourceBundle,
String key,
String defaultValue) |
String |
get(javax.servlet.http.HttpServletRequest request,
String key) |
String |
get(javax.servlet.http.HttpServletRequest request,
String key,
String defaultValue) |
String |
get(Locale locale,
String key) |
String |
get(Locale locale,
String key,
String defaultValue) |
String |
get(ResourceBundle resourceBundle,
String key) |
String |
get(ResourceBundle resourceBundle,
String key,
String defaultValue) |
Set<Locale> |
getAvailableLocales() |
Set<Locale> |
getAvailableLocales(long groupId) |
String |
getBCP47LanguageId(javax.servlet.http.HttpServletRequest request) |
String |
getBCP47LanguageId(Locale locale) |
String |
getBCP47LanguageId(PortletRequest portletRequest) |
String |
getLanguageId(javax.servlet.http.HttpServletRequest request) |
String |
getLanguageId(Locale locale) |
String |
getLanguageId(PortletRequest portletRequest) |
Locale |
getLocale(long groupId,
String languageCode) |
Locale |
getLocale(String languageCode) |
ResourceBundleLoader |
getPortalResourceBundleLoader() |
Set<Locale> |
getSupportedLocales() |
String |
getTimeDescription(javax.servlet.http.HttpServletRequest request,
long milliseconds) |
String |
getTimeDescription(javax.servlet.http.HttpServletRequest request,
Long milliseconds) |
String |
getTimeDescription(javax.servlet.http.HttpServletRequest request,
long milliseconds,
boolean approximate) |
String |
getTimeDescription(Locale locale,
long milliseconds) |
String |
getTimeDescription(Locale locale,
Long milliseconds) |
String |
getTimeDescription(Locale locale,
long milliseconds,
boolean approximate) |
void |
init() |
boolean |
isAvailableLanguageCode(String languageCode) |
boolean |
isAvailableLocale(Locale locale) |
boolean |
isAvailableLocale(long groupId,
Locale locale) |
boolean |
isAvailableLocale(long groupId,
String languageId) |
boolean |
isAvailableLocale(String languageId) |
boolean |
isBetaLocale(Locale locale) |
boolean |
isDuplicateLanguageCode(String languageCode) |
boolean |
isInheritLocales(long groupId) |
boolean |
isSameLanguage(Locale locale1,
Locale locale2) |
String |
process(ResourceBundle resourceBundle,
Locale locale,
String content) |
void |
resetAvailableGroupLocales(long groupId) |
void |
resetAvailableLocales(long companyId) |
void |
updateCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale) |
String format(javax.servlet.http.HttpServletRequest request, String pattern, LanguageWrapper argument)
String format(javax.servlet.http.HttpServletRequest request, String pattern, LanguageWrapper argument, boolean translateArguments)
String format(javax.servlet.http.HttpServletRequest request, String pattern, LanguageWrapper[] arguments)
String format(javax.servlet.http.HttpServletRequest request, String pattern, LanguageWrapper[] arguments, boolean translateArguments)
String format(javax.servlet.http.HttpServletRequest request, String pattern, Object argument)
String format(javax.servlet.http.HttpServletRequest request, String pattern, Object argument, boolean translateArguments)
String format(javax.servlet.http.HttpServletRequest request, String pattern, Object[] arguments)
String format(javax.servlet.http.HttpServletRequest request, String pattern, Object[] arguments, boolean translateArguments)
String format(Locale locale, String pattern, List<Object> arguments)
String format(Locale locale, String pattern, Object argument)
String format(Locale locale, String pattern, Object argument, boolean translateArguments)
String format(Locale locale, String pattern, Object[] arguments)
String format(Locale locale, String pattern, Object[] arguments, boolean translateArguments)
String format(ResourceBundle resourceBundle, String pattern, Object argument)
String format(ResourceBundle resourceBundle, String pattern, Object argument, boolean translateArguments)
String format(ResourceBundle resourceBundle, String pattern, Object[] arguments)
String format(ResourceBundle resourceBundle, String pattern, Object[] arguments, boolean translateArguments)
String get(javax.servlet.http.HttpServletRequest request, ResourceBundle resourceBundle, String key)
String get(javax.servlet.http.HttpServletRequest request, ResourceBundle resourceBundle, String key, String defaultValue)
String get(javax.servlet.http.HttpServletRequest request, String key)
String get(javax.servlet.http.HttpServletRequest request, String key, String defaultValue)
String get(Locale locale, String key)
String get(Locale locale, String key, String defaultValue)
String get(ResourceBundle resourceBundle, String key)
String get(ResourceBundle resourceBundle, String key, String defaultValue)
Set<Locale> getAvailableLocales()
Set<Locale> getAvailableLocales(long groupId)
String getBCP47LanguageId(javax.servlet.http.HttpServletRequest request)
String getBCP47LanguageId(Locale locale)
String getBCP47LanguageId(PortletRequest portletRequest)
String getLanguageId(javax.servlet.http.HttpServletRequest request)
String getLanguageId(Locale locale)
String getLanguageId(PortletRequest portletRequest)
Locale getLocale(long groupId, String languageCode)
Locale getLocale(String languageCode)
ResourceBundleLoader getPortalResourceBundleLoader()
Set<Locale> getSupportedLocales()
String getTimeDescription(javax.servlet.http.HttpServletRequest request, long milliseconds)
String getTimeDescription(javax.servlet.http.HttpServletRequest request, long milliseconds, boolean approximate)
String getTimeDescription(javax.servlet.http.HttpServletRequest request, Long milliseconds)
String getTimeDescription(Locale locale, long milliseconds)
String getTimeDescription(Locale locale, long milliseconds, boolean approximate)
String getTimeDescription(Locale locale, Long milliseconds)
void init()
boolean isAvailableLanguageCode(String languageCode)
boolean isAvailableLocale(Locale locale)
boolean isAvailableLocale(long groupId, Locale locale)
boolean isAvailableLocale(long groupId, String languageId)
boolean isAvailableLocale(String languageId)
boolean isBetaLocale(Locale locale)
boolean isDuplicateLanguageCode(String languageCode)
boolean isInheritLocales(long groupId) throws PortalException
PortalException
boolean isSameLanguage(Locale locale1, Locale locale2)
String process(ResourceBundle resourceBundle, Locale locale, String content)
void resetAvailableGroupLocales(long groupId)
void resetAvailableLocales(long companyId)
void updateCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Locale locale)