You found a bug! We've classified it as EXTJS-3971 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2011
    Location
    Aachen, Germany
    Posts
    47
    Vote Rating
    0
    SommerEngineering is on a distinguished road

      0  

    Exclamation [4.0.5] Ext.Msg.confirm() does not use I18N strings

    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.0.5
    • Ext 4.0.6
    Browser versions tested against:
    • Chrome 13
    • IE 9
    • Firefox 6
    Description:
    • Ext.Msg.confirm does not use the I18N strings, e.g. german or spanish for "Yes" and "No".
    Steps to reproduce the problem:
    • Run me code below.
    • Type two letters in the username field.
    • Click the button to show a confirm message.
    The result that was expected:
    • 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".
    The result that occurs instead:
    • N/A
    • The same warning.
    • You see the message with "Yes" and "No" independently of any language that are configured.
    Test Case:


    HELPFUL INFORMATION

    Screenshot or Video:
    • N/A
    See this URL for live test case: N/A

    Debugging already done:
    • none
    Possible fix:
    • N/A
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • Windows 7 Professional 64 Bit

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2011
    Location
    Aachen, Germany
    Posts
    47
    Vote Rating
    0
    SommerEngineering is on a distinguished road

      0  

    Default

    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>

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2011
    Location
    Aachen, Germany
    Posts
    47
    Vote Rating
    0
    SommerEngineering is on a distinguished road

      0  

    Question

    Sencha? Anybody? Can nobody re-produce that with my code?

  4. #4
    Ext JS Premium Member
    Join Date
    Mar 2011
    Location
    Aachen, Germany
    Posts
    47
    Vote Rating
    0
    SommerEngineering is on a distinguished road

      0  

    Default

    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).

  5. #5
    Sencha - Services Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,965
    Vote Rating
    12
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default

    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.


  6. #6
    Ext JS Premium Member
    Join Date
    Jan 2011
    Posts
    10
    Vote Rating
    0
    alienintheheights is on a distinguished road

      0  

    Default

    Did this get fixed in 4.1?

Thread Participants: 2

Tags for this Thread