|
@@ -0,0 +1,49 @@
|
|
|
+function initLocale() {
|
|
|
+ Ext.define('Ext.locale.zh_CN.Panel', {
|
|
|
+ override: 'Ext.Panel',
|
|
|
+ config: {
|
|
|
+ standardButtons: {
|
|
|
+ ok: {
|
|
|
+ text: '确定'
|
|
|
+ },
|
|
|
+ }
|
|
|
+ },
|
|
|
+ })
|
|
|
+ Ext.define('Ext.locale.zh_CN.picker.Date', {
|
|
|
+ override: 'Ext.picker.Date',
|
|
|
+ config: {
|
|
|
+ doneButton: '完成',
|
|
|
+ }
|
|
|
+ });
|
|
|
+ Ext.define('Ext.locale.zh_CN.picker.Picker', {
|
|
|
+ override: 'Ext.picker.Picker',
|
|
|
+ config: {
|
|
|
+ doneButton: '完成',
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ const _getStandardButtons = Ext.MessageBox.prototype.getStandardButtons
|
|
|
+ Ext.MessageBox.override({
|
|
|
+ getStandardButtons(){
|
|
|
+ const ret = _getStandardButtons.apply(this, arguments)
|
|
|
+ ret.ok.text = "确定"
|
|
|
+ return ret
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // Ext.define('Ext.locale.zh_CN.MessageBox', {
|
|
|
+ // override: 'Ext.MessageBox',
|
|
|
+ // config: {
|
|
|
+ // standardButtons: {
|
|
|
+ // ok: {
|
|
|
+ // text: '确定'
|
|
|
+ // },
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+}
|
|
|
+
|
|
|
+// standardButtons
|
|
|
+
|
|
|
+export {
|
|
|
+ initLocale
|
|
|
+}
|