私はmarathi.jsを作成しているため、マラーティー語でフォームのラベルを表示しようとしています。これは私のmararhi.jsです
if(Ext.app.formPanel)
{
Ext.apply(Ext.app.formPanel.prototype,
{
selectUser:'नाव'
}
);
}
私の他のjsファイルにはこれが含まれています
var Ext.app.formPanel = Ext.extend(Ext.form.FormPanel,{
selectUser:'Select User',
initComponent : function(config) {
Ext.apply(this, {
title : 'User Rights',
bodyStyle : 'padding: 10px; background-color: #DFE8F6',
labelWidth : 100,
width : 755,
id : 'formUserRights',
renderTo:'adminpanel',
items : [ id: 'User',
fieldLabel:this.selectUser,
width:200
] //items
});//Ext.apply
Ext.app.formPanel.superclass.initComponent.apply(this, arguments);
}//init component
}); //yuyu
......
....
しかし、それはエラーになります; missing before
var Ext.app.formPanel = Ext.extend.....
が、すべてを注意深くチェックすると、すべてが正しくネストされています。