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:
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
相关文章推荐
- Memory Management(Chapter 4 of Cocoa Programming for Mac OS X)
- Creating NSFormatters(Chapter 26 of Cocoa Programming for Mac OS X)
- Pasteboards and Nil-Targeted Actions(Chapter 21 of Cocoa Programming for Mac OS X)
- NSUndoManager(Chapter 9 of Cocoa Programming for Mac OS X)
- Let's Get Started(Chapter 2 of Cocoa Programming for Mac OS X)
- Objective-C(Chapter 3 of Cocoa Programming for Mac OS X)
- Images and Mouse Events(Chapter 18 of Cocoa Programming for Mac OS X)
- Printing(Chapter 27 of Cocoa Programming for Mac OS X)
- Custom Views(Chapter 17 of Cocoa Programming for Mac OS X)
- Archiving(Chapter 10 of Cocoa Programming for Mac OS X)
- Nib Files and NSWindowController(Chapter 12 of Cocoa Programming for Mac OS X)
- Using Notifications(Chapter 14 of Cocoa Programming for Mac OS X)
- Web Service(Chapter 28 of Cocoa Programming for Mac OS X)
- Core Data Relationships(Chapter 30 of Cocoa Programming for Mac OS X)
- NSArrayController(Chapter 8 of Cocoa Programming for Mac OS X)
- Basic Core Data(Chapter 11 of Cocoa Programming for Mac OS X)
- Using Alert Panels(Chapter 15 of Cocoa Programming for Mac OS X)
- Drag-and-Drop(Chapter 23 of Cocoa Programming for Mac OS X)
- Keyboard Events(Chapter 19 of Cocoa Programming for Mac OS X)
- View Swapping(Chapter 29 of Cocoa Programming for Mac OS X)