Question

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.

Was it helpful?

Solution

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).

OTHER TIPS

How about the xgettext util described here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top