Recursive xgettext?

前端 未结 5 1904
故里飘歌
故里飘歌 2021-02-02 02:35

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

My PHP files exist in a hierarchy, and the straight xget

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 03:17

    Got it:

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

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

    Yay Google!

提交回复
热议问题