Is there such a thing out there?
A script that's able to create a .po file from .php files 开发者_开发百科dropped inside a directory/
There are no PHP i18n resource extractor as far as I know.
You just install gettext tools and invoke xgettext command from PHP with exec(). Although the tool written in C is not what you originally asked, the tool is well used by a lot of people so it would be far better quality-wise than writing something new in PHP with regex or something.
Here is the tool to create the .po files from PHP files http://www.icanlocalize.com/tools/php_scanner
精彩评论