calendar localization problem

How to fix extra brackets and quotes in ChronoForms calendar localization.

Overview

The issue occurs when following the FAQ for calendar localization, which incorrectly adds square brackets and single quotes to the first and last items in the month lists.
Edit the calendar's extra attributes by removing all square brackets and single quotes from the data-months and data-monthsShort values, listing only the comma-separated localized names.

Answered
ChronoForms v6
em emmexx 10 Nov, 2017
I followed this faq to localize the calendar but there's a glitch.
The first and last day or month get an extra [ or ].
And the single quotes are displayed too for each item.

'Jan' -> ['Gen'
'Dec' c-> 'Dic']

'January' -> ['Gennaio'
'December' -> 'Dicembre']

maxx

cf v 6.0.12 joomla 3.8.2
em emmexx 16 Nov, 2017
Answer

I followed this faq to localize the calendar but there's a glitch.



I solved by removing the single quotes in extra attributes:

data-days:D, L, M, M, G, V, S
data-months:[Gennaio, Febbraio, Marzo, Aprile, Maggio, Giugno, Luglio, Agosto, Settembre, Ottobre, Novembre, Dicembre]
data-monthsShort:[Gen, Feb, Mar, Apr, Mag, Giu, Lug, Ago, Set, Ott, Nov, Dic]
data-today:Oggi


The faq should be amended.

maxx
em emmexx 20 Nov, 2017
Sorry, every bracket should be removed:

data-days:D, L, M, M, G, V, S
data-months:Gennaio, Febbraio, Marzo, Aprile, Maggio, Giugno, Luglio, Agosto, Settembre, Ottobre, Novembre, Dicembre
data-monthsShort:Gen, Feb, Mar, Apr, Mag, Giu, Lug, Ago, Set, Ott, Nov, Dic
data-today:Oggi


maxx
This topic is locked and no more replies can be posted.