Some tools exist to automate the task of enclosing source text and creating
messages.xx.xml files. Unfortunately, none will be able to do the enclosing as well as you would do. Only you can determine where to start and where to end the
__() call. Although we don’t use them, we provide a link to the websites where you will find resources about automated translation tools:
xgettextcommand from the GNU getText tool provides a way to extract text from PHP code. It produces a
.potfile (list of the terms) that can be declined into a series of
.pofiles (list of the terms translated in one language).
po2xliffcommand from the XLIFF tools turns
- For Windows users, the Okapi framework can be a good alternative.
- To edit the translation files, poedit proposes an intuitive interface (this is especially useful since most of the human translators don’t understand either XML or