Permalink
Browse files

Add localization for date, time picker, which auto recognize current …

…WP locale and set the correct language.

Link: http://www.deluxeblogtips.com/forums/viewtopic.php?id=368
  • Loading branch information...
rilwis committed Mar 25, 2013
1 parent b0a7e9e commit 594ce492b0bac5b86329c069b5b9f62377c3ad05
Showing with 2,428 additions and 16 deletions.
  1. +9 −9 inc/classes/meta-box.php
  2. +5 −2 inc/fields/date.php
  3. +7 −1 inc/fields/datetime.php
  4. +6 −1 inc/fields/time.php
  5. +2 −1 js/date.js
  6. +3 −1 js/datetime.js
  7. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-af.js
  8. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ar-DZ.js
  9. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ar.js
  10. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-az.js
  11. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-be.js
  12. +24 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-bg.js
  13. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-bs.js
  14. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ca.js
  15. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-cs.js
  16. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-cy-GB.js
  17. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-da.js
  18. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-de.js
  19. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-el.js
  20. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-en-AU.js
  21. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-en-GB.js
  22. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-en-NZ.js
  23. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-eo.js
  24. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-es.js
  25. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-et.js
  26. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-eu.js
  27. +59 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-fa.js
  28. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-fi.js
  29. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-fo.js
  30. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-fr-CA.js
  31. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-fr-CH.js
  32. +25 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-fr.js
  33. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-gl.js
  34. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-he.js
  35. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-hi.js
  36. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-hr.js
  37. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-hu.js
  38. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-hy.js
  39. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-id.js
  40. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-is.js
  41. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-it.js
  42. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ja.js
  43. +21 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ka.js
  44. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-kk.js
  45. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-km.js
  46. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ko.js
  47. +24 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ky.js
  48. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-lb.js
  49. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-lt.js
  50. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-lv.js
  51. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-mk.js
  52. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ml.js
  53. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ms.js
  54. +22 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-nb.js
  55. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-nl-BE.js
  56. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-nl.js
  57. +22 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-nn.js
  58. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-no.js
  59. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-pl.js
  60. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-pt-BR.js
  61. +22 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-pt.js
  62. +21 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-rm.js
  63. +26 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ro.js
  64. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ru.js
  65. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-sk.js
  66. +24 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-sl.js
  67. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-sq.js
  68. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-sr-SR.js
  69. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-sr.js
  70. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-sv.js
  71. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-ta.js
  72. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-th.js
  73. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-tj.js
  74. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-tr.js
  75. +24 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-uk.js
  76. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-vi.js
  77. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-zh-CN.js
  78. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-zh-HK.js
  79. +23 −0 js/jqueryui/datepicker-i18n/jquery.ui.datepicker-zh-TW.js
  80. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-af.js
  81. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-bg.js
  82. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-ca.js
  83. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-cs.js
  84. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-de.js
  85. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-el.js
  86. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-es.js
  87. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-et.js
  88. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-eu.js
  89. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-fi.js
  90. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-fr.js
  91. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-gl.js
  92. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-he.js
  93. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-hu.js
  94. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-id.js
  95. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-it.js
  96. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-ja.js
  97. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-ko.js
  98. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-lt.js
  99. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-nl.js
  100. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-no.js
  101. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-pl.js
  102. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-pt-BR.js
  103. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-pt.js
  104. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-ro.js
  105. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-ru.js
  106. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-sk.js
  107. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-sv.js
  108. +17 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-th.js
  109. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-tr.js
  110. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-uk.js
  111. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-vi.js
  112. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-zh-CN.js
  113. +20 −0 js/jqueryui/timepicker-i18n/jquery-ui-timepicker-zh-TW.js
  114. +2 −1 js/time.js
View
@@ -17,24 +17,24 @@
class RW_Meta_Box
{
/**
- * Meta box information
+ * @var array Meta box information
*/
- var $meta_box;
+ public $meta_box;
/**
- * Fields information
+ * @var array Fields information
*/
- var $fields;
+ public $fields;
/**
- * Contains all field types of current meta box
+ * @var array Contains all field types of current meta box
*/
- var $types;
+ public $types;
/**
- * Validation information
+ * @var array Validation information
*/
- var $validation;
+ public $validation;
/**
* Create meta box based on given data
@@ -43,7 +43,7 @@ class RW_Meta_Box
*
* @param array $meta_box Meta box definition
*
- * @return \RW_Meta_Box
+ * @return RW_Meta_Box
*/
function __construct( $meta_box )
{
View
@@ -18,7 +18,10 @@ static function admin_enqueue_scripts()
wp_register_style( 'jquery-ui-theme', "{$url}/jquery.ui.theme.css", array(), '1.8.17' );
wp_enqueue_style( 'jquery-ui-datepicker', "{$url}/jquery.ui.datepicker.css", array( 'jquery-ui-core', 'jquery-ui-theme' ), '1.8.17' );
- wp_enqueue_script( 'rwmb-date', RWMB_JS_URL . 'date.js', array( 'jquery-ui-datepicker' ), RWMB_VER, true );
+ $locale = str_replace( '_', '-', get_locale() );
+ wp_register_script( 'jquery-ui-datepicker-i18n', RWMB_JS_URL . 'jqueryui/datepicker-i18n/jquery.ui.datepicker-' . $locale . '.js', array( 'jquery-ui-datepicker' ), '1.8.17', true );
+ wp_enqueue_script( 'rwmb-date', RWMB_JS_URL . 'date.js', array( 'jquery-ui-datepicker-i18n' ), RWMB_VER, true );
+ wp_localize_script( 'rwmb-date', 'RWMB_Datepicker', array( 'lang' => $locale ) );
}
/**
@@ -66,4 +69,4 @@ static function normalize_field( $field )
return $field;
}
}
-}
+}
View
@@ -22,7 +22,13 @@ static function admin_enqueue_scripts()
$url = RWMB_JS_URL . 'jqueryui';
wp_register_script( 'jquery-ui-timepicker', "{$url}/jquery-ui-timepicker-addon.js", array( 'jquery-ui-datepicker', 'jquery-ui-slider' ), '0.9.7', true );
- wp_enqueue_script( 'rwmb-datetime', RWMB_JS_URL . 'datetime.js', array( 'jquery-ui-timepicker' ), RWMB_VER, true );
+
+ $locale = str_replace( '_', '-', get_locale() );
+ wp_register_script( 'jquery-ui-datepicker-i18n', "{$url}/datepicker-i18n/jquery.ui.datepicker-{$locale}.js", array( 'jquery-ui-datepicker' ), '1.8.17', true );
+ wp_register_script( 'jquery-ui-timepicker-i18n', "{$url}/timepicker-i18n/jquery-ui-timepicker-{$locale}.js", array( 'jquery-ui-timepicker' ), '0.9.7', true );
+
+ wp_enqueue_script( 'rwmb-datetime', RWMB_JS_URL . 'datetime.js', array( 'jquery-ui-datepicker-i18n', 'jquery-ui-timepicker-i18n' ), RWMB_VER, true );
+ wp_localize_script( 'rwmb-datetime', 'RWMB_Datetimepicker', array( 'lang' => $locale ) );
}
/**
View
@@ -22,7 +22,12 @@ static function admin_enqueue_scripts( )
$url = RWMB_JS_URL . 'jqueryui';
wp_register_script( 'jquery-ui-timepicker', "{$url}/jquery-ui-timepicker-addon.js", array( 'jquery-ui-datepicker', 'jquery-ui-slider' ), '0.9.7', true );
+
+ $locale = str_replace( '_', '-', get_locale() );
+ wp_register_script( 'jquery-ui-timepicker-i18n', "{$url}/timepicker-i18n/jquery-ui-timepicker-{$locale}.js", array( 'jquery-ui-timepicker' ), '0.9.7', true );
+
wp_enqueue_script( 'rwmb-time', RWMB_JS_URL.'time.js', array( 'jquery-ui-timepicker' ), RWMB_VER, true );
+ wp_localize_script( 'rwmb-time', 'RWMB_Timepicker', array( 'lang' => $locale ) );
}
/**
@@ -70,4 +75,4 @@ static function normalize_field( $field )
return $field;
}
}
-}
+}
View
@@ -16,7 +16,8 @@ function rwmb_update_date_picker()
} );
}
-jQuery( document ).ready( function()
+jQuery( function( $ )
{
+ $.datepicker.setDefaults( $.datepicker.regional[RWMB_Datepicker.lang] );
rwmb_update_date_picker();
} );
View
@@ -16,7 +16,9 @@ function rwmb_update_datetime_picker()
} );
}
-jQuery( document ).ready( function()
+jQuery( function( $ )
{
+ $.datepicker.setDefaults( $.datepicker.regional[RWMB_Datetimepicker.lang] );
+ $.timepicker.setDefaults( $.timepicker.regional[RWMB_Datetimepicker.lang] );
rwmb_update_datetime_picker();
} );
@@ -0,0 +1,23 @@
+/* Afrikaans initialisation for the jQuery UI date picker plugin. */
+/* Written by Renier Pretorius. */
+jQuery(function($){
+ $.datepicker.regional['af'] = {
+ closeText: 'Selekteer',
+ prevText: 'Vorige',
+ nextText: 'Volgende',
+ currentText: 'Vandag',
+ monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie',
+ 'Julie','Augustus','September','Oktober','November','Desember'],
+ monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun',
+ 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
+ dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
+ dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'],
+ dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'],
+ weekHeader: 'Wk',
+ dateFormat: 'dd/mm/yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['af']);
+});
@@ -0,0 +1,23 @@
+/* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/
+/* Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */
+
+jQuery(function($){
+ $.datepicker.regional['ar-DZ'] = {
+ closeText: 'إغلاق',
+ prevText: '<السابق',
+ nextText: 'التالي>',
+ currentText: 'اليوم',
+ monthNames: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان',
+ 'جويلية', 'أوت', 'سبتمبر','أكتوبر', 'نوفمبر', 'ديسمبر'],
+ monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
+ dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
+ dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
+ dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
+ weekHeader: 'أسبوع',
+ dateFormat: 'dd/mm/yy',
+ firstDay: 6,
+ isRTL: true,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['ar-DZ']);
+});
@@ -0,0 +1,23 @@
+/* Arabic Translation for jQuery UI date picker plugin. */
+/* Khaled Alhourani -- me@khaledalhourani.com */
+/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
+jQuery(function($){
+ $.datepicker.regional['ar'] = {
+ closeText: 'إغلاق',
+ prevText: '<السابق',
+ nextText: 'التالي>',
+ currentText: 'اليوم',
+ monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران',
+ 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'],
+ monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
+ dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
+ dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
+ dayNamesMin: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
+ weekHeader: 'أسبوع',
+ dateFormat: 'dd/mm/yy',
+ firstDay: 6,
+ isRTL: true,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['ar']);
+});
@@ -0,0 +1,23 @@
+/* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */
+/* Written by Jamil Najafov (necefov33@gmail.com). */
+jQuery(function($) {
+ $.datepicker.regional['az'] = {
+ closeText: 'Bağla',
+ prevText: '<Geri',
+ nextText: 'İrəli>',
+ currentText: 'Bugün',
+ monthNames: ['Yanvar','Fevral','Mart','Aprel','May','İyun',
+ 'İyul','Avqust','Sentyabr','Oktyabr','Noyabr','Dekabr'],
+ monthNamesShort: ['Yan','Fev','Mar','Apr','May','İyun',
+ 'İyul','Avq','Sen','Okt','Noy','Dek'],
+ dayNames: ['Bazar','Bazar ertəsi','Çərşənbə axşamı','Çərşənbə','Cümə axşamı','Cümə','Şənbə'],
+ dayNamesShort: ['B','Be','Ça','Ç','Ca','C','Ş'],
+ dayNamesMin: ['B','B','Ç','С','Ç','C','Ş'],
+ weekHeader: 'Hf',
+ dateFormat: 'dd.mm.yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['az']);
+});
@@ -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']);
+});
@@ -0,0 +1,24 @@
+/* Bulgarian initialisation for the jQuery UI date picker plugin. */
+/* Written by Stoyan Kyosev (http://svest.org). */
+jQuery(function($){
+ $.datepicker.regional['bg'] = {
+ closeText: 'затвори',
+ prevText: '&#x3C;назад',
+ nextText: 'напред&#x3E;',
+ nextBigText: '&#x3E;&#x3E;',
+ currentText: 'днес',
+ monthNames: ['Януари','Февруари','Март','Април','Май','Юни',
+ 'Юли','Август','Септември','Октомври','Ноември','Декември'],
+ monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни',
+ 'Юли','Авг','Сеп','Окт','Нов','Дек'],
+ dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'],
+ dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'],
+ dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'],
+ weekHeader: 'Wk',
+ dateFormat: 'dd.mm.yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['bg']);
+});
@@ -0,0 +1,23 @@
+/* Bosnian i18n for the jQuery UI date picker plugin. */
+/* Written by Kenan Konjo. */
+jQuery(function($){
+ $.datepicker.regional['bs'] = {
+ closeText: 'Zatvori',
+ prevText: '&#x3C;',
+ nextText: '&#x3E;',
+ currentText: 'Danas',
+ monthNames: ['Januar','Februar','Mart','April','Maj','Juni',
+ 'Juli','August','Septembar','Oktobar','Novembar','Decembar'],
+ monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
+ 'Jul','Aug','Sep','Okt','Nov','Dec'],
+ dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
+ dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
+ dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
+ weekHeader: 'Wk',
+ dateFormat: 'dd.mm.yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['bs']);
+});
@@ -0,0 +1,23 @@
+/* Inicialització en català per a l'extensió 'UI date picker' per jQuery. */
+/* Writers: (joan.leon@gmail.com). */
+jQuery(function($){
+ $.datepicker.regional['ca'] = {
+ closeText: 'Tanca',
+ prevText: 'Anterior',
+ nextText: 'Següent',
+ currentText: 'Avui',
+ monthNames: ['gener','febrer','març','abril','maig','juny',
+ 'juliol','agost','setembre','octubre','novembre','desembre'],
+ monthNamesShort: ['gen','feb','març','abr','maig','juny',
+ 'jul','ag','set','oct','nov','des'],
+ dayNames: ['diumenge','dilluns','dimarts','dimecres','dijous','divendres','dissabte'],
+ dayNamesShort: ['dg','dl','dt','dc','dj','dv','ds'],
+ dayNamesMin: ['dg','dl','dt','dc','dj','dv','ds'],
+ weekHeader: 'Set',
+ dateFormat: 'dd/mm/yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['ca']);
+});
@@ -0,0 +1,23 @@
+/* Czech initialisation for the jQuery UI date picker plugin. */
+/* Written by Tomas Muller (tomas@tomas-muller.net). */
+jQuery(function($){
+ $.datepicker.regional['cs'] = {
+ closeText: 'Zavřít',
+ prevText: '&#x3C;Dříve',
+ nextText: 'Později&#x3E;',
+ currentText: 'Nyní',
+ monthNames: ['leden','únor','březen','duben','květen','červen',
+ 'červenec','srpen','září','říjen','listopad','prosinec'],
+ monthNamesShort: ['led','úno','bře','dub','kvě','čer',
+ 'čvc','srp','zář','říj','lis','pro'],
+ dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],
+ dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', '', 'so'],
+ dayNamesMin: ['ne','po','út','st','čt','','so'],
+ weekHeader: 'Týd',
+ dateFormat: 'dd.mm.yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['cs']);
+});
@@ -0,0 +1,23 @@
+/* Welsh/UK initialisation for the jQuery UI date picker plugin. */
+/* Written by William Griffiths. */
+jQuery(function($){
+ $.datepicker.regional['cy-GB'] = {
+ closeText: 'Done',
+ prevText: 'Prev',
+ nextText: 'Next',
+ currentText: 'Today',
+ monthNames: ['Ionawr','Chwefror','Mawrth','Ebrill','Mai','Mehefin',
+ 'Gorffennaf','Awst','Medi','Hydref','Tachwedd','Rhagfyr'],
+ monthNamesShort: ['Ion', 'Chw', 'Maw', 'Ebr', 'Mai', 'Meh',
+ 'Gor', 'Aws', 'Med', 'Hyd', 'Tac', 'Rha'],
+ dayNames: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher', 'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'],
+ dayNamesShort: ['Sul', 'Llu', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'],
+ dayNamesMin: ['Su','Ll','Ma','Me','Ia','Gw','Sa'],
+ weekHeader: 'Wy',
+ dateFormat: 'dd/mm/yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['cy-GB']);
+});
@@ -0,0 +1,23 @@
+/* Danish initialisation for the jQuery UI date picker plugin. */
+/* Written by Jan Christensen ( deletestuff@gmail.com). */
+jQuery(function($){
+ $.datepicker.regional['da'] = {
+ closeText: 'Luk',
+ prevText: '&#x3C;Forrige',
+ nextText: 'Næste&#x3E;',
+ currentText: 'Idag',
+ monthNames: ['Januar','Februar','Marts','April','Maj','Juni',
+ 'Juli','August','September','Oktober','November','December'],
+ monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
+ 'Jul','Aug','Sep','Okt','Nov','Dec'],
+ dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],
+ dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'],
+ dayNamesMin: ['','Ma','Ti','On','To','Fr',''],
+ weekHeader: 'Uge',
+ dateFormat: 'dd-mm-yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['da']);
+});
Oops, something went wrong.

0 comments on commit 594ce49

Please sign in to comment.