var vars = { winStore: [], taskbarStore: [], gridWidthStore: [] }; var trans = { batchTranslate: [], translate: function(key) { if(!this.translator) Ext.MessageBox.alert('Error', 'Language not defined'); else { if(this.translator[key]) return this.translator[key]; else { if(typeof conn != 'undefined' && conn.request) { this.ajaxTranslate(key); } else { this.batchTranslate.push(key); } return '#'+key; } } }, translateBatches: function() { var j = this.batchTranslate.length; if(j > 0) { for(var i=0;i