public class LocalizationImpl extends java.lang.Object implements Localization
| Constructor and Description |
|---|
LocalizationImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(JSONObject jsonObject)
Deserializes the JSON object into a map of locales and localized strings.
|
java.lang.String[] |
getAvailableLanguageIds(Document document) |
java.lang.String[] |
getAvailableLanguageIds(java.lang.String xml)
Returns the available locales from the localizations XML.
|
java.util.Locale |
getDefaultImportLocale(java.lang.String className,
long classPK,
java.util.Locale contentDefaultLocale,
java.util.Locale[] contentAvailableLocales)
Returns a valid default locale for importing a localized entity.
|
java.util.Locale |
getDefaultImportLocale(java.lang.String className,
java.io.Serializable primaryKey,
java.util.Locale contentDefaultLocale,
java.util.Locale[] contentAvailableLocales)
Returns a valid default locale for importing a localized entity.
|
java.lang.String |
getDefaultLanguageId(Document document) |
java.lang.String |
getDefaultLanguageId(Document document,
java.util.Locale defaultLocale) |
java.lang.String |
getDefaultLanguageId(java.lang.String xml)
Returns the default locale from the localizations XML.
|
java.lang.String |
getDefaultLanguageId(java.lang.String xml,
java.util.Locale defaultLocale) |
java.lang.String |
getLocalization(java.util.function.Function<java.lang.String,java.lang.String> localizationFunction,
java.lang.String requestedLanguageId,
java.lang.String defaultLanguageId) |
java.lang.String |
getLocalization(java.lang.String xml,
java.lang.String requestedLanguageId)
Returns the localized string from the localizations XML in the language.
|
java.lang.String |
getLocalization(java.lang.String xml,
java.lang.String requestedLanguageId,
boolean useDefault)
Returns the localized string from the localizations XML in the language,
optionally using the default language if no localization exists for the
requested language.
|
java.lang.String |
getLocalization(java.lang.String xml,
java.lang.String requestedLanguageId,
boolean useDefault,
java.lang.String defaultValue)
Returns the localized string from the localizations XML in the language,
optionally using the default language if no localization exists for the
requested language.
|
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(java.util.Collection<java.util.Locale> locales,
java.util.Locale defaultLocale,
java.lang.String key)
Returns a map of locales and localized strings for the key.
|
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String parameter)
Returns a map of locales and localized strings for the parameter in the
request.
|
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(javax.portlet.PortletPreferences preferences,
java.lang.String preferenceName)
Returns a map of locales and localized strings for the preference in the
preferences container.
|
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(javax.portlet.PortletPreferences preferences,
java.lang.String preferenceName,
java.lang.String propertyName)
Returns a map of locales and localized strings for the preference in the
preferences container.
|
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(javax.portlet.PortletPreferences preferences,
java.lang.String preferenceName,
java.lang.String propertyName,
java.lang.String defaultPropertyValue,
java.lang.ClassLoader classLoader) |
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(javax.portlet.PortletRequest portletRequest,
java.lang.String parameter)
Returns a map of locales and localized strings for the parameter in the
portlet request.
|
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(javax.portlet.PortletRequest portletRequest,
java.lang.String parameter,
java.util.Map<java.util.Locale,java.lang.String> defaultValues) |
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(java.lang.String xml)
Returns a map of locales and localized strings from the localizations
XML.
|
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(java.lang.String[] languageIds,
java.lang.String[] values)
Returns a map of locales and localized strings for the given languageIds
and values.
|
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(java.lang.String xml,
boolean useDefault) |
java.util.Map<java.util.Locale,java.lang.String> |
getLocalizationMap(java.lang.String bundleName,
java.lang.ClassLoader classLoader,
java.lang.String key,
boolean includeBetaLocales) |
java.lang.String |
getLocalizationXmlFromPreferences(javax.portlet.PortletPreferences preferences,
javax.portlet.PortletRequest portletRequest,
java.lang.String parameter)
Returns the localizations XML for the parameter from the portlet request,
attempting to get data from the preferences container if it is not
available in the portlet request.
|
java.lang.String |
getLocalizationXmlFromPreferences(javax.portlet.PortletPreferences preferences,
javax.portlet.PortletRequest portletRequest,
java.lang.String parameter,
java.lang.String defaultValue)
Returns the localizations XML for the parameter from the portlet request,
attempting to get data from the preferences container if it is not
available in the portlet request.
|
java.lang.String |
getLocalizationXmlFromPreferences(javax.portlet.PortletPreferences preferences,
javax.portlet.PortletRequest portletRequest,
java.lang.String parameter,
java.lang.String prefix,
java.lang.String defaultValue)
Returns the localizations XML for the prefixed parameter from the portlet
request, attempting to get data from the preferences container if it is
not available in the portlet request.
|
java.lang.String |
getLocalizedName(java.lang.String name,
java.lang.String languageId)
Returns the localized name in the language.
|
java.util.Map<java.util.Locale,java.lang.String> |
getMap(LocalizedValuesMap localizedValuesMap) |
java.lang.String |
getPreferencesValue(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId)
Returns the localized preferences value for the key in the language.
|
java.lang.String |
getPreferencesValue(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId,
boolean useDefault)
Returns the localized preferences value for the key in the language,
optionally using the default language if no localization exists for the
requested language.
|
java.lang.String[] |
getPreferencesValues(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId)
Returns the localized preferences values for the key in the language.
|
java.lang.String[] |
getPreferencesValues(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId,
boolean useDefault)
Returns the localized preferences values for the key in the language,
optionally using the default language if no localization exists for the
requested language.
|
java.lang.String |
getSettingsValue(Settings settings,
java.lang.String key,
java.lang.String languageId)
Returns the localized settings value for the key in the language.
|
java.lang.String |
getSettingsValue(Settings settings,
java.lang.String key,
java.lang.String languageId,
boolean useDefault)
Returns the localized settings value for the key in the language,
optionally using the default language if no localization exists for the
requested language.
|
java.lang.String[] |
getSettingsValues(Settings settings,
java.lang.String key,
java.lang.String languageId)
Returns the localized settings values for the key in the language.
|
java.lang.String[] |
getSettingsValues(Settings settings,
java.lang.String key,
java.lang.String languageId,
boolean useDefault)
Returns the localized settings values for the key in the language,
optionally using the default language if no localization exists for the
requested language.
|
java.lang.String |
getXml(LocalizedValuesMap localizedValuesMap,
java.lang.String key) |
java.lang.String |
getXml(java.util.Map<java.lang.String,java.lang.String> map,
java.lang.String defaultLanguageId,
java.lang.String key) |
java.util.Map<java.util.Locale,java.lang.String> |
populateLocalizationMap(java.util.Map<java.util.Locale,java.lang.String> localizationMap,
java.lang.String defaultLanguageId,
long groupId) |
java.lang.String |
removeLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String requestedLanguageId)
Removes the localization for the language from the localizations XML.
|
java.lang.String |
removeLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String requestedLanguageId,
boolean cdata)
Removes the localization for the language from the localizations XML,
optionally storing the localized strings as CDATA in the XML.
|
java.lang.String |
removeLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String requestedLanguageId,
boolean cdata,
boolean localized)
Removes the localization for the language from the localizations XML,
optionally storing the localized strings as CDATA in the XML.
|
void |
setLocalizedPreferencesValues(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletPreferences preferences,
java.lang.String parameter)
Sets the localized preferences values for the parameter in the portlet
request.
|
void |
setPreferencesValue(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId,
java.lang.String value)
Sets the localized preferences value for the key in the language.
|
void |
setPreferencesValues(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId,
java.lang.String[] values)
Sets the localized preferences values for the key in the language.
|
java.lang.String |
updateLocalization(java.util.Map<java.util.Locale,java.lang.String> localizationMap,
java.lang.String xml,
java.lang.String key,
java.lang.String defaultLanguageId)
Updates the localized string for all the available languages in the
localizations XML for the map of locales and localized strings and
changes the default language.
|
java.lang.String |
updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value)
Updates the localized string for the system default language in the
localizations XML.
|
java.lang.String |
updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value,
java.lang.String requestedLanguageId)
Updates the localized string for the language in the localizations XML.
|
java.lang.String |
updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value,
java.lang.String requestedLanguageId,
java.lang.String defaultLanguageId)
Updates the localized string for the language in the localizations XML
and changes the default language.
|
java.lang.String |
updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value,
java.lang.String requestedLanguageId,
java.lang.String defaultLanguageId,
boolean cdata)
Updates the localized string for the language in the localizations XML
and changes the default language, optionally storing the localized
strings as CDATA in the XML.
|
java.lang.String |
updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value,
java.lang.String requestedLanguageId,
java.lang.String defaultLanguageId,
boolean cdata,
boolean localized)
Updates the localized string for the language in the localizations XML
and changes the default language, optionally storing the localized
strings as CDATA in the XML.
|
public java.lang.Object deserialize(JSONObject jsonObject)
Localizationdeserialize in interface LocalizationjsonObject - the JSON objectpublic java.lang.String[] getAvailableLanguageIds(Document document)
getAvailableLanguageIds in interface Localizationpublic java.lang.String[] getAvailableLanguageIds(java.lang.String xml)
LocalizationgetAvailableLanguageIds in interface Localizationxml - the localizations XMLpublic java.util.Locale getDefaultImportLocale(java.lang.String className,
long classPK,
java.util.Locale contentDefaultLocale,
java.util.Locale[] contentAvailableLocales)
LocalizationgetDefaultImportLocale in interface LocalizationclassName - the class name of the entityclassPK - the primary keys of the entitycontentDefaultLocale - the default Locale of the entitycontentAvailableLocales - the available locales of the entitypublic java.util.Locale getDefaultImportLocale(java.lang.String className,
java.io.Serializable primaryKey,
java.util.Locale contentDefaultLocale,
java.util.Locale[] contentAvailableLocales)
LocalizationgetDefaultImportLocale in interface LocalizationclassName - the class name of the entityprimaryKey - the primary keys of the entitycontentDefaultLocale - the default Locale of the entitycontentAvailableLocales - the available locales of the entitypublic java.lang.String getDefaultLanguageId(Document document)
getDefaultLanguageId in interface Localizationpublic java.lang.String getDefaultLanguageId(Document document, java.util.Locale defaultLocale)
getDefaultLanguageId in interface Localizationpublic java.lang.String getDefaultLanguageId(java.lang.String xml)
LocalizationgetDefaultLanguageId in interface Localizationxml - the localizations XMLpublic java.lang.String getDefaultLanguageId(java.lang.String xml,
java.util.Locale defaultLocale)
getDefaultLanguageId in interface Localizationpublic java.lang.String getLocalization(java.util.function.Function<java.lang.String,java.lang.String> localizationFunction,
java.lang.String requestedLanguageId,
java.lang.String defaultLanguageId)
getLocalization in interface Localizationpublic java.lang.String getLocalization(java.lang.String xml,
java.lang.String requestedLanguageId)
LocalizationgetLocalization in interface Localizationxml - the localizations XMLrequestedLanguageId - the ID of the languagepublic java.lang.String getLocalization(java.lang.String xml,
java.lang.String requestedLanguageId,
boolean useDefault)
LocalizationgetLocalization in interface Localizationxml - the localizations XMLrequestedLanguageId - the ID of the languageuseDefault - whether to use the default language if no localization
exists for the requested languageuseDefault is false and no localization
exists for the requested languagepublic java.lang.String getLocalization(java.lang.String xml,
java.lang.String requestedLanguageId,
boolean useDefault,
java.lang.String defaultValue)
LocalizationgetLocalization in interface Localizationxml - the localizations XMLrequestedLanguageId - the ID of the languageuseDefault - whether to use the default language if no localization
exists for the requested languagedefaultValue - the value returned if no localization existsdefaultValue if
useDefault is false and no localization
exists for the requested languagepublic java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(java.util.Collection<java.util.Locale> locales,
java.util.Locale defaultLocale,
java.lang.String key)
LocalizationgetLocalizationMap in interface Localizationlocales - the locales to be used in the mapdefaultLocale - the default localekey - the language key to be translatedpublic java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String parameter)
LocalizationgetLocalizationMap in interface LocalizationhttpServletRequest - the requestparameter - the prefix of the parameters containing the localized
strings. Each localization is loaded from a parameter with this
prefix, followed by an underscore, and the language ID.public java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(javax.portlet.PortletPreferences preferences,
java.lang.String preferenceName)
LocalizationgetLocalizationMap in interface Localizationpreferences - the preferences containerpreferenceName - the prefix of the preference containing the
localized strings. Each localization is loaded from a preference
with this prefix, followed by an underscore, and the language ID.public java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(javax.portlet.PortletPreferences preferences,
java.lang.String preferenceName,
java.lang.String propertyName)
LocalizationgetLocalizationMap in interface Localizationpreferences - the preferences containerpreferenceName - the prefix of the preference containing the
localized strings. Each localization is loaded from a preference
with this prefix, followed by an underscore, and the language ID.propertyName - the name of the property whose value is used as the
localization for the default locale, if no localization exists
for itpublic java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(javax.portlet.PortletPreferences preferences,
java.lang.String preferenceName,
java.lang.String propertyName,
java.lang.String defaultPropertyValue,
java.lang.ClassLoader classLoader)
getLocalizationMap in interface Localizationpublic java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(javax.portlet.PortletRequest portletRequest,
java.lang.String parameter)
LocalizationgetLocalizationMap in interface LocalizationportletRequest - the portlet requestparameter - the prefix of the parameters containing the localized
strings. Each localization is loaded from a parameter with this
prefix, followed by an underscore, and the language ID.public java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(javax.portlet.PortletRequest portletRequest,
java.lang.String parameter,
java.util.Map<java.util.Locale,java.lang.String> defaultValues)
getLocalizationMap in interface Localizationpublic java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(java.lang.String xml)
LocalizationgetLocalizationMap in interface Localizationxml - the localizations XMLpublic java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(java.lang.String xml,
boolean useDefault)
getLocalizationMap in interface Localizationpublic java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(java.lang.String bundleName,
java.lang.ClassLoader classLoader,
java.lang.String key,
boolean includeBetaLocales)
getLocalizationMap in interface Localizationpublic java.util.Map<java.util.Locale,java.lang.String> getLocalizationMap(java.lang.String[] languageIds,
java.lang.String[] values)
LocalizationgetLocalizationMap in interface LocalizationlanguageIds - the languageIds of the localized Stringsvalues - the localized strings for the different languageIdpublic java.lang.String getLocalizationXmlFromPreferences(javax.portlet.PortletPreferences preferences,
javax.portlet.PortletRequest portletRequest,
java.lang.String parameter)
LocalizationgetLocalizationXmlFromPreferences in interface Localizationpreferences - the preferences containerportletRequest - the portlet requestparameter - the prefix of the parameters containing the localized
strings. Each localization is loaded from a parameter with this
prefix, followed by an underscore, and the language ID.public java.lang.String getLocalizationXmlFromPreferences(javax.portlet.PortletPreferences preferences,
javax.portlet.PortletRequest portletRequest,
java.lang.String parameter,
java.lang.String defaultValue)
LocalizationgetLocalizationXmlFromPreferences in interface Localizationpreferences - the preferences containerportletRequest - the portlet requestparameter - the prefix of the parameters containing the localized
strings. Each localization is loaded from a parameter with this
prefix, followed by an underscore, and the language ID.defaultValue - the value used as the localization for the default
locale, if no localization exists for itpublic java.lang.String getLocalizationXmlFromPreferences(javax.portlet.PortletPreferences preferences,
javax.portlet.PortletRequest portletRequest,
java.lang.String parameter,
java.lang.String prefix,
java.lang.String defaultValue)
LocalizationgetLocalizationXmlFromPreferences in interface Localizationpreferences - the preferences containerportletRequest - the portlet requestparameter - the prefix of the parameters containing the localized
strings. Each localization is loaded from a parameter with this
prefix, followed by an underscore, and the language ID.prefix - the value used in the request to prefix the parameter namedefaultValue - the value used as the localization for the default
locale, if no localization exists for itdefaultValue if no localization existspublic java.lang.String getLocalizedName(java.lang.String name,
java.lang.String languageId)
LocalizationgetLocalizedName in interface Localizationname - the name to be localizedlanguageId - the ID of the languagepublic java.util.Map<java.util.Locale,java.lang.String> getMap(LocalizedValuesMap localizedValuesMap)
getMap in interface Localizationpublic java.lang.String getPreferencesValue(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId)
LocalizationgetPreferencesValue in interface Localizationpreferences - the preferences containerkey - the preferences keylanguageId - the ID of the languagepublic java.lang.String getPreferencesValue(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId,
boolean useDefault)
LocalizationgetPreferencesValue in interface Localizationpreferences - the preferences containerkey - the preferences keylanguageId - the ID of the languageuseDefault - whether to use the default language if no localization
exists for the requested languageuseDefault is false and no localization
exists for the requested languagepublic java.lang.String[] getPreferencesValues(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId)
LocalizationgetPreferencesValues in interface Localizationpreferences - the preferences containerkey - the preferences keylanguageId - the ID of the languagepublic java.lang.String[] getPreferencesValues(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId,
boolean useDefault)
LocalizationgetPreferencesValues in interface Localizationpreferences - the preferences containerkey - the preferences keylanguageId - the ID of the languageuseDefault - whether to use the default language if no localization
exists for the requested languageuseDefault is false and no localization
exists for the requested languagepublic java.lang.String getSettingsValue(Settings settings, java.lang.String key, java.lang.String languageId)
LocalizationgetSettingsValue in interface Localizationsettings - the settingskey - the settings keylanguageId - the ID of the languagepublic java.lang.String getSettingsValue(Settings settings, java.lang.String key, java.lang.String languageId, boolean useDefault)
LocalizationgetSettingsValue in interface Localizationsettings - the settingskey - the settings keylanguageId - the ID of the languageuseDefault - whether to use the default language if no localization
exists for the requested languageuseDefault is
false and no localization exists for the requested
language, an empty string is returned.public java.lang.String[] getSettingsValues(Settings settings, java.lang.String key, java.lang.String languageId)
LocalizationgetSettingsValues in interface Localizationsettings - the settingskey - the settings keylanguageId - the ID of the languagepublic java.lang.String[] getSettingsValues(Settings settings, java.lang.String key, java.lang.String languageId, boolean useDefault)
LocalizationgetSettingsValues in interface Localizationsettings - the settingskey - the settings keylanguageId - the ID of the languageuseDefault - whether to use the default language if no localization
exists for the requested languageuseDefault is
false and no localization exists for the requested
language, an empty array is returned.public java.lang.String getXml(LocalizedValuesMap localizedValuesMap, java.lang.String key)
getXml in interface Localizationpublic java.lang.String getXml(java.util.Map<java.lang.String,java.lang.String> map,
java.lang.String defaultLanguageId,
java.lang.String key)
getXml in interface Localizationpublic java.util.Map<java.util.Locale,java.lang.String> populateLocalizationMap(java.util.Map<java.util.Locale,java.lang.String> localizationMap,
java.lang.String defaultLanguageId,
long groupId)
populateLocalizationMap in interface Localizationpublic java.lang.String removeLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String requestedLanguageId)
LocalizationremoveLocalization in interface Localizationxml - the localizations XMLkey - the name of the localized string, such as "Title"requestedLanguageId - the ID of the languagepublic java.lang.String removeLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String requestedLanguageId,
boolean cdata)
LocalizationremoveLocalization in interface Localizationxml - the localizations XMLkey - the name of the localized string, such as "Title"requestedLanguageId - the ID of the languagecdata - whether to store localized strings as CDATA in the XMLpublic java.lang.String removeLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String requestedLanguageId,
boolean cdata,
boolean localized)
LocalizationremoveLocalization in interface Localizationxml - the localizations XMLkey - the name of the localized string, such as "Title"requestedLanguageId - the ID of the languagecdata - whether to store localized strings as CDATA in the XMLlocalized - whether there is a localized fieldpublic void setLocalizedPreferencesValues(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletPreferences preferences,
java.lang.String parameter)
throws java.lang.Exception
LocalizationsetLocalizedPreferencesValues in interface LocalizationportletRequest - the portlet requestpreferences - the preferences containerparameter - the prefix of the parameters containing the localized
strings. Each localization is loaded from a parameter with this
prefix, followed by an underscore, and the language ID.java.lang.Exception - if an exception occurredpublic void setPreferencesValue(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId,
java.lang.String value)
throws java.lang.Exception
LocalizationsetPreferencesValue in interface Localizationpreferences - the preferences containerkey - the preferences keylanguageId - the ID of the languagevalue - the localized valuejava.lang.Exception - if an exception occurredpublic void setPreferencesValues(javax.portlet.PortletPreferences preferences,
java.lang.String key,
java.lang.String languageId,
java.lang.String[] values)
throws java.lang.Exception
LocalizationsetPreferencesValues in interface Localizationpreferences - the preferences containerkey - the preferences keylanguageId - the ID of the languagevalues - the localized valuesjava.lang.Exception - if an exception occurredpublic java.lang.String updateLocalization(java.util.Map<java.util.Locale,java.lang.String> localizationMap,
java.lang.String xml,
java.lang.String key,
java.lang.String defaultLanguageId)
LocalizationupdateLocalization in interface LocalizationlocalizationMap - the locales and localized stringsxml - the localizations XMLkey - the name of the localized string, such as "Title"defaultLanguageId - the ID of the default languagepublic java.lang.String updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value)
LocalizationupdateLocalization in interface Localizationxml - the localizations XMLkey - the name of the localized string, such as "Title"value - the localized stringpublic java.lang.String updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value,
java.lang.String requestedLanguageId)
LocalizationupdateLocalization in interface Localizationxml - the localizations XMLkey - the name of the localized string, such as "Title"value - the localized stringrequestedLanguageId - the ID of the languagepublic java.lang.String updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value,
java.lang.String requestedLanguageId,
java.lang.String defaultLanguageId)
LocalizationupdateLocalization in interface Localizationxml - the localizations XMLkey - the name of the localized string, such as "Title"value - the localized stringrequestedLanguageId - the ID of the languagedefaultLanguageId - the ID of the default languagepublic java.lang.String updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value,
java.lang.String requestedLanguageId,
java.lang.String defaultLanguageId,
boolean cdata)
LocalizationupdateLocalization in interface Localizationxml - the localizations XMLkey - the name of the localized string, such as "Title"value - the localized stringrequestedLanguageId - the ID of the languagedefaultLanguageId - the ID of the default languagecdata - whether to store localized strings as CDATA in the XMLpublic java.lang.String updateLocalization(java.lang.String xml,
java.lang.String key,
java.lang.String value,
java.lang.String requestedLanguageId,
java.lang.String defaultLanguageId,
boolean cdata,
boolean localized)
LocalizationupdateLocalization in interface Localizationxml - the localizations XMLkey - the name of the localized string, such as "Title"value - the localized stringrequestedLanguageId - the ID of the languagedefaultLanguageId - the ID of the default languagecdata - whether to store localized strings as CDATA in the XMLlocalized - whether there is a localized field