Store
Community Documentation

v3 Knowledgebase

How to translate the datepicker feature.

In order to translate the Datepicker feature first install your website language package, because this feature is connected to it.

Then, just follow these steps:

1) Download the datepicker language example code from here:

https://www.dropbox.com/s/xwef8y7c8x2pym2/datepicker_language_example_code.txt


2) To translate the following phrases from the file "datepicker_language_example_code.txt":

closeText:
prevText:
nextText:
currentText:
monthNames:
monthNamesShort
dayNames
dayNamesShort
dayNamesMin
weekHeader
dateFormat
FirstDay


In the line #2 where it said

#2 $. datepicker.regional ['LANG_ID_HERE']

To add the ID of the language package of your site, for example, if you will use it for the language package "Spanish" where the language package ID is "es", then the "datepicker.regional" should looks like this:

$.datepicker.regional['es']

In the Line #20 where it said:

$.datepicker.setDefaults($.datepicker.regional['LANG_ID_HERE']);

Do the same, just change the language ID according to your language package.

Example:

$. datepicker.setDefaults ($. datepicker.regional ['es'])

3) Save this file here: static/jscript/jquery/locale/.

The format for the file is jquery.ui.datepicker-LANG_ID.js. For example, Spanish LANG_ID is "es", then the name may be:
jquery.ui.datepicker-es.js


3)Clear your site's cache.

In order to test it take a look to the following screen-shots:

1 datepicker.png 2datepicker.png 3datepicker.png

Spanish language package can be downloded from here:
* https://www.dropbox.com/s/o0g5uhcfjbu6t2g/jquery.ui.datepicker-es.js