您的位置:首页 > 其它

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

2011-02-23 17:41 761 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: