views:

147

answers:

1

Hi

I have been trying to localize my iPhone app in two languages - english and german

I have created two folders en.lproj and de.lproj each containing Localizable.strings file for respective language. I have included these files in my resources folder, changed the encoding of these files to UTF-16.

I have tried cleaning the project and building it again, deleting folder at path: Library/Application Support/iPhone Simulator/User

But the problem is still there. Anybody having an idea please help.

A: 

I found this guide to be very useful

http://www.iphonesdkarticles.com/2008/11/localizing-iphone-apps.html


We have added 2 languages (to test the process, 1 European & 1 Asian double byte)

It's a two stage process, you will need to localize both your strings and your xibs. For the strings,

  1. Create the Localizable.strings (Only available under the MacOSX resources)
  2. Right click the new file and 'Get Info'
  3. Click the button 'Make File Localizable' (This will automatically add one language - English for me)
  4. In the 'Groups & Files' you should now be able to expand the resource file and see the new language
  5. From the command line run the command genstrings -o English.lproj *.m. This will parse your .m files and extract all the NSLocalizedStrings and put them in the file.

If you do Get Info again, you should be able to add more languages

For the xibs, right click on them and 'Make File Localizable'. These can then be translated separately

Liam
I have been following the same guide, still no success.I am just changing the Region Format in Settings. Do I need to change the language also? Which languages did you try for?