[MGNLSTK-1325] Can't display calendar when locale is ja Created: 17/Dec/13 Updated: 29/Jan/14 Resolved: 21/Jan/14 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | templates |
| Affects Version/s: | 2.7 |
| Fix Version/s: | 2.7.2 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Masao Suda | Assignee: | Christopher Zimmermann |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | i18n, quickwin | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Date of First Response: | |
| Epic Link: | Add Japanese translation |
| Description |
|
– Repro Steps. – – Problem – The following Exception occured. ERROR ndering.engine.ModeDependentRenderExceptionHandler: Error while rendering [/demo-project/news-and-events/events-overview/extras/extras1/extrasItem0] with template [standard-templating-kit:components/extras/stkExtrasCalendar]: RenderException: java.lang.StringIndexOutOfBoundsException: String index out of range: 2 – Workaround – <th ${cmsfn.createHtmlAttribute('class', cssClass)}><abbr title="${date?string('EEEE')}">${date?string('EE')?substring(0,2)}</abbr></th> to <th ${cmsfn.createHtmlAttribute('class', cssClass)}><abbr title="${date?string('EEEE')}">${date?string('EE')}</abbr></th> *omit substring method – Reason – |
| Comments |
| Comment by Christopher Zimmermann [ 21/Jan/14 ] |
|
We want to trim calendar days to max 2 chars so that the template looks okay. But some languages like japanese have only 1 char per day. |