/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in the
packaging of this file.
Please review the following information to ensure the GNU General Public License version 3.0
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales department
at http://www.sencha.com/contact.
Build date: 2013-05-16 14:36:50 (f9be68accb407158ba2b1be2c226a6ce1f649314)
*/
/**
* Simplified Chinese translation
* By DavidHu
* 09 April 2007
*
* update by andy_ghg
* 2009-10-22 15:00:57
*/
Ext.onReady(function() {
var parseCodes;
if (Ext.Date) {
Ext.Date.monthNames = ["一月", "二月", "三月", "四月", "五月", "å…æœˆ", "七月", "八月", "乿œˆ", "åæœˆ", "å一月", "å二月"];
Ext.Date.dayNames = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期å…"];
Ext.Date.formatCodes.a = "(this.getHours() < 12 ? '上åˆ' : '下åˆ')";
Ext.Date.formatCodes.A = "(this.getHours() < 12 ? '上åˆ' : '下åˆ')";
parseCodes = {
g: 1,
c: "if (/(上åˆ)/i.test(results[{0}])) {\n"
+ "if (!h || h == 12) { h = 0; }\n"
+ "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",
s: "(上åˆ|下åˆ)",
calcAtEnd: true
};
Ext.Date.parseCodes.a = Ext.Date.parseCodes.A = parseCodes;
}
if (Ext.util && Ext.util.Format) {
Ext.apply(Ext.util.Format, {
thousandSeparator: ',',
decimalSeparator: '.',
currencySign: '\u00a5',
// Chinese Yuan
dateFormat: 'y年m月d日'
});
}
});
Ext.define("Ext.locale.zh_CN.view.View", {
override: "Ext.view.View",
emptyText: ""
});
Ext.define("Ext.locale.zh_CN.grid.plugin.DragDrop", {
override: "Ext.grid.plugin.DragDrop",
dragText: "选择了 {0} 行"
});
Ext.define("Ext.locale.zh_CN.tab.Tab", {
override: "Ext.tab.Tab",
closeText: "关闿¤æ ‡ç¾"
});
Ext.define("Ext.locale.zh_CN.form.field.Base", {
override: "Ext.form.field.Base",
invalidText: "è¾“å…¥å€¼éžæ³•"
});
// changing the msg text below will affect the LoadMask
Ext.define("Ext.locale.zh_CN.view.AbstractView", {
override: "Ext.view.AbstractView",
loadingText: "讀å–ä¸..."
});
Ext.define("Ext.locale.zh_CN.picker.Date", {
override: "Ext.picker.Date",
todayText: "今天",
minText: "日期必须大于最å°å…许日期",
//update
maxText: "日期必须å°äºŽæœ€å¤§å…许日期",
//update
disabledDaysText: "",
disabledDatesText: "",
nextText: '下个月 (Ctrl+Right)',
prevText: '上个月 (Ctrl+Left)',
monthYearText: '选择一个月 (Control+Up/Down æ¥æ”¹å˜å¹´ä»½)',
//update
todayTip: "{0} (ç©ºæ ¼é”®é€‰æ‹©)",
format: "y年m月d日",
ariaTitle: '{0}',
ariaTitleDateFormat: 'Y\u5e74m\u6708d\u65e5',
longDayFormat: 'Y\u5e74m\u6708d\u65e5',
monthYearFormat: 'Y\u5e74m\u6708',
getDayInitial: function (value) {
// Grab the last character
return value.substr(value.length - 1);
}
});
Ext.define("Ext.locale.zh_CN.picker.Month", {
override: "Ext.picker.Month",
okText: "确定",
cancelText: "å–æ¶ˆ"
});
Ext.define("Ext.locale.zh_CN.toolbar.Paging", {
override: "Ext.PagingToolbar",
beforePageText: "第",
//update
afterPageText: "页,共 {0} 页",
//update
firstText: "第一页",
prevText: "上一页",
//update
nextText: "下一页",
lastText: "最åŽé¡µ",
refreshText: "刷新",
displayMsg: "显示 {0} - {1}æ¡ï¼Œå…± {2} æ¡",
//update
emptyMsg: '没有数æ®'
});
Ext.define("Ext.locale.zh_CN.form.field.Text", {
override: "Ext.form.field.Text",
minLengthText: "该输入项的最å°é•¿åº¦æ˜¯ {0} 个å—符",
maxLengthText: "该输入项的最大长度是 {0} 个å—符",
blankText: "该输入项为必输项",
regexText: "",
emptyText: null
});
Ext.define("Ext.locale.zh_CN.form.field.Number", {
override: "Ext.form.field.Number",
minText: "该输入项的最å°å€¼æ˜¯ {0}",
maxText: "该输入项的最大值是 {0}",
nanText: "{0} 䏿˜¯æœ‰æ•ˆæ•°å€¼"
});
Ext.define("Ext.locale.zh_CN.form.field.Date", {
override: "Ext.form.field.Date",
disabledDaysText: "ç¦ç”¨",
disabledDatesText: "ç¦ç”¨",
minText: "该输入项的日期必须在 {0} 之åŽ",
maxText: "该输入项的日期必须在 {0} 之å‰",
invalidText: "{0} æ˜¯æ— æ•ˆçš„æ—¥æœŸ - å¿…é¡»ç¬¦åˆæ ¼å¼ï¼š {1}",
format: "y年m月d日"
});
Ext.define("Ext.locale.zh_CN.form.field.ComboBox", {
override: "Ext.form.field.ComboBox",
valueNotFoundText: undefined
}, function() {
Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
loadingText: "åŠ è½½ä¸..."
});
});
Ext.define("Ext.locale.zh_CN.form.field.VTypes", {
override: "Ext.form.field.VTypes",
emailText: '该输入项必须是电å邮件地å€ï¼Œæ ¼å¼å¦‚: "user@example.com"',
urlText: '该输入项必须是URL地å€ï¼Œæ ¼å¼å¦‚: "http:/' + '/www.example.com"',
alphaText: '该输入项åªèƒ½åŒ…å«åŠè§’å—æ¯å’Œ_',
alphanumText: '该输入项åªèƒ½åŒ…å«åŠè§’å—æ¯,æ•°å—å’Œ_'
});
//add HTMLEditor's tips by andy_ghg
Ext.define("Ext.locale.zh_CN.form.field.HtmlEditor", {
override: "Ext.form.field.HtmlEditor",
createLinkText: 'æ·»åŠ è¶…çº§é“¾æŽ¥:'
}, function() {
Ext.apply(Ext.form.field.HtmlEditor.prototype, {
buttonTips: {
bold: {
title: '粗体 (Ctrl+B)',
text: '将选ä¸çš„æ–‡å—设置为粗体',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
italic: {
title: '斜体 (Ctrl+I)',
text: '将选ä¸çš„æ–‡å—设置为斜体',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
underline: {
title: '下划线 (Ctrl+U)',
text: '给所选文å—åŠ ä¸‹åˆ’çº¿',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
increasefontsize: {
title: '增大å—体',
text: '增大å—å·',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
decreasefontsize: {
title: '缩å°å—体',
text: 'å‡å°å—å·',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
backcolor: {
title: '以ä¸åŒé¢œè‰²çªå‡ºæ˜¾ç¤ºæ–‡æœ¬',
text: '使文å—çœ‹ä¸ŠåŽ»åƒæ˜¯ç”¨è§å…‰ç¬”åšäº†æ ‡è®°ä¸€æ ·',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
forecolor: {
title: 'å—体颜色',
text: '更改å—体颜色',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
justifyleft: {
title: '左对é½',
text: '将文å—左对é½',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
justifycenter: {
title: 'å±…ä¸',
text: '将文å—å±…ä¸å¯¹é½',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
justifyright: {
title: 'å³å¯¹é½',
text: '将文å—å³å¯¹é½',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
insertunorderedlist: {
title: '项目符å·',
text: '开始创建项目符å·åˆ—表',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
insertorderedlist: {
title: 'ç¼–å·',
text: '开始创建编å·åˆ—表',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
createlink: {
title: '转æˆè¶…级链接',
text: 'å°†æ‰€é€‰æ–‡æœ¬è½¬æ¢æˆè¶…级链接',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
},
sourceedit: {
title: '代ç 视图',
text: '以代ç 的形å¼å±•现文本',
cls: Ext.baseCSSPrefix + 'html-editor-tip'
}
}
});
});
Ext.define("Ext.locale.zh_CN.grid.header.Container", {
override: "Ext.grid.header.Container",
sortAscText: "æ£åº",
//update
sortDescText: "倒åº",
//update
lockText: "é”定列",
//update
unlockText: "解除é”定",
//update
columnsText: "列"
});
Ext.define("Ext.locale.zh_CN.grid.PropertyColumnModel", {
override: "Ext.grid.PropertyColumnModel",
nameText: "åç§°",
valueText: "值",
dateFormat: "y年m月d日"
});
Ext.define("Ext.locale.zh_CN.window.MessageBox", {
override: "Ext.window.MessageBox",
buttonText: {
ok: "确定",
cancel: "å–æ¶ˆ",
yes: "是",
no: "å¦"
}
});
// This is needed until we can refactor all of the locales into individual files
Ext.define("Ext.locale.zh_CN.Component", {
override: "Ext.Component"
});
|