About extjs Chinese

Source: Internet
Author: User
Chinese version of the introduction of ext-lang-zh_CN.js, but often, some still english, now provide several methods for you, absolute second kill English, if not, find me I will help you solve.
1. Add Ext. quicktips. INIT (); Generally, tooltip can be useful for QTip or something, for example, actioncolumn tooltip: 'delete' in the table ',
2. view the ext-lang-zh_CN.js to find properties (the API is generally not displayed) such as tabpanel in the face panel close button display words, normal even if you introduce the language JS is also the English close tab, you search tabpanel in ext-lang-zh_CN.js to see Ext. tabpanelitem. prototype. closetext
= "Close this tag"; you can simply add closetext = 'close 'to create an object. This method is very common and can be extended to other rewriting or something, dynamic.

3. ext. messageBox has always been Yes OK. Although most people know that one is to confirm whether the other is canceled, but it is still in English, you can rewrite it through the 2nd method. Of course, the better way is, brute force modification in the ext-lang-zh_CN.js, add the code below after the ext-lang-zh_CN.js File

var msgBox = Ext.MessageBox;    Ext.each(msgBox.msgButtons, function (btn, index) {            btn.setText(msgBox.buttonText[msgBox.buttonIds[index]]);    });

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.