Currently I'm in a major project which has several thousands of PHP gettext like translations

_("blabla I'm an English source file")

These lines will be translated with PO Files generated by PO Edit. However, we have an english gammer nazi which is going to check all of our grammar and correct spelling mistakes. However the grammer nazi is not really into coding and it would be nice to have a large list with all the __("blabla") strings.

So basically I'm looking for a tool which can read all my PHP Files (much like PO edit) and make it a readable list that can be edited and saved (back to the PHP files).

Is there such a tool? Or am I doomed and do I create it myself?

I prefer OSX since were all using it here, but something windowsish would be fine.

有帮助吗?

解决方案

I would just use English like you use your other translations and create a po file for it. This way your English grammer person can also change whole sentences now and later without actually affecting the code. And you can at some point add different english versions (e.g. en-US, en-GB).

其他提示

How about the xgettext util described here.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top