1

Is there such a thing out there?

A script that's able to create a .po file from .php files dropped inside a directory/

Erji
  • 11
  • 1

2 Answers2

0

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.

akky
  • 2,818
  • 21
  • 31
0

Here is the tool to create the .po files from PHP files http://www.icanlocalize.com/tools/php_scanner

Fernando Montoya
  • 2,625
  • 1
  • 18
  • 21