Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User jcospina's Avatar
    Join Date
    Nov 2010
    Posts
    40
    hi,

    im using XML files to make the app multilanguage, everything works fine in the simulator, but when i try to test the app using the http://dev-wam.browser.ovi.com/wam/v1_0/clients... url, it doesnt load, and when i check the errors log, it saids that the var that is supposed to have the xml date is null.

    The XML files are part of the wgz, they are in a forlder called xml, i use the following function to load the file

    Code:
    function loadDoc(fileurl){
        if (window.XMLHttpRequest) {
            xhttp = new XMLHttpRequest();
        }
        else {
            xhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xhttp.open("GET", fileurl, false);	
        xhttp.send(null);
        return xhttp.responseXML;   
    }
    i also use this function to get rss feeds, if someone can help me, i´ll be very grateful

    Thanks

  2. #2
    Registered User jcospina's Avatar
    Join Date
    Nov 2010
    Posts
    40
    hi,
    by doing some more testing i find out something really strange, for example is use the following line:
    xmlResponse = loadDoc("xml/menu.xml");
    when i check the value of the xmlResponse var, it has the content of the index.html file, if someone could help me, it would be really helpful, i think thats why the QA Team keeps returning my app for corrections, but i assumed that it would work like in the simulator

    Thanks

  3. #3
    Nokia Developer Moderator isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833
    Hi,

    The correct way to localize is to use folder-based localization
    http://www.w3.org/TR/widgets/#folder...localization-0

    Basically you can create a .js file with localized strings inside.

    -Ilkka

  4. #4
    Registered User jcospina's Avatar
    Join Date
    Nov 2010
    Posts
    40
    Thanks i'll try that

Similar Threads

  1. Replies: 10
    Last Post: 2011-07-29, 06:09
  2. MultiLanguage Support for Softkeys
    By joseph.m in forum Symbian C++
    Replies: 13
    Last Post: 2009-01-16, 10:27
  3. Multilanguage support / S60 3rd
    By kompotFX in forum Symbian C++
    Replies: 3
    Last Post: 2006-08-04, 12:11
  4. How does Carbide Express support multilanguage application (s60v3)
    By zhengy in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2006-07-06, 16:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved