Class ConfigureLanguageAction

    • Constructor Detail

      • ConfigureLanguageAction

        public ConfigureLanguageAction()
    • Method Detail

      • validate

        public void validate()
        Specified by:
        validate in interface MessageHolderAware
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        Overrides:
        validate in class com.opensymphony.xwork2.ActionSupport
      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • getInstalledLanguagesList

        public List<com.atlassian.core.util.PairType> getInstalledLanguagesList()
      • getGlobalDefaultLocale

        public String getGlobalDefaultLocale()
      • setGlobalDefaultLocale

        public void setGlobalDefaultLocale​(String globalDefaultLocale)
      • getGlobalDefaultLocaleUserFriendly

        public String getGlobalDefaultLocaleUserFriendly()
        Returns the user-friendly version of the locale set as the global default
        Returns:
        A string representing the locale
      • isCurrentGlobalLocale

        public boolean isCurrentGlobalLocale​(String locale)
        Determines if the given locale name is the same as the default global locale
        Parameters:
        locale -
        Returns:
        true if the same, false otherwise
      • isEditMode

        public boolean isEditMode()