]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Added Khmer localization. Fixes #8116 - Datepicker: Add Khmer localization.
authorDouglas <replaceafill@system76.(none)>
Mon, 13 Feb 2012 01:56:13 +0000 (20:56 -0500)
committerScott González <scott.gonzalez@gmail.com>
Mon, 13 Feb 2012 02:02:17 +0000 (21:02 -0500)
(cherry picked from commit 8406d97c6d3721d54485770355d71de55468b0e0)

demos/datepicker/localization.html
demos/index.html
ui/i18n/jquery.ui.datepicker-km.js [new file with mode: 0644]

index e11a8243878b4bfd9dbd5b96e3d309a301230193..9b7021468b8d767ce8a312f117b673c156878a34 100644 (file)
@@ -42,6 +42,7 @@
        <script src="../../ui/i18n/jquery.ui.datepicker-it.js"></script>
        <script src="../../ui/i18n/jquery.ui.datepicker-ja.js"></script>
        <script src="../../ui/i18n/jquery.ui.datepicker-kk.js"></script>
+       <script src="../../ui/i18n/jquery.ui.datepicker-km.js"></script>
        <script src="../../ui/i18n/jquery.ui.datepicker-ko.js"></script>
        <script src="../../ui/i18n/jquery.ui.datepicker-lb.js"></script>
        <script src="../../ui/i18n/jquery.ui.datepicker-lt.js"></script>
                <option value="it">Italian (Italiano)</option>
                <option value="ja">Japanese (&#26085;&#26412;&#35486;)</option>
                <option value="kk">Kazakhstan (Kazakh)</option>
+               <option value="km">Khmer</option>
                <option value="ko">Korean (&#54620;&#44397;&#50612;)</option>
                <option value="lv">Latvian (Latvie&ouml;u Valoda)</option>
                <option value="lt">Lithuanian (lietuviu kalba)</option>
index 3c58e8fafaecebe578ac2a86e82c58468ae11ff0..d8285d7734f133cd528498620c090a79597d9891 100644 (file)
@@ -71,6 +71,7 @@
        <script src="../ui/i18n/jquery.ui.datepicker-it.js"></script>
        <script src="../ui/i18n/jquery.ui.datepicker-ja.js"></script>
        <script src="../ui/i18n/jquery.ui.datepicker-kk.js"></script>
+       <script src="../ui/i18n/jquery.ui.datepicker-km.js"></script>
        <script src="../ui/i18n/jquery.ui.datepicker-ko.js"></script>
        <script src="../ui/i18n/jquery.ui.datepicker-lb.js"></script>
        <script src="../ui/i18n/jquery.ui.datepicker-lt.js"></script>
diff --git a/ui/i18n/jquery.ui.datepicker-km.js b/ui/i18n/jquery.ui.datepicker-km.js
new file mode 100644 (file)
index 0000000..f9c4e3a
--- /dev/null
@@ -0,0 +1,23 @@
+/* Khmer initialisation for the jQuery calendar extension. */
+/* Written by Chandara Om (chandara.teacher@gmail.com). */
+jQuery(function($){
+       $.datepicker.regional['km'] = {
+               closeText: 'ធ្វើ​រួច',
+               prevText: 'មុន',
+               nextText: 'បន្ទាប់',
+               currentText: 'ថ្ងៃ​នេះ',
+               monthNames: ['មករា','កុម្ភៈ','មីនា','មេសា','ឧសភា','មិថុនា',
+               'កក្កដា','សីហា','កញ្ញា','តុលា','វិច្ឆិកា','ធ្នូ'],
+               monthNamesShort: ['មករា','កុម្ភៈ','មីនា','មេសា','ឧសភា','មិថុនា',
+               'កក្កដា','សីហា','កញ្ញា','តុលា','វិច្ឆិកា','ធ្នូ'],
+               dayNames: ['អាទិត្យ', 'ចន្ទ', 'អង្គារ', 'ពុធ', 'ព្រហស្បតិ៍', 'សុក្រ', 'សៅរ៍'],
+               dayNamesShort: ['អា', 'ច', 'អ', 'ពុ', 'ព្រហ', 'សុ', 'សៅ'],
+               dayNamesMin: ['អា', 'ច', 'អ', 'ពុ', 'ព្រហ', 'សុ', 'សៅ'],
+               weekHeader: 'សប្ដាហ៍',
+               dateFormat: 'dd-mm-yy',
+               firstDay: 1,
+               isRTL: false,
+               showMonthAfterYear: false,
+               yearSuffix: ''};
+       $.datepicker.setDefaults($.datepicker.regional['km']);
+});