Hello, i am using a form in multilanguage environment. There is a Datepicker Mootools text box in there. I am trying to figure out a way to make Datepicker multilanguage too. It is only in English right now.
Any suggestion or proposal is as always accepted with pleasure😉
Hi Perarg,
Is this ChronoForms v4?
If you have CFv4 RC3.2 or later the MooTools datapicker is included which comes with language files. For earlier releases using the MonkeyPhycics datepicker there are instructions in the DatePicker sticky thread in the CFv4 forum.
Bob
Hi Bob,
yes it is the latest version. I saw the language files, but there is no automatic switch between them...
(i am talking for example about days_abbr variable where you can change the name of months or days)
Hi,
I'm not sure if this is going to work but let's try it:
THIS IS for the
MOOTOOLS DATEPICKER ONLY, its not available for J1.5 and not available in Chronoforms versions before
V4 RC3.211- add a new "Load JS" action AFTER the "show html".
2- insert this code inside it:
Locale.use('fr-FR');
3- if the Date picker is now using french then replace "fr-FR" by "en-US"
4- in your multi language action, add the new key: en-US=fr-FR
or whatever language you need, here is a list of supported ones:
cs-CZ
de-DE
en-US
es-ES
fr-FR
he-IL
it-IT
nl-NL
pl-PL
pt-BR
ru-RU
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Very very very clever!
Respect Max... No words! Respect...
No problems, did it work ?🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
It works like a charm... It is a solution indeed