public class CalendarResourceIncluder extends Object
For the date pickers, we need to include the javascript for the calendar. However, many of the
date pickers are generated in velocity, where it is not easy to call out to WebResourceManager (see
macros.vm
).
This class gives you a nice way of including resources.
Constructor and Description |
---|
CalendarResourceIncluder() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasTranslation(Locale locale)
Checks if there is a translation for the pop-up calendar in the language of the given locale.
|
void |
includeForLocale(Locale locale)
Include the javascript resources for the DHTML calendar.
|
public boolean hasTranslation(Locale locale)
locale
- user's locale.public void includeForLocale(Locale locale)
If a translation is not found for the locale then an English translation is used. See JRA-23434.
locale
- The user's locale.Copyright © 2002-2019 Atlassian. All Rights Reserved.