Results 1 to 5 of 5

Thread: Using ext-lang files with sencha touch

  1. #1
    Sencha User
    Join Date
    Dec 2007
    Location
    Budapest, Hungary
    Posts
    129
    Answers
    1

    Default Using ext-lang files with sencha touch

    Hi folks,

    I tried to localize Sencha Touch, but I cannot do so. I am using ST 2.4 and Sencha Architect 3.1
    I have added a new resource in Sencha, (ext-lang-hu.js), copied the contents of ext-lang-en.js and translated the texts. When I try to load my app after that, I get the following error: Uncaught TypeError: Cannot read property 'S' of undefined
    Which is from that row:
    Date.parseCodes.S.s = '(?t|nd|rd|th)';
    If I uncomment that line, then it hangs on the next one:
    if (Ext.picker.Picker){
    Ext.override(Ext.picker.Picker, {
    doneText: 'OK'
    });
    }
    with this error:
    Uncaught TypeError: Cannot read property 'Picker' of undefined

    So I am guessing that the language file is loaded too early. I tried to check the "requireSdk" checkbox on the resource, but that didn't help.
    Is there a guide anywhere about using localization files with SA? Or any idea what might be the problem here?

    Thanks!

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

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

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User
    Join Date
    Dec 2007
    Location
    Budapest, Hungary
    Posts
    129
    Answers
    1

    Default

    Thanks for your reply, but unfortunately that's not exactly what I need. I only need to translate the sencha touch framework, I don't need my app to be multilingual. It seems that ST should support this, at least the existence of /src/locale/ext-lang-en.js indicates that, but I cannot seem to load a different locale into my app.

  4. #4
    Sencha User
    Join Date
    Oct 2012
    Location
    Toulouse
    Posts
    62
    Answers
    7

    Default I had the same issue

    I found the answer to the same issue here : https://www.sencha.com/forum/showthr...77#post1139977

    I hope this helps someone.
    Sarah Burrell
    R & D Developer at Novadys International

  5. #5

Posting Permissions

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