Package org.silverpeas.core.i18n
Interface Translation
-
- All Known Subinterfaces:
ContributionContentTranslation<T>
,LocalizedAttachment
,LocalizedContribution
,ResourceTranslation
- All Known Implementing Classes:
AxisHeaderI18N
,BeanTranslation
,ComponentI18N
,Document
,GlobalSilverContentI18N
,HistorisedDocument
,HistorisedDocumentVersion
,NodeI18NDetail
,PublicationI18N
,SearchResultTranslation
,SilverContentI18N
,SimpleDocument
,SimpleDocumentVersion
,SpaceI18N
,TreeNodeI18N
public interface Translation
A translation of a text, a property of a resource supporting the i18n features. Such a bean can be a user's contribution or a contribution's content or a transverse business entity in Silverpeas. All objects that represent a translation of a given i18n or l10n bean must implement either this interface or one of its more-typed children interfaces/classes.For example, as the
Publication
is a i18n contribution, it must be able to return aPublicationTranslation
instance for each translation asked in a given language. Another example, as the PdC's axis is a i18n entity, it must be able to return aAxisTranslation
instance for each translation asked in a given language.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getLanguage()
Gets the language in which is this translation.
-
-
-
Method Detail
-
getLanguage
String getLanguage()
Gets the language in which is this translation.- Returns:
- the ISO 639-1 code of the language.
-
-