Ray's playground

 

Localization(Chapter 16 of Cocoa Programming for Mac OS X)

Clearly, as you develop and localize many applications, you will develop a set of common translations. It would be handy to have an automated way to get the translated strings into a nib file. This is one of several uses for ibtool.

     The ibtool command, which is run from the terminal, can list the classes or objects in a nib file and can also dump the localizable strings into a plist. Here is how you would dump the localizable strings from the English.lproj/MyDocument.nib file into a file named Doc.strings:

     > cd RaiseMan/English.lproj > ibtool --generate-stringsfile Doc.strings MyDocument.nib

posted on 2011-02-23 17:41  Ray Z  阅读(150)  评论(0编辑  收藏  举报

导航