lundi 31 mars 2014

Override LoadMask build failed

Hi,



I need localise texts in spanish. My configuration is as follows



I have a 'Locale' folder with Spanish.js.



MyApp
app

controller

....

Locale

Spanish.js

app.js



app.js


Ext.Loader.setConfig({ enabled: true,
paths: {

'Locale': './Locale'

}

});

Ext.application({
....

requires: [

'Locale.Spanish'

],

....

launch: function () {

Locale.Spanish.load();

......

}

});



Spanish.js


Ext.define("Locale.Spanish", {
singleton: true,

load: function () {

....

if (Ext.LoadMask) {

Ext.define('Ext.LoadMask', {

override: 'Ext.LoadMask',

config: {

message: 'Cargando...'

}

});

}

....

}

});





The file .sencha/app/sencha.cfg was modified



app.classpath=${app.dir}/app.js,${app.dir}/app,Locale



In development mode everything works fine, but when i want build the application in native mode (android) the process does not end.

I run the command

sencha app build native



the last task that runs when I run the process in debug mode is

[DBG] Adding dynamic requirement on Ext.LoadMask to Spanish.js as a GenericAutoDependency


For other components this problem does not occur, eg, i can localise texts of Ext.DataView



if (Ext.DataView) {
Ext.define('Ext.DataView', {

override: 'Ext.DataView',

config: {

loadingText: 'Cargando...'

}

});

}



the construction process ends smoothly.



Thanks.




Aucun commentaire:

Enregistrer un commentaire