Localization for DatePicker

gvouliakis 23 Jul, 2011
Hallo from Kos!

How can I change language for DatePicker when a user selects for example el-GR as default language for the site?

As I know the days and months options for DatePicker in DateTime Picker config field in the general tab are global. I have tried to include strings like "July=Ιούλιος" in "on Load" event (Multi Language action) but unfortunally no translation took place.

Thanks,
George
GreyHead 23 Jul, 2011
Hi George,

If it's a single language site then you can set the Validation language on the form JS Validation tab; click the 'form name' link in the Forms Manager to see it.

If it's a multi-language site then I think that my Show HTML [GH] action will handle changing the validation language.

Bob
abletech 20 Sep, 2011

Hi George,

If it's a single language site then you can set the Validation language on the form JS Validation tab; click the 'form name' link in the Forms Manager to see it.

If it's a multi-language site then I think that my Show HTML [GH] action will handle changing the validation language.

Bob



A specification: this is true for translating the Javascript validation error messages, but not for days and monthh in Date Picker. These should be configured in "DateTime Picker config" under GENERAL tab of the form settings. For example to show in Italian language I've set:

days: ['Domenica', 'Lunedi', 'Martedi', 'Mercoledi', 'Giovedi', 'Venerdi', 'Sabato'], months: ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre']


I also wanted to have date in 31/12/2011 form, so added here at the end: ,format:'d/m/Y'
This topic is locked and no more replies can be posted.