OpenXava在中文环境下,时间控件无法点击打开的解决措施
发布时间:2021-12-13 11:35:26 所属栏目:PHP教程 来源:互联网
导读:OpenXava在中文系统的各个浏览器中点击时间控件没有任何响应,其原因就在{OX}workspaceOpenXavawebeditorscalendarlangcalendar-zh.js文件。 将其代码修改为 // ** I18N // Calendar ZH language // Author: Boris Lu, boris@de-lian.com // Encoding:
OpenXava在中文系统的各个浏览器中点击时间控件没有任何响应,其原因就在{OX}workspaceOpenXavawebeditorscalendarlangcalendar-zh.js文件。 将其代码修改为 // ** I18N // Calendar ZH language // Author: Boris Lu, <boris@de-lian.com> // Encoding: UTF-8 // Distributed under the same terms as the calendar itself. // full day names Calendar._DN = new Array ("u5468u65e5",//u5468u65e5 "u5468u4e00",//u5468u4e00 "u5468u4e8c",//u5468u4e8c "u5468u4e09",//u5468u4e09 "u5468u56db",//u5468u56db "u5468u4e94",//u5468u4e94 "u5468u516d",//u5468u516d "u5468u65e5");//u5468u65e5 // Please note that the following array of short day names //and the same goes // for short month names, _SMN) isn't absolutely necessary. //We give it here // for exemplification on how one can customize the short //day names, but if // they are simply the first N letters of the full name you //can simply say: // // Calendar._SDN_len = N; // short day name length // Calendar._SMN_len = N; // short month name length // // If N = 3 then this is not needed either since we assume a //value of 3 if not // present, to be compatible with translation files that //were written before // this feature. // short day names Calendar._SDN = new Array ("u5468u65e5", "u5468u4e00", "u5468u4e8c", "u5468u4e09", "u5468u56db", "u5468u4e94", "u5468u516d", "u5468u65e5"); // full month names Calendar._MN = new Array ("u4e00u6708", "u4e8cu6708", "u4e09u6708", "u56dbu6708", "u4e94u6708", "u516du6708", "u4e03u6708", "u516bu6708", "u4e5du6708", "u5341u6708", "u5341u4e00u6708", "u5341u4e8cu6708"); // short month names Calendar._SMN = new Array ("u4e00u6708", "u4e8cu6708", "u4e09u6708", "u56dbu6708", "u4e94u6708", "u516du6708", "u4e03u6708", "u516bu6708", "u4e5du6708", "u5341u6708", "u5341u4e00u6708", "u5341u4e8cu6708"); // tooltips Calendar._TT = {}; Calendar._TT["INFO"] = "u95dcu65bc"; Calendar._TT["ABOUT"] = " DHTML u65e5u671f/u6642u9593u9078u64c7u5de5u5177n" + "(c) dynarch.com 2002-2005 / Author: Mihai Bazonn" + //don't translate this ;-) "For latest version visit:u6700u65b0u7248u672cu8acbu5230http://www.dynarch.com/projects/calendar/u5bdfu770bn" + "u6388u6b0au63a1u7528GNU LGPL. u7ec6u7bc0u53c3u95b1http://gnu.org/licenses/lgpl.html" + "nn" + "u65e5u671fu9078u64c7:n" + "-u9edeu64caxab(xbb)u6309u9215u9078u64c7u4e0a(u4e0b)u4e00u5e74u5ea6.n" + "- u9edeu64ca" + String.fromCharCode(0x2039) + "(" + String.fromCharCode(0x203a) + ")u6309u9215u9078u64c7u4e0a(u4e0b)u500bu6708u4efd.n" + "-u6309u4f4fu4e0du653eu5c07u51fau73feu66f4u591au9078u9805u3002"; Calendar._TT["ABOUT_TIME"] = "nn" + "u6642u9593u9078u64c7:n" + "-u5728u6642u9593(u5206u6216u79d2)u4e0au55aeu64cau6ed1u9f20u5de6u9375u4f86u589eu52a0u76eeu524du6642u9593(u5206u6216u8005u79d2)n" + "-u5728u6642u9593(u5206u6216u79d2)u4e0au6309u4f4fShiftu9375u5f8cu55aeu64cau6ed1u9f20u5de6u9375u4f86u6e1bu5c11u76eeu524du6642u9593(u5206u6216u79d2)"; Calendar._TT["PREV_YEAR"] = "u4e0au4e00u5e74"; Calendar._TT["PREV_MONTH"] = "u4e0au500bu6708"; Calendar._TT["GO_TODAY"] = "u5230u4ecau5929"; Calendar._TT["NEXT_MONTH"] = "u4e0bu500bu6708"; Calendar._TT["NEXT_YEAR"] = "u4e0bu4e00u5e74"; Calendar._TT["SEL_DATE"] = "u9078u64c7u65e5u671f"; Calendar._TT["DRAG_TO_MOVE"] = "u62d6u62c9"; Calendar._TT["PART_TODAY"] = " (u4ecau5929)"; // the following is to inform that "%s" is to be the first //day of week // %s will be replaced with the day name. Calendar._TT["DAY_FIRST"] = "%su70bau672cu5468u7b2cu4e00u5929"; // This may be locale-dependent. It specifies the week-end //days, as an array // of comma-separated numbers. The numbers are from 0 to 6: //0 means Sunday, 1 // means Monday, etc. Calendar._TT["WEEKEND"] = "0,6"; Calendar._TT["CLOSE"] = "u95dcu9589"; Calendar._TT["TODAY"] = "u4ecau5929"; Calendar._TT["TIME_PART"] = "(u6309u4f4fShiftu9375)u55aeu64cau6216u62d6u62c9u6539u8b8au503c"; // date formats Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %eu65e5"; Calendar._TT["WK"] = "u5468"; Calendar._TT["TIME"] = "u6642u9593:"; 保存以后,重新执行自己工程的ant脚本,这个文件就会从OX目录自动复制到自己的工程中,并打包了。 ![]() (编辑:云计算网_泰州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |