将genstrings与文件夹结构的项目一起使用以进行本地化 [英] Use genstrings with a folder-structured project for localization

查看:108
本文介绍了将genstrings与文件夹结构的项目一起使用以进行本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在带有包含* .m文件的文件夹的iOS项目中,类似于软件包,必须运行 为每个文件夹genstrings -o en.lproj *.m并匹配相对的en.lproj路径.是否有命令可以从根文件夹中向下钻取?

In an iOS Project with folders containing *.m files, similar to packages, one will have to run genstrings -o en.lproj *.m for each folder and match the relative en.lproj path. Is there a command that will do the drill down from the root folder?

推荐答案

您可以将所有* .m文件连接为一个文件,然后在该文件上调用 genstrings .

You can concatenate all of the *.m files into one file and then call the genstrings on that.

IE:

find . -name "*.m" -exec cat {} >> all.txt \;

这篇关于将genstrings与文件夹结构的项目一起使用以进行本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆