Package org.ametys.odf.translation
Class TranslationHelper
java.lang.Object
org.ametys.odf.translation.TranslationHelper
Translation helper: get and set translations for a content.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTranslations
(Content content) Get the translations of a content.static void
setTranslations
(ModifiableContent content, Map<String, String> translations) Set the translations on a content.
-
Field Details
-
TRANSLATIONS_METADATA
The translations metadata name.- See Also:
-
-
Method Details
-
getTranslations
Get the translations of a content.- Parameters:
content
- the Content.- Returns:
- the translations as a Map of language -> content ID. FIXME CMS-9941: Use the DataHolder Internal API
-
setTranslations
Set the translations on a content.- Parameters:
content
- the Content.translations
- the translations to set, as a Map of language -> content ID. FIXME CMS-9941: Use the DataHolder Internal API
-