I'm setting up localization for a demo app. I am extending Ext.Window with a configurable base class and then extending this class.
The translation works for the tbar and my listView column header. However, the window title appears blank. Consider the following code:
Code:
Ext.ns("SoL");
// base class
SoL.ExpWindowsBase = Ext.extend(Ext.Window, {
draggable: true,
width: 800,
height: 400,
shim:false,
animCollapse:false,
constrainHeader:true,
layout: 'fit',
// Toolbar text to be translated
textGroupBy: 'Group By',
textToolBarCategory: 'Category',
textToolBarType: 'Type',
textToolBarNone: 'None',
initComponent : function() {
Ext.apply(this, {
// code for tbar removed.
}
SoL.ExpWindowsBase.superclass.initComponent.call(this, arguments);
}
}
SoL.PartsExplorer = Ext.extend(SoL.ExpWindowsBase, {
textWindowTitle: 'Window Title',
title: this.textWindowTitle,
// Ext.listView column header text
textColHeaderName: 'Name',
textColHeaderCat: 'Category',
textColHeaderType: 'Type',
createListView: function() {
return {
// code for listView removed.
}
}
}
any idea / suggestion ?