开发者

A .po Generator written in PHP

开发者 https://www.devze.com 2023-03-29 17:49 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号