[MAGNOLIA-1172] Localization of calendar in the 'date' control doesn't work Created: 30/Oct/06 Updated: 23/Jan/13 Resolved: 10/Mar/08 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | admininterface |
| Affects Version/s: | 3.0 RC4 |
| Fix Version/s: | 3.0.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Adrien FONT | Assignee: | Magnolia International |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | control, i18n | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
windows XP Pro, Tomcat 5.0, java j2sdk1.4.2_12 |
||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Template: |
|
||||||||||||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||||||||||
| Description |
|
When using the calendar of a date controle, the JS objet does not draw correctly if we are not using the english language. It seems like the localization strings are not loaded. Instead, 'undefined' is displayed. <script type="text/javascript" src="/magnolia/.resources/calendar/lang/calendar-fr.js"></script> so, it seems that the file is found and added but the localization resources are not used by the calendar (except with the default english file). |
| Comments |
| Comment by Timo Pulkkinen [ 09/Nov/06 ] |
|
The language file format in DHTML calendar has changed, but many of the language files are still in the old format (hence do not work). |
| Comment by Chris Miner [ 01/Feb/07 ] |
|
Assuming it isn't just that the localization strings are not shown, but also that the calendar consists of just one week, then the problem also occurs for the german version of the calendar. I tracked down the problem to an attribute that you find in three of the calendar localization files. en, es, and ja have a line such as: // First day of the week. "0" means display Sunday first, "1" means display The other files don't. When you add that line to the german version of the calendar, then it works. |
| Comment by Chris Miner [ 01/Feb/07 ] |
|
for the calendar-de.js file |
| Comment by Guillaume Pichenot [ 01/Feb/07 ] |
|
Following the link given above by Timo, I dowloaded the Fr patch and the calendar works fine then (you need to repackage the jar, though). |
| Comment by Chris Miner [ 01/Feb/07 ] |
|
The german language updated version under that link also looks correct. At least it has the right Calendar._FD entry. |
| Comment by Magnolia International [ 01/Feb/07 ] |
|
Guillaume, |
| Comment by Guillaume Pichenot [ 01/Feb/07 ] |
|
Latest release date of the calendar that I can find is April 2005. Last CVS commit is 11 month ago on their sourceforge (most files are 2 years). Corrections :
|
| Comment by Philipp Bracher [ 02/Feb/07 ] |
|
OK to patch in my opinion. |
| Comment by Timo Pulkkinen [ 23/Feb/07 ] |
|
DHTML calendar patch (Finnish language) |
| Comment by Magnolia International [ 23/Feb/07 ] |
|
todo : check all languages for the presence of |
| Comment by Magnolia International [ 26/Feb/07 ] |
|
Added Calendar._FD = 1; everywhere and applied patches, thanks ! |
| Comment by Magnolia International [ 26/Feb/07 ] |
|
commited to 3.0 branch and merged to trunk. |
| Comment by Patrick Aebischer [ 05/Mar/08 ] |
|
I still get that error. I am using Magnolia 3.5.4 on Tomcat 6. The english version works but all others don't. |
| Comment by Philipp Bracher [ 10/Mar/08 ] |
|
sorry for reopening, will create a new issue |
| Comment by Magnolia International [ 24/Sep/08 ] |
|
merged back into trunk and 3.5 and 3.6 branches |