Interface LocalizedContribution

    • Method Detail

      • from

        static LocalizedContribution from​(Contribution contribution)
        Decorates the specified contribution with the support of l10n. By default, the language will be the default language in Silverpeas.
        Parameters:
        contribution - a contribution.
        Returns:
        a localized contribution.
      • from

        static LocalizedContribution from​(Contribution contribution,
                                          String language)
        Decorates the specified contribution with the support of l10n and as authored in the specified language.
        Parameters:
        contribution - a contribution.
        language - the language in which the contribution was authored in the case of an i18n Silverpeas.
        Returns:
        a contribution localized in the specified language.
      • getLanguage

        default String getLanguage()
        Gets the language in which this contribution was authored. By default, returns the default language in Silverpeas.
        Specified by:
        getLanguage in interface Translation
        Returns:
        the language at which this contribution was authored.