I am new to ST2 and I am trying to build a multilanguage app. I am currently using the Ux.locale.Manager plugin - which I find very useful!
But I also have a problem while using it... I have a tabPanel which uses a store to load some HTML data from a remote server. The store's url is pulled from the locales files using:
Code:
Ux.locale.Manager.get('url.link1');
The store's content is loaded when the panel is showed on the screen.
The change language code:
Code:
onLangChange: function(field, value) {
var lang = field.originalValue;
Ux.locale.Manager.updateLocale(lang);
this.getOvLang().hide();
this.getTbPanel().fireEvent('show');
},
After the updateLocale call, I am hidding the overlay I use for the language options, and then fire the show event of the Panel which displays the data. After this step, the get function I use to set the store url returns undefined (or the default value if I set one). The language is changed, but the isLoaded (in Ux.locale.Manager) function returns false.
If I tap on another tab and then tap again on that one, the correct language is loaded.
Hello i am really interested in using this locale extension, but i need a guick guide to use with architect 2.1, if anyone can provide a text based one i will be most pleased!
For using with Arcitect you just add a custom parameter on everything like a button:
locales: {
text: "Register"
}
You won't see your text within Architect, apparently they're sorting this out in a future version to be able to "process" your parameters so could add ability to see your default text or something in the future
Ok, but, how to make it work with architect configs? i mean. i use a require on the application then i use the loader to wrap the Ux to a custom folder, etc...? i need a guide like that... new to architect 2.1 ...
Originally Posted by intellix
For using with Arcitect you just add a custom parameter on everything like a button:
locales: {
text: "Register"
}
You won't see your text within Architect, apparently they're sorting this out in a future version to be able to "process" your parameters so could add ability to see your default text or something in the future