@ProviderType public interface TranslationConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_CATEGORY_LABEL
Name of the property on category nodes that contains the label.
|
static String |
PROPERTY_LANGUAGE_LABEL
Name of the property on language nodes that contains the label.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getCategories()
Returns a Map of the currently allowed content categories The default location for the categories is:
"/libs/granite/translation/resources/categories".
|
Map<String,String> |
getLanguages()
Deprecated.
since 2.3.0, use
getLanguages(ResourceResolver) instead.
Returns a Map of the currently allowed language codes. The default location for the language codes is:
"/libs/wcm/core/resources/languages" |
Map<String,String> |
getLanguages(ResourceResolver resolver)
Returns a Map of the currently allowed language codes.
|
static final String PROPERTY_LANGUAGE_LABEL
static final String PROPERTY_CATEGORY_LABEL
@Deprecated Map<String,String> getLanguages() throws TranslationException
getLanguages(ResourceResolver) instead.
Returns a Map of the currently allowed language codes. The default location for the language codes is:
"/libs/wcm/core/resources/languages"Map<String, String> containing the list of allowed language codes and their respective labels
(in English) (<Language Code, Language Label>)TranslationException - the translation exceptionMap<String,String> getLanguages(ResourceResolver resolver)
resolver - used for resolving language code pathMap<String, String> containing the list of allowed language codes and their respective labels
(in English) (<Language Code, Language Label>)Map<String,String> getCategories() throws TranslationException
Map<String, String> containing the list of allowed content categories and their respective
labels (in English) (<Content Category, Category Label>)TranslationException - the translation exceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved