
Originally Posted by
galdaka
1) How can I combine your code in any "initComponent"? Is posible but more dirty.
I do lots of things within initComponent like specify any items or dockedItems so not sure why this is "dirty". In fact I would do something like this:
Code:
initComponent: function() {
var me = this;
Ext.apply(me, {
items : me.buildItems()
}, me.applyLocale());
me.callParent(arguments);
},
applyLocale: function() {
return {
title : manager.get('titles.test', 'Test Title')
};
}

Originally Posted by
galdaka
2) How can I change language dinamically?
In any JS locale, I don't see a way to do it without rerendering things.