开发者

Any tool to parse a ZF project for translate() method?

I used gettext as adapter for Zend_Translate in the past and poedit has such utility that parses a project for translate() methods.

But I'm not using gettext anymore (it's a requirement) and I use CSV instead.

I'd like to know if there are any utilities to parse my project and help me to gather all my translated string.

I know some such as Navigation, Form, and Routes won't included as it is done slightly differently but if it could开发者_StackOverflow社区 be a least in views script, It would help me a lot !

Thank you


I would recommend Poedit, which produces .po file, which is a regular text file, which you can easily parse to generate CSV.

The other way is to log untranslated messages directly to CSV, like described here:

  • Proper handling of untranslated messages - Blacksheep's Paradise
  • How to add missing translations - Blacksheep's Paradise


No experience with this in particular, but it looks like it might be of use to you: http://translate.sourceforge.net/wiki/toolkit/csv2po

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜