
Originally Posted by
mitchellsimoens
Ux.locale.Manager does not require the microloader or an app to be created by Sencha Command. Ux.locale.Manager comes with 2 examples, the mvc one that was created with Sencha Command and a regular simple example that just loads sencha-touch-debug.js and both of them work.
It doesn't work with code generated with Architect, for instance go to the MVC example provided and replace:
Code:
<script id="microloader" type="text/javascript" src="sdk/microloader/development.js"></script>
with
Code:
<link rel="stylesheet" type="text/css" href="https://extjs.cachefly.net/touch/sencha-touch-2.0.1/resources/css/sencha-touch.css"/>
<script type="text/javascript" src="https://extjs.cachefly.net/touch/sencha-touch-2.0.1/sencha-touch-all-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
And in the console you get the error:
Code:
Uncaught TypeError: Cannot call method 'get' of null
And to kill button translations only inside app.js (which is again how Architect spits out the code) then change:
Code:
Ext.require([
'Ux.locale.Manager',
'Ux.locale.override.st.Component'
]);
Ext.application({
name: 'Locale',
requires: [
'Ext.MessageBox',
'Ext.Ajax',
'Ux.locale.override.st.Button',
'Ux.locale.override.st.Container',
'Ux.locale.override.st.TitleBar',
'Ux.locale.override.st.field.Field',
'Ux.locale.override.st.picker.Picker'
],
to
Code:
Ext.application({
name: 'Locale',
requires: [
'Ext.MessageBox',
'Ext.Ajax',
'Ux.locale.Manager',
'Ux.locale.override.st.Component',
'Ux.locale.override.st.Button',
'Ux.locale.override.st.Container',
'Ux.locale.override.st.TitleBar',
'Ux.locale.override.st.field.Field',
'Ux.locale.override.st.picker.Picker'
],