public class

CalendarLanguageUtil

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

Class Overview

Default implementaion that reads mappings from calendar-language-util.properties file. Thank you JIRA.

Summary

Public Methods
String getCalendarFilenameForLanguage(String language)
Returns a filename of the calendar file for a given language.
synchronized static CalendarLanguageUtil getInstance()
boolean hasTranslationForLanguage(String language)
Determines if a translation for a language exists
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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

public static synchronized CalendarLanguageUtil getInstance ()

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