Hi all,
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.
Hi all,
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.
Sadly, I do not think such a tool exists. If you find one it will likely be limited in functionality
This is due to ability of php to intermingle with html. It is hard to be able to know what exactly should be included in a particular gettext file.
If you only use "echo" statements to send content to the browser and you are never mixing html and php, then it is pretty simple to write up a script to parse that out.
HTH, -FT
You need http://www.poedit.net/
You can use Poedit to scan source code for translatable strings.
How I do this:
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)
Poedit: A cross-platform PO to MO converter and PO file editor