Interface Language

  • All Superinterfaces:
    Wrapper

    public interface Language
    extends Wrapper
    Language support.
    • Method Detail

      • getText

        String getText​(String label)
        Returns the right text for the label and applicable language.
        Parameters:
        label -
        Returns:
        the right text for the label and applicable language.
      • getValue

        String getValue()
        Returns the value representing the language. E.g. dutch, english.
        Returns:
        the value e.g. dutch, english.
      • getMetaTagValue

        String getMetaTagValue()
        Returns the value for the meta tag. E.g. http-equiv="content-language" nl, en-us.
        Returns:
        the value for the meta tag.
      • getFallbackLanguage

        Language getFallbackLanguage()
        Returns the fall-back language for this language. In case a content item does not have a current version for a language, the application will fall-back to its fallback language when the language fall-back mechanism is enabled.
        Returns:
        the fall-back language
        See Also:
        Website.isFallbackLanguageEnabled()
      • setFallbackLanguage

        void setFallbackLanguage​(Language language)
        Sets the fall-back language.
        Parameters:
        language - The fall-back language to set.
      • getLocale

        Locale getLocale()
        Returns the locale corresponding to this language.
        Returns:
        the locale
      • getName

        String getName()
        Returns the language label representing the name of this language in the current locale, as specified by UserObject.getEditLanguage().
        Returns:
        name of this language in the current locale
        Since:
        10.33.0