From 020b1c6d773d9d23bef81a3e6033489b10c956db Mon Sep 17 00:00:00 2001 From: Thura Aung Date: Tue, 17 Apr 2018 13:51:50 +0900 Subject: [PATCH] Create datepicker-ma.js Myanmar translation for bootstrap datepicker --- ui/i18n/datepicker-ma.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ui/i18n/datepicker-ma.js diff --git a/ui/i18n/datepicker-ma.js b/ui/i18n/datepicker-ma.js new file mode 100644 index 000000000..94cb012bd --- /dev/null +++ b/ui/i18n/datepicker-ma.js @@ -0,0 +1,37 @@ +/* Myanmar initialisation for the jQuery UI date picker plugin. */ +/* Written by Thura Aung (thura.ucsy@gmail.com). */ +( function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define( [ "../widgets/datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}( function( datepicker ) { + +datepicker.regional.ja = { + closeText: "ပိတ်ပါ", + prevText: "<အရှေ့", + nextText: "အနောက်>", + currentText: "ယခုလ", + monthNames: [ "1လပိုင်း","2လပိုင်း","3လပိုင်း","4လပိုင်း","5လပိုင်း","6လပိုင်း", + "7လပိုင်း","8လပိုင်း","9လပိုင်း","10လပိုင်း","11လပိုင်း","12လပိုင်း" ], + monthNamesShort: [ "1လပိုင်း","2လပိုင်း","3လပိုင်း","4လပိုင်း","5လပိုင်း","6လပိုင်း", + "7လပိုင်း","8လပိုင်း","9လပိုင်း","10လပိုင်း","11လပိုင်း","12လပိုင်း" ], + dayNames: [ "တနင်္ဂနွေ","တနင်္လာ","အင်္ဂါ","ဗုဒ္ဓဟူး","ကြာသပတေး","သောကြာ","စနေ" ], + dayNamesShort: [ "နွေ","လာ","ဂါ","ဟူး","တေး","ကြာ","နေ" ], + dayNamesShort: [ "နွေ","လာ","ဂါ","ဟူး","တေး","ကြာ","နေ" ], + weekHeader: "အပတ်", + dateFormat: "dd/mm/yy", + firstDay: 0, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: "နှစ်" }; +datepicker.setDefaults( datepicker.regional.ma ); + +return datepicker.regional.ma; + +} ) );