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..
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..
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).