Class CalendarLanguageUtil

java.lang.Object
com.atlassian.confluence.pages.actions.CalendarLanguageUtil

public class CalendarLanguageUtil extends Object
Default implementaion that reads mappings from calendar-language-util.properties file. Thank you Jira.
  • Method Details

    • getInstance

      public static CalendarLanguageUtil getInstance()
    • hasTranslationForLanguage

      public boolean hasTranslationForLanguage(String language)
      Determines if a translation for a language exists
      Parameters:
      language - language
      Returns:
      true if exists, false otherwise or if given language was null
    • getCalendarFilenameForLanguage

      public String getCalendarFilenameForLanguage(String language)
      Returns a filename of the calendar file for a given language.
      Returns:
      a filename for the given language if a translation file exists, otherwise the filename for English