aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Selitskas <p.selitskas@gmail.com>2012-12-02 17:02:39 +0300
committerScott González <scott.gonzalez@gmail.com>2012-12-05 10:54:53 -0500
commitcff4c3c4f3395d3f9837bd1affb8107d7ae65841 (patch)
tree9997b5616c65d778094712cf10c149e51727d753
parent598cdae199fed9b3aa1700142e8e00a61fc6e61a (diff)
downloadjquery-ui-cff4c3c4f3395d3f9837bd1affb8107d7ae65841.tar.gz
jquery-ui-cff4c3c4f3395d3f9837bd1affb8107d7ae65841.zip
Datepicker: Added Belarusian locale. Fixes #8885 - Datepicker: Add Belarusian locale.
-rw-r--r--demos/datepicker/localization.html2
-rw-r--r--ui/i18n/jquery.ui.datepicker-be.js23
2 files changed, 25 insertions, 0 deletions
diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html
index f39677f09..c7c415622 100644
--- a/demos/datepicker/localization.html
+++ b/demos/datepicker/localization.html
@@ -12,6 +12,7 @@
<script src="../../ui/i18n/jquery.ui.datepicker-ar.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-ar-DZ.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-az.js"></script>
+ <script src="../../ui/i18n/jquery.ui.datepicker-be.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-bg.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-bs.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-ca.js"></script>
@@ -100,6 +101,7 @@
<option value="hy">Armenian (&#1344;&#1377;&#1397;&#1381;&#1408;&#1381;&#1398;)</option>
<option value="az">Azerbaijani (Az&#601;rbaycan dili)</option>
<option value="eu">Basque (Euskara)</option>
+ <option value="be">Belarusian</option>
<option value="bs">Bosnian (Bosanski)</option>
<option value="bg">Bulgarian (&#1073;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1080; &#1077;&#1079;&#1080;&#1082;)</option>
<option value="ca">Catalan (Catal&agrave;)</option>
diff --git a/ui/i18n/jquery.ui.datepicker-be.js b/ui/i18n/jquery.ui.datepicker-be.js
new file mode 100644
index 000000000..be605dab4
--- /dev/null
+++ b/ui/i18n/jquery.ui.datepicker-be.js
@@ -0,0 +1,23 @@
+/* Belarusian initialisation for the jQuery UI date picker plugin. */
+/* Written by Pavel Selitskas <p.selitskas@gmail.com> */
+jQuery(function($){
+ $.datepicker.regional['be'] = {
+ closeText: 'Зачыніць',
+ prevText: '&larr;Папяр.',
+ nextText: 'Наст.&rarr;',
+ currentText: 'Сёньня',
+ monthNames: ['Студзень','Люты','Сакавік','Красавік','Травень','Чэрвень',
+ 'Ліпень','Жнівень','Верасень','Кастрычнік','Лістапад','Сьнежань'],
+ monthNamesShort: ['Сту','Лют','Сак','Кра','Тра','Чэр',
+ 'Ліп','Жні','Вер','Кас','Ліс','Сьн'],
+ dayNames: ['нядзеля','панядзелак','аўторак','серада','чацьвер','пятніца','субота'],
+ dayNamesShort: ['ндз','пнд','аўт','срд','чцв','птн','сбт'],
+ dayNamesMin: ['Нд','Пн','Аў','Ср','Чц','Пт','Сб'],
+ weekHeader: 'Тд',
+ dateFormat: 'dd.mm.yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['be']);
+});