You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2011/11/12 10:31:50 UTC
svn commit: r1201229 - in /ofbiz/trunk/framework:
common/src/org/ofbiz/common/
images/webapp/images/jquery/plugins/datetimepicker/localization/
Author: jleroux
Date: Sat Nov 12 09:31:49 2011
New Revision: 1201229
URL: http://svn.apache.org/viewvc?rev=1201229&view=rev
Log:
A patch from Leon "add datetimepicker language file for zh-CN, zh-HK, zh-TW, and an en one in order to avoid "jquery-ui-timepicker-en.js" not found error" https://issues.apache.org/jira/browse/OFBIZ-4555
1. add datetimepicker language file to system: jquery-ui-timepicker-zh-CN.js, jquery-ui-timepicker-zh-HK.js and jquery-ui-timepicker-zh-TW.js.
2. also add a "jquery-ui-timepicker-en.js" file, it's the default datetimepicker language file but not exist now.
3. run service "createJsLanguageFileMapping" to update sLanguageFileMapping.java accordingly.
jleroux: not sure "jquery-ui-timepicker-en.js" is really needed, but cleaner for sure
Added:
ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js (with props)
ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-CN.js (with props)
ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js (with props)
ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js (with props)
Modified:
ofbiz/trunk/framework/common/src/org/ofbiz/common/JsLanguageFilesMapping.java
Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/JsLanguageFilesMapping.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/JsLanguageFilesMapping.java?rev=1201229&r1=1201228&r2=1201229&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/JsLanguageFilesMapping.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/JsLanguageFilesMapping.java Sat Nov 12 09:31:49 2011
@@ -566,10 +566,10 @@ public final class JsLanguageFilesMappin
localeFiles.put("ca", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js");
localeFiles.put("ca_ES", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js");
localeFiles.put("zh", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js");
- localeFiles.put("zh_CN", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js");
- localeFiles.put("zh_HK", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js");
+ localeFiles.put("zh_CN", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-CN.js");
+ localeFiles.put("zh_HK", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js");
localeFiles.put("zh_SG", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js");
- localeFiles.put("zh_TW", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js");
+ localeFiles.put("zh_TW", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js");
localeFiles.put("hr", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js");
localeFiles.put("hr_HR", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js");
localeFiles.put("cs", "/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-cs.js");
Added: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js?rev=1201229&view=auto
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js (added)
+++ ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js Sat Nov 12 09:31:49 2011
@@ -0,0 +1,17 @@
+/* English (default) translation for the jQuery Timepicker Addon */
+/* Written by Leon Sun */
+(function($) {
+ $.timepicker.regional['en'] = {
+ timeOnlyTitle: 'Choose Time',
+ timeText: 'Time',
+ hourText: 'Hour',
+ minuteText: 'Minute',
+ secondText: 'Second',
+ timezoneText: 'Time Zone',
+ currentText: 'Now',
+ closeText: 'Done',
+ timeFormat: 'hh:mm tt',
+ ampm: false
+ };
+ $.timepicker.setDefaults($.timepicker.regional['en']);
+})(jQuery);
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js
------------------------------------------------------------------------------
svn:keywords = Date Rev Author URL Id
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-en.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-CN.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-CN.js?rev=1201229&view=auto
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-CN.js (added)
+++ ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-CN.js Sat Nov 12 09:31:49 2011
@@ -0,0 +1,17 @@
+/* Chinese translation for the jQuery Timepicker Addon */
+/* Written by Leon Sun */
+(function($) {
+ $.timepicker.regional['zh-CN'] = {
+ timeOnlyTitle: 'éâ¬â°Ã¦â¹Â©Ã¦â¶éâ´',
+ timeText: 'æâ¶éâ´',
+ hourText: 'æâ¶',
+ minuteText: 'Ã¥Ëâ ',
+ secondText: '̤変',
+ timezoneText: 'æâ¶åź',
+ currentText: '现åŨ',
+ closeText: 'å®ÅæËÂ',
+ timeFormat: 'hh:mm',
+ ampm: false
+ };
+ $.timepicker.setDefaults($.timepicker.regional['zh-CN']);
+})(jQuery);
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-CN.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-CN.js
------------------------------------------------------------------------------
svn:keywords = Date Rev Author URL Id
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-CN.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js?rev=1201229&view=auto
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js (added)
+++ ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js Sat Nov 12 09:31:49 2011
@@ -0,0 +1,17 @@
+/* Chinese translation for the jQuery Timepicker Addon */
+/* Written by Leon Sun */
+(function($) {
+ $.timepicker.regional['zh-HK'] = {
+ timeOnlyTitle: 'é¸æââ¡Ã¦â¢âéââ',
+ timeText: 'æâ¢âéââ',
+ hourText: 'æâ¢â',
+ minuteText: 'Ã¥Ëâ ',
+ secondText: '̤変',
+ timezoneText: 'æâ¢âÃ¥Ââ¬',
+ currentText: 'ç¾åŨ',
+ closeText: 'å®ÅæËÂ',
+ timeFormat: 'hh:mm',
+ ampm: false
+ };
+ $.timepicker.setDefaults($.timepicker.regional['zh-HK']);
+})(jQuery);
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js
------------------------------------------------------------------------------
svn:keywords = Date Rev Author URL Id
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-HK.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js?rev=1201229&view=auto
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js (added)
+++ ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js Sat Nov 12 09:31:49 2011
@@ -0,0 +1,17 @@
+/* Chinese translation for the jQuery Timepicker Addon */
+/* Written by Leon Sun */
+(function($) {
+ $.timepicker.regional['zh-TW'] = {
+ timeOnlyTitle: 'é¸æââ¡Ã¦â¢âéââ',
+ timeText: 'æâ¢âéââ',
+ hourText: 'æâ¢â',
+ minuteText: 'Ã¥Ëâ ',
+ secondText: '̤変',
+ timezoneText: 'æâ¢âÃ¥Ââ¬',
+ currentText: 'ç¾åŨ',
+ closeText: 'å®ÅæËÂ',
+ timeFormat: 'hh:mm',
+ ampm: false
+ };
+ $.timepicker.setDefaults($.timepicker.regional['zh-TW']);
+})(jQuery);
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js
------------------------------------------------------------------------------
svn:keywords = Date Rev Author URL Id
Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/datetimepicker/localization/jquery-ui-timepicker-zh-TW.js
------------------------------------------------------------------------------
svn:mime-type = text/plain