Search code examples
phpinternationalizationgettextmultilingualpo-file

php source code to PO file generator


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.


Solution

  • Yes I got the answer.

    There is a method to extract all the string from a give source file for a folder. Here is the link you can check:

    • Extract the strings from source code for Translation (for po file) [link now dead]

    • Poedit: A cross-platform PO to MO converter and PO file editor [link now dead]