1
don't know if this is the right place for posting..
This is a sort of bug report and a solution proposal at the same time.
Actually the jscript calendar shows a date in the american format: y-mm-dd
I was not able to find where to change language files for having other format like for example: dd-mm-y
Now I've find a fix that works for me and may be could be inserted in the next to come 2.5.1 release.
A)in include/calendarjs.php changed lines 86/87 from:
Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd";
Calendar._TT["TT_DATE_FORMAT"] = "y-mm-dd";
to
Calendar._TT["DEF_DATE_FORMAT"] = "echo _CAL_DEF_DATE_FORMAT;?>";
Calendar._TT["TT_DATE_FORMAT"] = "echo _CAL_TT_DATE_FORMAT;?>";
B) in language/[my_language_name]/calendar.php
added in the end two lines
define("_CAL_DEF_DATE_FORMAT", "dd-mm-y");
define("_CAL_TT_DATE_FORMAT", "dd-mm-y");
this will give a clean localization option to all translators also for jscript calendar, provided that no other solution has been developed
let me know your opinion
Ian