jQWidgets Forums
jQuery UI Widgets › Forums › General Discussions › how Localization ?
Tagged: grid, jqxgrid, localization, translate
This topic contains 5 replies, has 3 voices, and was last updated by kuberasamrat 11 years, 11 months ago.
-
Authorhow Localization ? Posts
-
[‘equal’, ‘not equal’, ‘less than’, ‘less than or equal’, ‘greater than’, ‘greater than or equal’, ‘null’, ‘not null’];
these words,where can i transate to my language? how set?
i am chinese, if not translate ,may i help you? want to join to translate
thanksHello hunterchina,
Please check out the Grid Localization documentation entry. we hope it is helpful to you.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/thanks i have do it
and share it
create new file ,named jquery.glob.zh-CN.js palce globalization document
and detail(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["zh-CN"] = $.extend(true, {}, en, { name: "zh-CN", englishName: "Chinese", nativeName: "简体中文", language: "cn", numberFormat: { percent: { pattern: ["-n%","n%"] }, currency: { pattern: ["-$n","$n"], decimals: 0, symbol: "¥" } }, calendars: { standard: $.extend(true, {}, standard, { days: { names: ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"], namesAbbr: ["周日","周一","周二","周三","周四","周五","周六"], namesShort: ["周日","周一","周二","周三","周四","周五","周六"] }, months: { names: ["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""], namesAbbr: ["1","2","3","4","5","6","7","8","9","10","11","12",""] }, AM: ["上午","上午","上午"], PM: ["下午","下午","下午"], eras: [{"name":"公元","start":null,"offset":0}], patterns: { d: "yyyy/MM/dd", D: "yyyy'年'M'月'd'日'", t: "H:mm", T: "H:mm:ss", f: "yyyy'年'M'月'd'日' H:mm", F: "yyyy'年'M'月'd'日' H:mm:ss", M: "M'月'd'日'", Y: "yyyy'年'M'月'" } }) } }, cultures["zh-CN"]); culture.calendar = culture.calendars.standard;})(jQuery);
AND change these code:
localized["default"] = localized.zh-CN;
please help me checking ,maybee a little adult
thanks Dimitar
i have follow your step
my code like these:var localizationobj = {}; localizationobj.pagergotopagestring = "当前页:"; localizationobj.pagershowrowsstring = "每页显示:"; localizationobj.pagerrangestring = " 总共 "; localizationobj.pagernextbuttonstring = "后页"; localizationobj.pagerpreviousbuttonstring = "前页"; localizationobj.sortascendingstring = "正序"; localizationobj.sortdescendingstring = "倒序"; localizationobj.sortremovestring = "清除排序"; localizationobj.firstDay = 1; localizationobj.percentsymbol = "%"; localizationobj.currencysymbol = "¥"; localizationobj.currencysymbolposition = "before"; localizationobj.decimalseparator = "."; localizationobj.thousandsseparator = ","; // apply localization. $("#jqxgrid").jqxGrid('localizestrings', localizationobj); $("#jqxgrid").jqxGrid({...});
but pagger still show in english ?
why?Hi hunterchina,
Please take a look at the documentation again. As you can see there, the pager strings are localized (in German).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/How do I display utf characters(chinese/japanese) in jqxGrid?
-
AuthorPosts
You must be logged in to reply to this topic.