]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker - Fixed #4987 - Add bosnian language to DatePicker
authorKeith Wood <kbwood.au@gmail.com>
Tue, 8 Dec 2009 00:02:19 +0000 (00:02 +0000)
committerKeith Wood <kbwood.au@gmail.com>
Tue, 8 Dec 2009 00:02:19 +0000 (00:02 +0000)
demos/datepicker/localization.html
demos/index.html
ui/i18n/jquery.ui.datepicker-bs.js [new file with mode: 0644]

index 13688400d94d1746db07d391acbc20251f59b763..f5b123a0b8a516d0db50076fe6093b71f92536b2 100644 (file)
@@ -10,6 +10,7 @@
        <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ar.js"></script>
        <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-az.js"></script>
        <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-bg.js"></script>
+       <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-bs.js"></script>
        <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ca.js"></script>
        <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-cs.js"></script>
        <script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-da.js"></script>
@@ -77,6 +78,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="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>
                <option value="zh-CN">Chinese Simplified (&#31616;&#20307;&#20013;&#25991;)</option>
index 6789f2af632d120e36dfbcfb3f4d2573bbeee5d6..d71532608364de7771906dacf6bdf6a3352a646b 100644 (file)
@@ -36,6 +36,7 @@
        <script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-af.js"></script>
        <script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ar.js"></script>
        <script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-az.js"></script>
+       <script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-bs.js"></script>
        <script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-bg.js"></script>
        <script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ca.js"></script>
        <script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-cs.js"></script>
diff --git a/ui/i18n/jquery.ui.datepicker-bs.js b/ui/i18n/jquery.ui.datepicker-bs.js
new file mode 100644 (file)
index 0000000..4999448
--- /dev/null
@@ -0,0 +1,23 @@
+/* Bosnian i18n for the jQuery UI date picker plugin. */\r
+/* Written by Kenan Konjo. */\r
+jQuery(function($){\r
+       $.datepicker.regional['bs'] = {\r
+               closeText: 'Zatvori', \r
+               prevText: '&#x3c;', \r
+               nextText: '&#x3e;', \r
+               currentText: 'Danas', \r
+               monthNames: ['Januar','Februar','Mart','April','Maj','Juni',\r
+               'Juli','August','Septembar','Oktobar','Novembar','Decembar'],\r
+               monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',\r
+               'Jul','Aug','Sep','Okt','Nov','Dec'],\r
+               dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],\r
+               dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],\r
+               dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],\r
+               weekHeader: 'Wk',\r
+               dateFormat: 'dd.mm.yy',\r
+               firstDay: 1,\r
+               isRTL: false,\r
+               showMonthAfterYear: false,\r
+               yearSuffix: ''};\r
+       $.datepicker.setDefaults($.datepicker.regional['bs']);\r
+});
\ No newline at end of file