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.
      • setValue

        void setValue​(String value)
        Sets the value representing the language. E.g. dutch, english.
        Parameters:
        value -
        Since:
        10.38.0
      • 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.
      • setMetaTagValue

        void setMetaTagValue​(String metaTagValue)
        Sets the value for the meta tag. E.g. http-equiv="content-language" nl, en-us.
        Parameters:
        metaTagValue -
        Since:
        10.38.0
      • 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.
      • isActive

        boolean isActive()
        Indicates whether the language is active or not.
        Returns:
        true when the language is active, false when not.
        Since:
        10.38.0
      • setActive

        void setActive​(boolean active)
        Sets the active state of the language.
        Parameters:
        active - The active state.
        Since:
        10.38.0
      • getEditLanguageLabel

        String getEditLanguageLabel​(String langId)
        Returns the English or Dutch edit language label for this language.
        Parameters:
        langId - value of the edit language for which to return the label, which can be either one of the EN_US and NL_NL constants.
        Returns:
        The edit language label.
        Since:
        10.38.0
      • 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