aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/bower_components/bootstrap-datepicker/docs/i18n.rst
diff options
context:
space:
mode:
authorMarvin Borner2018-07-13 19:06:45 +0200
committerMarvin Borner2018-07-13 19:06:45 +0200
commit6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 (patch)
treedbc87ef16fa01d5d99116de283592b8fe5e02944 /public/bower_components/bootstrap-datepicker/docs/i18n.rst
parentdfd839f27146df0ad0494e11734fc7d310c70ebf (diff)
Fixed many permissions and began admin interface
Diffstat (limited to 'public/bower_components/bootstrap-datepicker/docs/i18n.rst')
-rw-r--r--public/bower_components/bootstrap-datepicker/docs/i18n.rst36
1 files changed, 36 insertions, 0 deletions
diff --git a/public/bower_components/bootstrap-datepicker/docs/i18n.rst b/public/bower_components/bootstrap-datepicker/docs/i18n.rst
new file mode 100644
index 0000000..ba2928a
--- /dev/null
+++ b/public/bower_components/bootstrap-datepicker/docs/i18n.rst
@@ -0,0 +1,36 @@
+I18N
+====
+
+The plugin supports i18n for the month and weekday names and the ``weekStart`` option. The default is English ("en"); other available translations are available 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"],
+ daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
+ daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
+ 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",
+ format: "mm/dd/yyyy",
+ titleFormat: "MM yyyy", /* Leverages same syntax as 'format' */
+ weekStart: 0
+ };
+
+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 src="bootstrap-datepicker.XX.js" charset="UTF-8"></script>
+
+::
+
+ $('.datepicker').datepicker({
+ language: 'XX'
+ });
+
+.. figure:: _static/screenshots/option_language.png
+ :align: center