PDA

View Full Version : Ext.grid.Panel localize loading mask text



dedoz
10 Apr 2012, 1:30 AM
im trying to localize to spanish the "Loading ...." mask in the grid panel.
Mask appears by default while loading its associated store.

i have a ext-lang-es.js from the libary and most things are traslated but loading mask text
i have this (in that file)


if(Ext.LoadMask){
console.log('traslate mask') // just to check if this code is executing
Ext.LoadMask.prototype.msg = "Cargando...";
}


its executed but its not working, grid still shows "Loading ..."

how can i do this ? translate that grid Loading msg.
thanks.

vietits
10 Apr 2012, 1:46 AM
Have a try by adding this to ext-lang-es.js


if(Ext.view.AbstractView){
Ext.view.AbstractView.prototype.loadingText = "Cargando...";
}

dedoz
10 Apr 2012, 4:01 AM
works, thanks.