-
23 Aug 2011 11:05 AM #1
[4.0.5] Ext.Msg.confirm() does not use I18N strings
[4.0.5] Ext.Msg.confirm() does not use I18N strings
REQUIRED INFORMATION
Ext version tested:- Ext 4.0.5
- Ext 4.0.6
- Chrome 13
- IE 9
- Firefox 6
- Ext.Msg.confirm does not use the I18N strings, e.g. german or spanish for "Yes" and "No".
- Run me code below.
- Type two letters in the username field.
- Click the button to show a confirm message.
- N/A
- You got a spanish warning, because you must at least using 3 letters.
- You should see the message with german "Ja" and "Nein" or in this example the spanish "sí" and "no" instead of "Yes" and "No".
- N/A
- The same warning.
- You see the message with "Yes" and "No" independently of any language that are configured.
HELPFUL INFORMATION
Screenshot or Video:- N/A
Debugging already done:- none
- N/A
- only default ext-all.css
- Windows 7 Professional 64 Bit
-
23 Aug 2011 11:15 AM #2
Code:<html> <head> <title>Bug</title> <link rel="stylesheet" type="text/css" href="ExtJS/resources/css/ext-all.css" /> <script type="text/javascript" src="ExtJS/ext-all.js"></script> <script type="text/javascript" src="ExtJS/locale/ext-lang-es.js"></script> <script type="text/javascript"> Ext.onReady(function () { Ext.QuickTips.init(); new Ext.container.Viewport( { layout: 'border', renderTo: Ext.getBody(), id: 'Viewport', items: [ new Ext.panel.Panel( { title: "Testpanel", region: 'center', items: [ new Ext.form.field.Text( { id: 'Username', name: 'Username', fieldLabel: 'Your username', allowBlank: false, minLength: 3, maxLength: 20, margin: 6 }) , new Ext.button.Button( { text: 'Show confirm dialog...', handler: function () { Ext.Msg.confirm("My titel", "My text..."); } }) ] }) ] }); }); </script> </head> <body> </body> </html>
-
29 Aug 2011 11:54 AM #3
Sencha? Anybody?
Can nobody re-produce that with my code? 
-
31 Aug 2011 12:02 AM #4
I have make a re-test with 4.0.6 with Firefox, Internet Explorer and Chrome and with Spanish and German. The bug is still there, I got every time "Yes" and "No" instead of "Ja" + "Nein" (German).

-
6 Sep 2011 1:37 PM #5
Thanks for the report.
As Ext.MessageBox is a singleton (button:text is assigned when the singleton is instantiated). That fact slipped through the localization design.
See also:
http://www.sencha.com/forum/showthre...g-as-it-should..."be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
25 May 2012 8:38 AM #6
You found a bug! We've classified it as
EXTJSIV-3971
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote

