I added language_ja_JP.jar with translated .properties files, and switched to Japanese locale as default.
Then, I was trying to create a new issue and click calendar icon, but date picker was displayed with blank window.
I searched the exisiting bug with same situation and found the following comment:
http://jira.atlassian.com/browse/JRA-2652
----------------------------------------------------------------------------------------------------
I'm in chinese environment(i'll use the calendar-zh.js in calendar.jsp). When click the date picker image in create-new-issue page, it will pop up a windows with a script error. Debug and find following error prompt:
Calendar._TT.DEF_DATE_FORMAT is null or it's not an object
(some this meaning in chinese).
And the cussor of the debugger stop at following the last line:
Calendar = function (mondayFirst, dateStr, onSelected, onClose) {
// member variables
this.activeDiv = null;
this.currentDateEl = null;
this.getDateStatus = null;
this.timeout = null;
this.onSelected = onSelected || null;
this.onClose = onClose || null;
this.dragging = false;
this.hidden = false;
this.minYear = 1970;
this.maxYear = 2050;
this.dateFormat = Calendar._TT["DEF_DATE_FORMAT"];
----------------------------------------------------------------------------------------------------
Does anyone know a solution for this problem?
Shinji Taneto
shinji.taneto@portus.co.jp
I'd just solved similar problem,below is my solution:
1. check JIRA configuration wether using Encoding UTF-8.if so, u must check very carefully that the file calendar-*.js is also Encoded by UTF-8,and the file name is correct. (so many problems relate to using calendar occur only because of using wrong encoding format or wrong calendar-*.js file name. ) I use Editplus to check wether the file have UTF-8 format:
open the file calendar-**.js in Editplus, if file content looks fine and file-format-text displayed in Editplus status bar is "PC,U8",then the file is ok(file-format-text is located in right-bottom of Editplus Editor).
2. check jira-application.properties ,setup correct date fromat,for example:
jira.date.picker.java.format = yyyy.MM.dd
jira.date.picker.javascript.format = %Y.%m.%e
3.check calendar-**.js,setup correct dataformat .Mine is :
// date formats
Calendar._TT["DEF_DATE_FORMAT"] = "yyyy.MM.dd";
Calendar._TT["TT_DATE_FORMAT"] = "yyyy.MM.dd";
4.check calendar-**.js,be sure have these lines:
// First day of the week. "0" means display Sunday first, "1" means display
// Monday first, etc.
Calendar._FD = 0;