com.atlassian.jira.web.action.util
Class CalendarLanguageUtilImpl
java.lang.Object
com.atlassian.jira.web.action.util.CalendarLanguageUtilImpl
- All Implemented Interfaces:
- CalendarLanguageUtil
public final class CalendarLanguageUtilImpl
- extends Object
- implements CalendarLanguageUtil
Default implementation that reads mappings from calendar-language-util.properties file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalendarLanguageUtilImpl
public CalendarLanguageUtilImpl()
getInstance
public static CalendarLanguageUtil getInstance()
hasTranslationForLanguage
public boolean hasTranslationForLanguage(String language)
- Determines if a translation for a language exists
- Specified by:
hasTranslationForLanguage
in interface CalendarLanguageUtil
- 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.
- Specified by:
getCalendarFilenameForLanguage
in interface CalendarLanguageUtil
- Parameters:
language
- language
- Returns:
- a filename if a translation file exists, null otherwise or if given language was null
Copyright © 2002-2013 Atlassian. All Rights Reserved.