Package org.silverpeas.core.i18n
Interface Translatable
-
- All Known Subinterfaces:
I18NBean<T>,I18nContribution,LocalizedResource,SilverpeasSharedComponentInstance
- All Known Implementing Classes:
AbstractBean,AbstractI18NBean,AxisHeader,ComponentInst,ComponentInstLight,Document,GlobalSilverContent,HistorisedDocument,HistorisedDocumentVersion,NodeDetail,PdcValueType,PublicationDetail,QuestionContainerHeader,SearchResult,SilverContent,SimpleDocument,SimpleDocumentVersion,SpaceInst,SpaceInstLight,TreeNode,Value
public interface TranslatableAn object in Silverpeas whose the textual properties are translatable in different languages. In this case, the object supports the localization (l10n).- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Translation>
TgetTranslation(String language)Gets a translation in the specified language about some textual properties of the object.
-
-
-
Method Detail
-
getTranslation
<T extends Translation> T getTranslation(String language)
Gets a translation in the specified language about some textual properties of the object. If no such translation exists, then returns the default translation of the object.- Type Parameters:
T- the concrete type of the translation.- Parameters:
language- the ISO 631-1 code of a language.- Returns:
- a translation of the object in the given language. Can be never null.
-
-