Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    6
    Vote Rating
    0
    tymarats is on a distinguished road

      0  

    Default New 4.1.0b2 MessageBox localization bug

    New 4.1.0b2 MessageBox localization bug


    REQUIRED INFORMATION


    Ext version tested:
    • Ext 4.1.0 beta 2

    Description:
    • When MessageBox is opened for the second time, button localizations revert to their English defaults

    Steps to reproduce the problem:
    • Include locale, for example ext-all-es.js
    • Display confirm message box, close it and display it again

    The result that was expected:
    • Buttons should be localized in the second message box, too (Si, No)

    The result that occurs instead:
    • Buttons revert to their original localization (Yes, No)

    Test Case:

    Code:
    <!DOCTYPE HTML>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>Test case</title>
    
        <script src="ext-all.js" type="text/javascript"></script>
        <script src="locale/ext-lang-es.js" type="text/javascript"></script>
        <link media="all" rel="stylesheet" href="resources/css/ext-all.css" type="text/css" />
    </head>
    <body>
    </body>
    
    <script type="text/javascript">
        Ext.onReady(function() {
            Ext.MessageBox.show({
                msg: 'Primera presentación', 
                buttons: Ext.MessageBox.YESNO,
                fn: function() {
                    Ext.MessageBox.show({msg: 'Segunda presentación', buttons: Ext.MessageBox.YESNO });
                }
            });
        });
    </script>
    </html>

    HELPFUL INFORMATION

    Possible fix:
    • All localization files might go back to overriding Ext.window.MessageBox prototype buttonText property, instead of property of Ext.MessageBox/Ext.MsgBox singleton instance. Since the problem is in updateButtonText method, which gets called on reconfigure (every time the message box is shown), this should solve the problem.
    Last edited by tymarats; 21 Feb 2012 at 12:52 AM. Reason: Including fully working test case

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,397
    Vote Rating
    849
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    We are working on a new locale strategy.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

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

      0  

    Default


    and when can expect this to be fixed? It's a pretty major issue on our end.