×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    spanish localisation directory

    Hi,

    I am attempting to create 5 localized versions of my widget. English, French, Spanish, Italian and German.

    I have created the relevant project directories in the root of my widget.

    fr.lproj
    es.lproj
    de.lproj
    it.lproj

    Each directory contains a strings.js where i have placed my translations. With a string.js sat in the root, which holds the English version.

    When I change the language of my phone, the correct languages are being picked up and the correct translations, all except for Spanish? I have tried both es and es-419, but when I set my phone to Spanish it simply defaults to teh english copy.

    I am using this table as a guide to the directory : http://wiki.forum.nokia.com/index.ph...sation_support

    Thanks for any help

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: spanish localisation directory

    Hi jayboduke,

    have you checked what is returned by the sysinfo.language property? (maybe it doesn't help, but it's worth a try)

    PS: on which device/firmware are you getting this behavior?

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Re: spanish localisation directory

    Hi,

    Im using Nokia 6210 Navigator. I'm not sure which version however. If I run this function though, It cant find the service object, so I'm assuming its an older version I am running (Pretty new to this )

    try
    {
    systemServiceObj = device.getServiceObject("Service.SysInfo", "ISysInfo");
    }
    catch (ex)
    {
    alert("System Service object cannot be found.");
    return;
    }

    Thanks

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: spanish localisation directory

    It's not necessary to use Platform Services, you can also get the locale by using WRT 1.0 SystemInfo Service API. Just copy this into your widget's HTML code:
    Code:
    <embed type="application/x-systeminfo-widget" hidden="yes"></embed>
    and then grab a reference to it with this JavaScript code:
    Code:
    var sysinfo = document.embeds[0];
    Hope it helps,
    Pit

  5. #5
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Re: spanish localisation directory

    Hi,
    Thanks for your help with this,

    I have added the embed tag within the body of my html, and have added the following to my init() function:

    var sysinfo = document.embeds[0];
    alert(sysinfo.language)

    The widget is alerting 'undefined'.

    Thanks

  6. #6
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: spanish localisation directory

    Hi jayboduke,

    does it always give 'undefined', or it gives that only when Spanish language is enabled?

    Pit

  7. #7
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Re: spanish localisation directory

    Hi Pit,

    I have it displaying the language correctly (had the embed placed after the .js include). When spanish is selected, it is alerting the language as en when i have Spanish selected (I thought this was English?)

    Thanks
    Last edited by jayboduke; 2009-11-17 at 12:09.

Similar Threads

  1. File I/O Fault
    By kumarkkk in forum Symbian
    Replies: 23
    Last Post: 2009-05-07, 08:31
  2. Error in packaging process :(
    By a-eqla3 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2008-07-24, 20:33

Posting Permissions

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