Refer to the methods in xcode3. For details, see:
Http://www.voland.com.cn/iphone-use-nslocalizedstring-internationalization
Http://blog.csdn.net/kmyhy/article/details/6237677
The method is to first createLocalizable. Strings file, add multi-language support, and then use the command line to write constant strings to the corresponding languageIn localizable. Strings.
Xcode4 cannot be used, and you do not need to run the genstrings command for every language. You only need to run the for English command, in xcode4 IDE, you can simply add a language support, for example:
Here I have added both Chinese and English.
Then you can translate the corresponding strings.
Note: If you delete the content in the Chinese string and want to use genstrings-O to strings file under the zh-Hans.lproj, it won't work. In xcode3, but in xcode4. Therefore, it is not easy to delete them, or you have to translate them all again.