[MAGNOLIA-3537] Calendar is not working for Norwegian language (possibly others) Created: 31/Jan/11  Updated: 19/Dec/16  Resolved: 04/Aug/15

Status: Closed
Project: Magnolia
Component/s: admininterface
Affects Version/s: 4.3.7
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Marcin Kwiatkowski Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

Trying to render calendar (for setting publication date i.e.) throws JavaScript error:

weekend is undefined
[Break On This Error] if (weekend.indexOf(realday.toString()) != -1) {

I've done some debugging on my own and it appears that calendar-no.js (and possibly others as well) is missing this expression:
Calendar._TT["WEEKEND"] = ...;

which at the end causes the error.



 Comments   
Comment by Magnolia International [ 09/Feb/11 ]

Indeed, it looks like a bunch of files miss this:

$ grep -L WEEKEND magnolia-module-admininterface/src/main/resources/mgnl-resources/calendar/lang/*

There are a couple of other, similar, calendar issues - some we've fixed in the past, some are still opened. Could we check if the library and its translations have been updated, rather than fix one issue at a time, only to fall on the next a little later ?

Comment by Michael Mühlebach [ 04/Aug/15 ]

We're closing this issue as outdated as it was reported for 4.4.x or earlier versions which are no longer supported. Don't hesitate to reopen or create a new ticket in case this is still relevant and you'll experience it on 4.5.x or later versions.

Generated at Mon Feb 12 03:47:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.