jQWidgets Forums

jQuery UI Widgets Forums General Discussions how Localization ?

This topic contains 5 replies, has 3 voices, and was last updated by  kuberasamrat 11 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • how Localization ? #17126

    hunterchina
    Member

    [‘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
    thanks

    how Localization ? #17127

    Dimitar
    Participant

    Hello hunterchina,

    Please check out the Grid Localization documentation entry. we hope it is helpful to you.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    how Localization ? #17128

    hunterchina
    Member

    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

    how Localization ? #17130

    hunterchina
    Member

    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?

    how Localization ? #17277

    Dimitar
    Participant

    Hi hunterchina,

    Please take a look at the documentation again. As you can see there, the pager strings are localized (in German).

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    how Localization ? #22276

    kuberasamrat
    Participant

    How do I display utf characters(chinese/japanese) in jqxGrid?

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.