summaryrefslogtreecommitdiff
path: root/inc/lang/zh-tw
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-07-04 16:41:19 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-07-04 16:41:19 +0200
commit4ca83a77b85b265fbb47d93854865845e05645cd (patch)
treeadb6a666c4c97cea254adc3fca42cc075243a00b /inc/lang/zh-tw
parentdc6ff004a94faa44d41f2747cc6a0141d072d6e8 (diff)
downloadrpg-4ca83a77b85b265fbb47d93854865845e05645cd.tar.gz
rpg-4ca83a77b85b265fbb47d93854865845e05645cd.tar.bz2
upgrade to jQuery 1.11.1 and jQuery-UI 1.11.0. #778
This now pulls all data from official jQuery sources. Either their CDN or their github account. Google tends to serve outdated or even broken files :-( Unfortunately there's no simple way to get the latest stable jQuery-UI so for now the version has to be adjusted manually in the script.
Diffstat (limited to 'inc/lang/zh-tw')
-rw-r--r--inc/lang/zh-tw/jquery.ui.datepicker.js56
1 files changed, 35 insertions, 21 deletions
diff --git a/inc/lang/zh-tw/jquery.ui.datepicker.js b/inc/lang/zh-tw/jquery.ui.datepicker.js
index b9105ea50..c9e6dfcb6 100644
--- a/inc/lang/zh-tw/jquery.ui.datepicker.js
+++ b/inc/lang/zh-tw/jquery.ui.datepicker.js
@@ -1,23 +1,37 @@
/* Chinese initialisation for the jQuery UI date picker plugin. */
/* Written by Ressol (ressol@gmail.com). */
-jQuery(function($){
- $.datepicker.regional['zh-TW'] = {
- closeText: '關閉',
- prevText: '&#x3C;上月',
- nextText: '下月&#x3E;',
- currentText: '今天',
- monthNames: ['一月','二月','三月','四月','五月','六月',
- '七月','八月','九月','十月','十一月','十二月'],
- monthNamesShort: ['一月','二月','三月','四月','五月','六月',
- '七月','八月','九月','十月','十一月','十二月'],
- dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
- dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
- dayNamesMin: ['日','一','二','三','四','五','六'],
- weekHeader: '周',
- dateFormat: 'yy/mm/dd',
- firstDay: 1,
- isRTL: false,
- showMonthAfterYear: true,
- yearSuffix: '年'};
- $.datepicker.setDefaults($.datepicker.regional['zh-TW']);
-});
+(function( factory ) {
+ if ( typeof define === "function" && define.amd ) {
+
+ // AMD. Register as an anonymous module.
+ define([ "../datepicker" ], factory );
+ } else {
+
+ // Browser globals
+ factory( jQuery.datepicker );
+ }
+}(function( datepicker ) {
+
+datepicker.regional['zh-TW'] = {
+ closeText: '關閉',
+ prevText: '&#x3C;上月',
+ nextText: '下月&#x3E;',
+ currentText: '今天',
+ monthNames: ['一月','二月','三月','四月','五月','六月',
+ '七月','八月','九月','十月','十一月','十二月'],
+ monthNamesShort: ['一月','二月','三月','四月','五月','六月',
+ '七月','八月','九月','十月','十一月','十二月'],
+ dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
+ dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
+ dayNamesMin: ['日','一','二','三','四','五','六'],
+ weekHeader: '周',
+ dateFormat: 'yy/mm/dd',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: true,
+ yearSuffix: '年'};
+datepicker.setDefaults(datepicker.regional['zh-TW']);
+
+return datepicker.regional['zh-TW'];
+
+}));