×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    40

    Post Loading XML for multilanguage support

    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
    Join Date
    Nov 2010
    Posts
    40

    Re: Loading XML for multilanguage support

    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
    Super Contributor
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Loading XML for multilanguage support

    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
    Join Date
    Nov 2010
    Posts
    40

    Re: Loading XML for multilanguage support

    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
    Replies: 13
    Last Post: 2009-01-16, 10:27
  3. Multilanguage support / S60 3rd
    By kompotFX in forum Symbian
    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
  •