Internationalize an iPhone application

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.
LVL 15
gplanaAsked:
Who is Participating?
 
darbid73Connect With a Mentor Commented:
Then maybe I do not understand you.

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

@"Hello"

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"
0
 
darbid73Commented:

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.

Localization
0
 
gplanaAuthor Commented:
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.
0
 
gplanaAuthor Commented:
Oh, now I understand. Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.