How to configure poedit to extract strings from xml file?
I have Zend Framework navigation items in .xml like this:
<entry-i>
<label>Text to translate</label>
<params>
...
<params>
<entry-i>
And I want poedit to read just messages from <label>s.
I have been searching for a solution as well, and I have just gotten it to work!
In Poedit (I have 1.4.2), add a new parser (
Edit > Preferences) with the following properties:XML*.xmlxgettext --force-po -o %o %C %K %F -L glade-k%k%f--from-code=%cIn your translation project, add
labelandtitleto your keyword list and update the catalog.