Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Objective:
English
To localize the Date Picker field to a specific language
Thai

เมื่อต้องการแปลฟิลด์ตัวใช้เลือกวันที่เป็นภาษาเฉพาะ

...

Example 1:

The example below uses "zh-CN".

...

Code Block
<script type="text/javascript" src="http://listr.googlecode.com/svn/trunk/listr/lib/js/ui/i18n/ui.datepicker-zh-CN.js" ></script>
<script type="text/javascript">
  $(document).ready(function(){
    $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
  });
</script> 


Example 2:

The next example uses French "fr"

  1. Search for a jQuery Date Pickerfor French i.e https://gist.github.com/corsonr/4306287#file-jquery-ui-datepicker-fr-js
  2. download the file
  3. upload said file to the relevant app. Design App > Properties & Export > Add Resource
  4. Click the file in the Resource tab and take note of its hash variable (for example it would be something like #appResource.jquery.ui.datepicker-fr.js#)
  5. Then where the Date Pickeris located, drag and drop the custom HTML and paste the following code 
Code Block
<script type="text/javascript" src="#appResource.jquery.ui.datepicker-fr.js#"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $.datepicker.setDefaults($.datepicker.regional['fr']);
  });
</script>