views:

114

answers:

1

I am just getting familiar with the localization of xib files and was wondering if there's a way of localizing the strings within the xib by refering to the plists directly...

Appreciate some thoughts..

A: 

The Apple suggested way to do this is to exprot the strings into .strings files in .lproj bundles, that will be switched out by Cocoa's localization framework.

Xcode can generate the .strings files from the xib, which make localization pretty straight forward.

Right click on the xib file in Xcode, and choose Get Info. Select the General tab and on the bottom click Make File Localizable. Then you will be able to add localizations by clicking Add Localization on that same tab.

I would recommend this tutorial for step-by-step information (and pretty pictures).

csexton
Thanks. Actually, I am trying to directly refer the plists like en_Strings.plist/fr_Strings.plists for the XIB strings as well. I want to avoid creating an en_XIB, fr_XIB.
Mansi