-
27 Dec 2011 12:53 PM #1Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Ux.locale.Manager
Ux.locale.Manager
Need to handle dynamic locale? Want to load locale via Ajax? Want locale to be applied without rerendering components? If so, Ux.locale.Manager may suit your needs.
This manager does not support all components but examples have been provided to support other subclasses of Ext.Component (Sencha Touch or custom component).
This manager also works with Ext JS 4, one class to rule them all!
Sencha Market Listing: http://market.sencha.com/addon/ux.locale.manager
GitHub repo: https://github.com/mitchellsimoens/Ux.locale.ManagerMitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
27 Dec 2011 12:54 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
I will be supporting JsonP in the next release.
This does not use bundles, no need for them really.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
29 Dec 2011 3:54 AM #3
Thank you mitchellsimoens; exactly what I was looking for !
---
Oussama Mubarak // Semiaddict
-
29 Dec 2011 4:32 AM #4
I've slightly modified Ux.locale.override.st.Container to allow specifying a title on a non tabbed container.
The patch is attached.
I've also submitted a pull request on GitHub.---
Oussama Mubarak // Semiaddict
-
12 Jan 2012 3:54 AM #5
@mitchellsimoens,
Any ideas on how to get this working for an Ext.MessageBox ?
Since they are created on the fly, the setLocale function isn't called by the manager.
Thank you.---
Oussama Mubarak // Semiaddict
-
12 Jan 2012 5:40 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
The buttons are already created and MessageBox should be picked up if you put a setLocale method so you would have to dig down to the buttons to change them.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
4 Apr 2012 1:31 PM #7
That language switch is working smooth so far, thanks for providing.
What do i have to be aware of when doing a productive build?
Just copying the Ux & locales folder into the build/production doesn't seem to do the trick
In app. js I added:
The error console of the production app says only this with a blank app screen:Code:Ext.Loader.setPath({ 'Ext': 'sdk/src', 'Ux' : 'Ux' });
However, if i build the app without the "Ux" : "Ux" loader config, the app loads fine, just without any Ux support and this error console message:Code:index.html:65Error evaluating file:///Users/macbook/myapp/build/production/app.js with message: SyntaxError: Unexpected token ':'
thanks for any hints...Code:TypeError: 'null' is not an object (evaluating 'a.title')
-
5 Apr 2012 4:37 AM #8Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
All you should have to do is create the path and then require it via Ext.require. When you do a build it should see this require and include it in the build.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
5 Apr 2012 6:17 AM #9
hmmm,
you mean in the app.js under ext.define in the requires: ([]) section? well, i already did that, but no luck.
do i have to include all the classes of ux.locale or just ux.locale.Manager?
the Ux folder is in the index.html root directory. So there should not be a need to specify its path, should it?
thanks heaps & happy easter bunnies
-
5 Apr 2012 6:21 AM #10Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Look at the example. It sets a path and uses Ext.require to require the classes.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote