• Publicidad (ayudanos a mantener el Foro haciendo un click sobre la misma)
  • Cuixer, una forma de administrar páginas web que nunca viste!

problema al traducir al español ejemplo desktop

Foros generales sobre la librería Ext

Ext.foro.Nuevo
Mensajes: 1
Registrado: 19 Jul 2011, 16:20
NotaPublicado: 11 Oct 2011, 16:36
buenas tardes para todo pues primero que nada quisiera que me puedieran ayudar con este problemita necesito usar el ejemplo que viene del desktop pero quiero cambiarlo al español pero la verdad no se como hacerlo porque si cambio el texto de las propiedades texto al español me sigue apareciendo en ingles y no se por que o que tengo que hacer para poder realizar esta tarea aca le muestro un pedazo del codigo por ejemplo: si quiero cambiar todos los textos que aparecen en
AccordionWindow.js es decir text: 'Ventana tipo acordeon', no lo hace siempre aparece en ingles o que otro archivo tengo que modificar para realizarlo gracias por la ayuda

Ext.define('MyDesktop.AccordionWindow', {
extend: 'Ext.ux.desktop.Module',

requires: [
'Ext.data.TreeStore',
'Ext.layout.container.Accordion',
'Ext.toolbar.Spacer',
'Ext.tree.Panel'
],

id:'acc-win',

init : function(){
this.launcher = {
[color=#FF8080] text: 'Ventana tipo acordeon',[/color]
iconCls:'accordion',
handler : this.createWindow,
scope: this
};
},

createTree : function(){
var tree = Ext.create('Ext.tree.Panel', {
id:'im-tree',
[color=#FF8040] title: 'Usuarios conectados',[/color]
rootVisible:false,
lines:false,
autoScroll:true,
tools:[{
type: 'refresh',
handler: function(c, t) {
tree.setLoading(true, tree.body);
var root = tree.getRootNode();
root.collapseChildren(true, false);
Ext.Function.defer(function() { // mimic a server call
tree.setLoading(false);
root.expand(true, true);
}, 1000);
}
}],
store: Ext.create('Ext.data.TreeStore', {
root: {
text:'En linea',
expanded: true,
children:[{
text:'Amigos',
expanded:true,
children:[
[color=#FF8040] { text:'Jorge', iconCls:'user', leaf:true },
{ text:'Kevin', iconCls:'user', leaf:true },
{ text:'Luis', iconCls:'user', leaf:true },
{ text:'Jose', iconCls:'user', leaf:true },
{ text:'Miguel', iconCls:'user', leaf:true },
[/color]
{ text:'Mike Jr', iconCls:'user', leaf:true },
{ text:'Mike Sr', iconCls:'user', leaf:true },
{ text:'JR', iconCls:'user', leaf:true },
{ text:'Rich', iconCls:'user', leaf:true },
{ text:'Nige', iconCls:'user', leaf:true },
{ text:'Zac', iconCls:'user', leaf:true }
]
},{
text:'Familia',
expanded:true,
children:[
{ text:'Kiana', iconCls:'user-girl', leaf:true },
{ text:'Aubrey', iconCls:'user-girl', leaf:true },
{ text:'Cale', iconCls:'user-kid', leaf:true }
]
}]
}
})
});

return tree;
},

createWindow : function(){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('acc-win');

if (!win) {
win = desktop.createWindow({
id: 'acc-win',
title: 'Ventana tipo acordeon',
width: 250,
height: 400,
iconCls: 'accordion',
animCollapse: false,
constrainHeader: true,
bodyBorder: true,
tbar: {
xtype: 'toolbar',
ui: 'plain',
items: [{
tooltip:{title:'Rich Tooltips', text:'Que pueden hacer los usuarios!'},
iconCls:'connect'
},
'-',
{
tooltip:'Agregar nuevo usuario',
iconCls:'user-add'
},
' ',
{
tooltip:'Eliminar el usuario seleccionado',
iconCls:'user-delete'
}]
},

layout: 'accordion',
border: false,

items: [
this.createTree(),
{
title: 'Configuracion',
html:'<p>Something useful would be in here.</p>',
autoScroll:true
},
{
title: 'Even More Stuff',
html : '<p>Something useful would be in here.</p>'
},
{
title: 'My Stuff',
html : '<p>Something useful would be in here.</p>'
}
]
});
}

win.show();
return win;
}
});
Para no ver esta publicidad, debes ser usuario del Foro.
Publicidad (ayudanos a mantener el Foro haciendo un click sobre la misma)


Cuixer, una forma de administrar páginas web que nunca viste!

Volver a General





  • Publicidad (ayudanos a mantener el Foro haciendo un click sobre la misma)
  • Cuixer, una forma de administrar páginas web que nunca viste!