Closed grappler closed 11 years ago
+1 for these additions. If users use POEdit, then the POEdit reads these values and sets the project up, for rescanning, or creating .po files. If a different app opens this .pot, then it may ignore the X-Poedit headers, which is fine.
The Domain Path tag could also be added for completeness.
I think it has been added. b1d1566
No, that's the Text Domain header. The Domain Path header gives the relative path from plugin root to where language files are e.g. /lang/ .
I learnt something new today. What is the use of it?
It makes it easier for i18n tools, or something, to know where the .pot will go, and therefore what the base path value will be. Maybe. It has a default value, of /lang/ I think, or maybe /languages/, but it's easy enough to define it anyway.
I would have the top of the pot file like this.
You are missing the gettext keywords, the plural form and path.
If you wanted to top it off then you could add
Text Domain: TODO
like I mentioned in my comment. http://tommcfarlin.com/internationalize-wordpress-plugins/#comment-167129