PDA

View Full Version : Sencha Touch internationalization



couetbis
28 Apr 2011, 7:27 AM
Hi,
I want to know how can I internationalize my Sencha Touch application ?

I test to load dynamically js translation file and it's ok but my views (application is like MVC tutorial) are load before so labels aren't translate.

Example of content :


{
ui: 'action-round',
text: labels.accueilvue_btcommencer,
handler: function()
{
Ext.dispatch({
controller: app.controllers.intervenant,
action: 'gotoIdentification',
animation: {type:'fade'}
});
}
},

with labels :


labels = {
...
accueilvue_btcommencer : "Démarrer",
...
};

If I show an alert, label is good.

Any idea ?