Class CalendarLanguageUtilImpl
java.lang.Object
com.atlassian.jira.web.action.util.CalendarLanguageUtilImpl
- All Implemented Interfaces:
CalendarLanguageUtil
Default implementation that reads mappings from calendar-language-util.properties file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCalendarFilenameForLanguage(String language) Returns a filename of the calendar file for a given language.static CalendarLanguageUtilbooleanhasTranslationForLanguage(String language) Determines if a translation for a language exists
-
Constructor Details
-
CalendarLanguageUtilImpl
public CalendarLanguageUtilImpl()
-
-
Method Details
-
getInstance
-
hasTranslationForLanguage
Determines if a translation for a language exists- Specified by:
hasTranslationForLanguagein interfaceCalendarLanguageUtil- Parameters:
language- language- Returns:
- true if exists, false otherwise or if given language was null
-
getCalendarFilenameForLanguage
Returns a filename of the calendar file for a given language.- Specified by:
getCalendarFilenameForLanguagein interfaceCalendarLanguageUtil- Parameters:
language- language- Returns:
- a filename if a translation file exists, null otherwise or if given language was null
-