com.atlassian.jira.web.action.util
Class CalendarLanguageUtilImpl

java.lang.Object
  extended by 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.


Constructor Summary
CalendarLanguageUtilImpl()
           
 
Method Summary
 String getCalendarFilenameForLanguage(String language)
          Returns a filename of the calendar file for a given language.
static CalendarLanguageUtil getInstance()
           
 boolean hasTranslationForLanguage(String language)
          Determines if a translation for a language exists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarLanguageUtilImpl

public CalendarLanguageUtilImpl()
Method Detail

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-2014 Atlassian. All Rights Reserved.