Forums

Datepicker language in CF 6

deltafidesign 18 Apr, 2017
How can I set or transtale the language for the datepicker in chronoform 6 ?
GreyHead 18 Apr, 2017
Hi deltafidesign,

I don't know if you can set the language in one go but you can change the language strings using code like this in the Extra attributes box
data-days:S, M, D, M, D, F, S
data-monthsShort:Jan, Feb, Mar, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez
data-months:Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember

Bob
Max_admin 18 Apr, 2017
Hi,

You can add this in the Extra attributes box:

data-days:{lang:short_days}

And this under the "Locales" section after you create a locale for your language of course:

short_days=[S, M, D, M, D, F, S]

Same method for the other strings.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deltafidesign 19 Apr, 2017
I've done what you suggested and I have this error:

Notice: Undefined offset: 1 in /home/sdfgdfg/mysite/libraries/cegcore2/admin/extensions/chronofc/helpers/parser.php on line 64
Max_admin 19 Apr, 2017
Hi deltafidesign,

Please make sure that you have used = sign in the locales section, it's not like other sections where you use ":"

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deltafidesign 19 Apr, 2017
The localization works fine and I've used "=" sign, but if I set the joomla error displaying to "Maximum" I got this error that I didn't got before.
Max_admin 19 Apr, 2017
Do you have an empty line at the end of languages lines ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deltafidesign 19 Apr, 2017
Yes! removed the empty line solved the error.

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