po-file

php source code to PO file generator

喜你入骨 提交于 2019-12-23 21:19:39
问题 I have to convert all my echo/print string from my php source code file to PO file (for the language translation ), is there any batch convector available for the same. 回答1: How I do this: make gettext run on your server setup a translation adapter (for example Zend_Translate with gettext adapter) use a good search tool to find all strings in your code and wrap them with something like $translationObject->translate(). Often the method is wrapped to be called __(). This will be at least partly