Localization(Chapter 16 of Cocoa Programming for Mac OS X)
Clearly, as you develop and localize manyapplications, you will develop a set of common translations. It would be handyto have an automated way to get the translated strings into a nib file. This isone of several uses for ibtool.The ibtool command, which isrun from the terminal, can list the classes or objects in a nib file and canalso dump the localizable strings into a plist.Here is how you would dump the localizable strings from theEnglish.lproj/MyDocument.nib file into a filenamed Doc.strings:
> cd RaiseMan/English.lproj > ibtool --generate-stringsfile Doc.strings MyDocument.nib
页:
[1]