Results 1 to 3 of 3

Thread: Bug with Ext.msg.Confirm and Translation/Localisation

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-5352 in a recent build.
  1. #1
    Ext JS Premium Member malstroem's Avatar
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    261

    Default Bug with Ext.msg.Confirm and Translation/Localisation

    Ext version tested:
    • Ext 4.1.0 Beta 2

    Browser versions tested against:
    • FF 10.0.1
    • Chrome 17

    DOCTYPE tested against:
    • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    Description:
    • When using confirmation dialogues with Ext.Msg.confirm() having a foreign language file included (e.g. ext-lang-de.js) the buttons are only translated on the very first dialogue after page refresh. At any point later, there are english buttons with Yes/No...

    Steps to reproduce the problem:
    • Create an Ext.Msg.confirm('Title:','Question:')
    • include ext-lang-de.js in your app
    • show the confirmation dialogue after page refresh (F5) and again after having it shown once

    The result that was expected:
    • correct translation / localisation every time the dialogue is shown.

    The result that occurs instead:
    • english buttonText instead of included language

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    What Ext JS script are you using? If you are using one of the all builds then this should work but if you are using one where you are dynamically loading classes then this file won't affect it as the class has to be loaded before this override file is loaded.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Ext JS Premium Member malstroem's Avatar
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    261

    Default

    I am NOT using the new class loading system / bootstrap....
    I am just including ext-all.js and the lang-file in this order:

    <script type="text/javascript" src="ext/ext-all.js"></script>
    <script type="text/javascript" src="ext/locale/ext-lang-de.js"></script>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •