Internationalize an iPhone application

Posted on 2011-10-12
Last Modified: 2012-05-12
Dear Expert:

I'm working on an internationalized iPhone application already localized on 3 languages.

I have added a label on a view which I have entered text on one language. Where can I enter the translations for the other 2 languages ? Which actions should I do ?

I have seen there are 3 files (1 for language) with a list of words on the language of the file, but I don't know how to link a string from there to a control on the view.

I'm using last version of Xcode (4.1).

Any help would be appreciated.

Thank you.
Question by:gplana
    LVL 19

    Expert Comment


    You need to use a localized string for your text see this link for a full explanation Localizing iPHone apps

    Have a look at number 3 in the following link for more explanation.

    LVL 15

    Author Comment

    Thank you for your help.

    However, I think both links are related to strings on the code. I'm worried now on strings added directly on the view graphycally, by assigning its text property.

    I think on previous xcode versions (version 3) this was called "Interface builder" but now it's integratted on xcode4.
    LVL 19

    Accepted Solution

    Then maybe I do not understand you.

    When you initialize your view you will need to set the label text.  Instead of


    Open in new window

    you will now use

    NSLocalizedString(@"Hello", @"")

    Open in new window

    Then you will need to build a file for every language you want to suppport and in that file you will have the key

    "Hello" = "What ever text you want on your label";

    Open in new window

    Now NSLocalizedString will return "What ever text you want on your label"
    LVL 15

    Author Comment

    Oh, now I understand. Thank you.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Updation of contacts on icloud 3 15
    iCalander 5 67
    Connecting iPhone to Citrix using OpenVPN 8 71
    Remote support for iPhone 2 33
    I recently tried to buy two songs from iTunes on my iPhone 3G.  Both songs errored out and listed in the "Downloads" tab with the error "Download error. Tap to retry."  The problem is that no matter how many times I tried, it failed and returned to …
    You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now