Sha256: 4230ff9ad1b85a4e8ca519d7e7d3d8257af9efdb8b6eebf0582fc981904ce3c4
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
I18N ==== The plugin supports i18n for the month and weekday names and the ``weekStart`` option. The default is English ("en"); other available translations are avilable in the ``js/locales/`` directory, simply include your desired locale after the plugin. To add more languages, simply add a key to ``$.fn.datepicker.dates``, before calling ``.datepicker()``. Example:: $.fn.datepicker.dates['en'] = { days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], today: "Today", clear: "Clear" }; Right-to-left languages may also include ``rtl: true`` to make the calendar display appropriately. If your browser (or those of your users) is displaying characters wrong, chances are the browser is loading the javascript file with a non-unicode encoding. Simply add ``charset="UTF-8"`` to your ``script`` tag: .. code-block:: html <script type="text/javascript" src="bootstrap-datepicker.XX.js" charset="UTF-8"></script> :: $('.datepicker').datepicker({ language: 'XX' });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-datepicker-1.2.0 | docs/i18n.rst |
bootstrap-datepicker-1.1.1 | docs/i18n.rst |