Forums

Date Picker multilanguage

ferino 28 Jun, 2015
Hi,
I have a multi-language site.
I use locales in Chronoforms.
Everything works OK.

I would like to translate date picker strings into multiple languages similarly to my form strings.

Is it possible?

ferino
ferino 28 Jun, 2015
I try this:
http://www.chronoengine.com/faqs/3330-how-do-i-set-the-date-picker-language
but not worked for me...
GreyHead 28 Jun, 2015
Hi ferino,

This is possible but it's not straight-forward. I think it can be done with JavaScript. I will experiment and report what I find here.

Bob
ferino 29 Jun, 2015
Hi Bob,
I think I figured it out:
I used variables:
data-shortdays=["_NED_", "_PON_", "_UTO_", "_STR_", "_STV_", "_PIA_", "_SOB_"]
And these variables I defined in the locales...

It seems that it works 😀
ferino
GreyHead 29 Jun, 2015
Hi ferino,

Well done - you are ahead of me :-)

Bob
admin_wiky 06 Oct, 2015
Hi Ferino,

could you be more specific about locales? I did try it but take no effect.
GreyHead 06 Oct, 2015
Hi Homeopat,

I guess that the Locale entries will look like this
_NED_=Sun
_PON_=Mon
_UTO_=Tue
_STR_=Wed
_STV_=Thu
_PIA_=Fri
_SOB_=Sat
(I may have the days in the wrong order). Then repeat for each Locale you are using.

Bob
admin_wiky 06 Oct, 2015
still not working.
I set
locale: data-shortdays
language: en-gb
strict match: no
strings: _SU_=Sun
_Mo_=Mon
_TU_=Tue
_WE_=Wed
_TH_=Thu
_FR_=Fri
_SA_=Sat

what I did wrong?
ferino 06 Oct, 2015
1 Likes
Hi homeopat
locale entries:
_NED_=Sun
_PON_=Mon
_UTO_=Tue
_STR_=Wed
_STV_=Thu
_PIA_=Fri
_SOB_=Sat


and Extra params in Element settings:
data-shortdays=["_NED_", "_PON_", "_UTO_", "_STR_", "_STV_", "_PIA_", "_SOB_"]
data-shortdays_indexes=[1, 2, 3, 4, 5, 6, 0]
admin_wiky 06 Oct, 2015
thank you, now I understand and it works🙂
This topic is locked and no more replies can be posted.