递归xgettext? [英] Recursive xgettext?

查看:89
本文介绍了递归xgettext?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用xgettext和PHP文件通过一个命令递归地编译.po文件?

How can I compile a .po file using xgettext with PHP files with a single command recursively?

我的PHP文件存在于层次结构中,直接的xgettext命令似乎没有递归地进行挖掘.

My PHP files exist in a hierarchy, and the straight xgettext command doesn't seem to dig down recursively.

推荐答案

知道了:

find . -iname "*.php" | xargs xgettext

我以前尝试使用-exec,但是一次只能运行一个文件.这样一堆就可以了.

I was trying to use -exec before, but that would only run one file at a time. This runs them on the bunch.

是的,谷歌!

这篇关于递归xgettext?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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