@Deprecated public interface LocalizationService
I18NService for localization service instead.| Modifier and Type | Method and Description |
|---|---|
Locale[] |
getAllLocales(Locale loc)
Deprecated.
as of release 4.3, please use
I18NService.getAllLocales(Locale)
Returns a collection of Locales for the passed Language.Each Locale element only contains language information and gets constructed from the fallback languages of the passed language. |
Locale |
getCurrentDataLocale()
Deprecated.
as of release 4.3, please use
I18NService.getCurrentLocale()
Returns the locale used for reading and writing localized attribute values. Since the underlying
persistence layer may offer fewer localizations it may be different from current locale (see
getCurrentLocale() but should be related some how (e.g. holding the same language part). |
Locale |
getCurrentLocale()
Deprecated.
as of release 4.3, please use
I18NService.getCurrentLocale()
Returns current (session) locale. |
String |
getDataLanguageIsoCode(Locale locale)
Deprecated.
as of release 4.3, please use
I18NService.getBestMatchingLocale(Locale)
Tries to find a data language iso code matching the given locale. |
Locale |
getDataLocale(Locale loc)
Deprecated.
as of release 4.3, please use
I18NService.getBestMatchingLocale(Locale)
For a given locale this method tries to find a matching locale which is backed by a hybris language
item. If the given locale has got country and or variant part and no language can be found for the
complete locale the method tries to find a matching locale without variant and, at last, without
country. In case not even the language part can be matched a exception is raised since the given
locale cannot be used as data locale at all. |
Locale[] |
getFallbackLocales(Locale loc)
Deprecated.
as of release 4.3, please use
I18NService.getFallbackLocales(Locale)
Like getAllLocales(Locale loc) but just return the fallbacks themselves |
Locale |
getLocaleByString(String locale)
Deprecated.
as of release 4.3, not supported anymore. Please use
CommonI18NService.getLocaleForLanguage(de.hybris.platform.core.model.c2l.LanguageModel)
Returns a Locale according language (iso-code), country (iso-code) and vendor id. The three
parameters are passed as String. Supported delimiters are: _ , . ;
|
PK |
getMatchingPkForDataLocale(Locale locale)
Deprecated.
Returns proper language PK for matching locale.
|
Set<Locale> |
getSupportedDataLocales()
Deprecated.
as of release 4.3, please use
I18NService.getSupportedLocales() |
boolean |
isLocalizationFallbackEnabled()
Deprecated.
as of release 4.3, please use
I18NService.isLocalizationFallbackEnabled()
Returns false if in the current JaloSession the attribute
AbstractItemModel.LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER does not exists or the value of this
attribute is set to false. |
void |
setCurrentLocale(Locale loc)
Deprecated.
as of release 4.3, please use
I18NService.setCurrentLocale(Locale)
Changes current session locale. |
void |
setLocalizationFallbackEnabled(boolean enabled)
Deprecated.
as of release 4.3, please use
I18NService.setLocalizationFallbackEnabled(boolean)
Sets to the current JaloSession the attribute
AbstractItemModel.LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER with the given parameter. Enables or
diables the localization fallback mode. |
static final String BEAN
@Deprecated Locale getLocaleByString(String locale)
CommonI18NService.getLocaleForLanguage(de.hybris.platform.core.model.c2l.LanguageModel)
Returns a Locale according language (iso-code), country (iso-code) and vendor id. The three
parameters are passed as String. Supported delimiters are: _ , . ;
getLocaleByIsoCode("de_DE_WIN");
getLocaleByIsoCode("en,AT,");
@Deprecated Locale[] getAllLocales(Locale loc)
I18NService.getAllLocales(Locale)
Returns a collection of Locales for the passed Language.@Deprecated Locale[] getFallbackLocales(Locale loc)
I18NService.getFallbackLocales(Locale)
Like getAllLocales(Locale loc) but just return the fallbacks themselves@Deprecated Locale getDataLocale(Locale loc)
I18NService.getBestMatchingLocale(Locale)
For a given locale this method tries to find a matching locale which is backed by a hybris language
item. If the given locale has got country and or variant part and no language can be found for the
complete locale the method tries to find a matching locale without variant and, at last, without
country. In case not even the language part can be matched a exception is raised since the given
locale cannot be used as data locale at all.loc - the locale to matchIllegalArgumentException - if no matching locale could be found@Deprecated Locale getCurrentLocale()
I18NService.getCurrentLocale()
Returns current (session) locale.JaloSession the attached Locale.@Deprecated void setCurrentLocale(Locale loc)
I18NService.setCurrentLocale(Locale)
Changes current session locale.loc - the new session localeIllegalArgumentException - if locale is null or if underlying persistence layer does not provide a matching data locale@Deprecated Locale getCurrentDataLocale()
I18NService.getCurrentLocale()
Returns the locale used for reading and writing localized attribute values. Since the underlying
persistence layer may offer fewer localizations it may be different from current locale (see
getCurrentLocale() but should be related some how (e.g. holding the same language part).@Deprecated String getDataLanguageIsoCode(Locale locale)
I18NService.getBestMatchingLocale(Locale)
Tries to find a data language iso code matching the given locale.locale - the locale to get data language code forIllegalArgumentException - if not data language could be found@Deprecated boolean isLocalizationFallbackEnabled()
I18NService.isLocalizationFallbackEnabled()
Returns false if in the current JaloSession the attribute
AbstractItemModel.LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER does not exists or the value of this
attribute is set to false.true if in the current JaloSession the localization fallback is enabled.@Deprecated void setLocalizationFallbackEnabled(boolean enabled)
I18NService.setLocalizationFallbackEnabled(boolean)
Sets to the current JaloSession the attribute
AbstractItemModel.LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER with the given parameter. Enables or
diables the localization fallback mode.enabled - if true the localization fallback will be enabled.@Deprecated Set<Locale> getSupportedDataLocales()
I18NService.getSupportedLocales()Locales for the current system.PK getMatchingPkForDataLocale(Locale locale)
locale - the locale to get data language code forIllegalArgumentException - when matching DataLocale cannot be findCopyright © 2017 SAP SE. All Rights Reserved.