Tutorial: How to localize an iOS app with XCode 4

1. Add new localization
2. Then for each of your XIB you want to localize, click on it, go to the property panel and add wanted languages. The unique XIB file will be then dispatched into many files, one for each language. Then just adapt each one as wanted.
3. Select root node of project tree to get project’s properties. Select “Build Phases” tab. Click “Add build phase” and select “Copy files”. Select “Resources” in “Copy files” view. Add Localizable.strings file:
4. Rename InfoPlist.strings to Localizable.strings
5. Add keys in your Localizable.strings:
“Delete” = “Borrar”;
5. In your code, use NSLocalizedString to print the value for each key:
NSLocalizedString(@”Delete”, ); //Add a description if you want
Tutorial: How to localize an iOS app with XCode 4 Tutorial: How to localize an iOS app with XCode 4 Reviewed by Unknown on 12:17 Rating: 5

1 comentario:

  1. My opinion is that iOS app localization can be managed more easily using the software localization platform POEditor so I recommend it to anyone looking for a solution to simplify their l10n workflow through automation.

    It's a very useful tool for translating strings in a team, even for crowdsourcing software translation projects.

    ResponderEliminar

Con la tecnología de Blogger.