From 90959389ee895f5123589e5be17081fdbe340283 Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Wed, 15 Feb 2012 10:39:20 -0500 Subject: [PATCH] Added Datepicker Hindi i18n file. Fixed #8118 - Datepicker i18n - Hindi localization --- demos/datepicker/localization.html | 2 ++ demos/index.html | 1 + ui/i18n/jquery.ui.datepicker-hi.js | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 ui/i18n/jquery.ui.datepicker-hi.js diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 9b7021468..c276a1679 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -34,6 +34,7 @@ + @@ -124,6 +125,7 @@ + diff --git a/demos/index.html b/demos/index.html index 6469e884b..81217cba3 100644 --- a/demos/index.html +++ b/demos/index.html @@ -68,6 +68,7 @@ + diff --git a/ui/i18n/jquery.ui.datepicker-hi.js b/ui/i18n/jquery.ui.datepicker-hi.js new file mode 100644 index 000000000..d75e98ead --- /dev/null +++ b/ui/i18n/jquery.ui.datepicker-hi.js @@ -0,0 +1,23 @@ +/* Hindi initialisation for the jQuery UI date picker plugin. */ +/* Written by Michael Dawart. */ +jQuery(function($){ + $.datepicker.regional['hi'] = { + closeText: 'होकर', + prevText: 'अगला', + nextText: 'नेक्स्ट', + currentText: 'आज', + monthNames: ['जनवरी ','फरवरी','मार्च','अप्रेल','मै','जून', + 'जूलाई','अगस्त ','सितम्बर','आक्टोबर','नवम्बर','दिसम्बर'], + monthNamesShort: ['जन', 'फर', 'मार्च', 'अप्रेल', 'मै', 'जून', + 'जूलाई', 'अग', 'सित', 'आक्ट', 'नव', 'िद'], + dayNames: ['रविवासर', 'सोमवासर', 'मंगलवासर', 'बुधवासर', 'गुरुवासर', 'शुक्रवासर', 'शनिवासर'], + dayNamesShort: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], + dayNamesMin: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], + weekHeader: 'हफ्ता', + dateFormat: 'mm/dd/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['hi']); +});