When you want to localize your application, you generally localize your strings first by using the genstrings command. Most people will tell you to run something like this:genstrings ./Classes/*.m
That’s not the best way to do things though, as you might have source files in other directories, especially if you’re developing a Universal application. Instead, go to the top of your directory structure and run this command:find . -name '*.m' | xargs genstrings
That will recursively look through your entire directory structure, find all the .m files, and then pass those to genstrings.
From: http://gargoylesoft.com/blog/2011/02/localizable-strings/
本文介绍了一种改进的方法来实现iOS应用中的字符串本地化。通过使用find命令结合genstrings工具,可以递归地搜索整个项目目录结构中的所有.m文件,并自动进行字符串资源的提取,这种方法适用于那些源文件分散在不同目录的情况。
4404

被折叠的 条评论
为什么被折叠?



