-
11 Jul 2012 1:49 AM #21
Hey,
How can I use the plugin to translate my defaultBackButtonText and the loadingText properties?
-
13 Sep 2012 12:50 AM #22
hi, great plugin Mitchell,
is there example of how to use Ux.locale.Manager locales with Ext.Msg.alert, Ext.XTemplate ?
-
13 Sep 2012 7:21 AM #23
Since an alert is created on the fly, I believe the easiest way to have the title and message translated would be to get the values directly from the Locale Manager as so:
Here's the locale json file that would work for the above example:Code:Ext.Msg.alert( Ux.locale.Manager.get('alerts.one.title', 'Your default title here'), Ux.locale.Manager.get('alerts.one.message', 'Your default message here'), Ext.emptyFn );
Code:{ "alerts" : { "one" : { "title" : "This is my first alert", "message" : "The alert's message" } } }---
Oussama Mubarak // Semiaddict
-
25 Oct 2012 7:37 AM #24
OK, maybe I am doing a complete fool of myself here, but I have to ask after spending an afternoon troubleshooting Ux.locale;
is Ux.locale compatible with ST 2.1.0-RC2? I have problems localizing my application after moving from 2.0.1.1 to 2.1.0-RC2 and the root cause seems to be that buttons are no longer Ext.Buttons, instead Ext.getClassName() reports them as Ext.Component and then the override(s) fail badly for buttons etc.
Is this just me...?
Love the extension and it has really made my day! Thanks,
/Mattias
-
25 Oct 2012 7:50 AM #25
Fool you not be. I am also having issues with RC2. Button text does not appear. It works in RC1 though
-
25 Oct 2012 8:36 AM #26
Interesting to change this (in my eyes "break this") so late in the release process...
-
25 Oct 2012 11:37 AM #27Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,119
- Vote Rating
- 453
The button override wasn't hitting the override for the Component. I have pushed some updates to get this to work but the mvc app isn't building properly so I am working on that to get it to build just fine.
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.
-
25 Oct 2012 11:48 AM #28Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,119
- Vote Rating
- 453
Ok, figured out the issue and pushed an update. Also removed some trailing commas, don't know who's PR did that, I usually deny the merge if I see 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.
-
29 Oct 2012 2:38 AM #29
-
29 Oct 2012 3:14 AM #30
OK - found another problem with 2.1.0-RC2. Labels are no longer set correctly on fields. Added a constructor to override/st/field/Field.js to fix it:
Code:constructor : function() { this.callSuper(arguments); },


Reply With Quote
