Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Setting locale to Swedish in my App somewhere

When I install my apps on my iPhone all standard buttons and controllers appear in English. So when the camera is started it states "USE" instead of the Swedish word which whould be "ANVÄND".

Can I tell my Titanium project to set localization to Swedish somewhere?

— asked May 4th 2010 by Andreas Kviby
  • controls
  • localization
0 Comments

3 Answers

  • This would be very helpful to know for me too!

    — answered May 5th 2010 by Soeren Damrau
    permalink
    0 Comments
  • Ahhh!

    now I can answer the question - I found a way to set the language for the app:

    simply edit the "Info.plist.template" file in your app directory (appdir/iphone/build/Info.plist.template) switch the first line (now "English") to what you need.

    Hope that helps!

    — answered May 5th 2010 by Soeren Damrau
    permalink
    0 Comments
  • UPDATE: NOW IT WORKS!

    I am not entirely sure what I did to make this happen. All I can say is that I did the following:

    1. Moving my Info.plist from <ProjectName>/build/iphone/Info.plist to <ProjectName>/
    2. Opening the Info.plist file and changing the language to "Denmark".
    3. Compiling (which somehow makes a copy of the Info.plist and puts the copy in the original place, but keeping my changes).

    I guess maybe I did something to make a complete recompile (you can force this by deleting the directory: <ProjectName>/build/iphone/).

    All of the sudden it started working… :D


    I am having the exact same problem. I am developing an application for the danish market, and would like the native elements to appear with danish texts (my specific problem lies with the search field and the associated cancel button).

    So far I have tried fixing the Info.plist file - I followed the advice from another thread:

    1. Moving my Info.plist from <ProjectName>/build/iphone/Info.plist to <ProjectName>/
    2. Opening the Info.plist file and changing the language to danish
    3. Compiling (which somehow makes a copy of the Info.plist and puts the copy in the original place, but keeping my changes).

    This, however, did not do anything for me with regards to getting danish working in the native elements. Maybe I am not using the right value for danish; I have tried some different variations, such as Danish, Denmark, da, dk and so on. No luck so far.

    I tried doing the same changes to the Info.plist.template file, as suggested elsewhere in the thread, but it didn't change anything.

    I have seen quite a few threads regarding this issue, but so far no answers. Any thoughts?

    — answered November 17th 2010 by John Doktor
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.