The above advice on abuse of the Glade extractor for parsing XML files other than Glade is wrong. It will never work well (example: some comments here). Of course, in 2010, it was better than nothing.
Starting with gettext 0.19.7 (bundled with Poedit from version 1.8.7), the best way: now there is built-in gettext support for custom XML files through ITS Rules .
The best way to extract strings from a custom XML file is
- Add your own extractor with the extension, specifying a standard gettext call, without the
-L glade bit. - Write ITS rules for your file format.
- Put them in the location of the other
.its and .loc in the Poedits installation.
source share