Interface I18n

  • All Known Implementing Classes:
    I18NHelper

    public interface I18n
    This interface defines all the i18n related stuff as it is configured in Silverpeas: the default language, all the languages supported in the current Silverpeas, and so on.
    Author:
    mmoquillon
    • Method Detail

      • get

        static I18n get()
        Gets an instance of I18n.
        Returns:
        an instance of I18n
      • getDefaultLanguage

        String getDefaultLanguage()
        Gets the default language of the platform when no one is explicitly specified.
        Returns:
        the ISO 639-1 code of the default language.
      • getSupportedLanguages

        Set<String> getSupportedLanguages()
        Gets the languages that are supported by the platform and from which users can choose their preferred one.
        Returns:
        an array of ISO 639-1 codes of languages.