[wp-hackers] Improving Plugin (and Theme) metadata
yahgrp at poplarware.com
Fri Jan 25 18:24:05 GMT 2008
As long as the plugin puts in its own text domain name, why would
calling __() pollute the main catalog?
Ryan Boren wrote:
> On Jan 25, 2008 9:25 AM, Jennifer Hodgdon <yahgrp at poplarware.com> wrote:
>> Stephen Rider wrote:
>>> I just tested it. In Poedit, the strings are _not_ automatically imported.
>> The easiest solution to this is to add a line just *under* the comment
>> setting the text to variables, e.g.:
>> $desc = __("My super duper plugin", "myplugin");
>> Then POEdit will find the strings. I tested this yesterday with the
>> patch to
> We've come back around to what was said at the beginning. :-)
> That plus calling translate() instead of __() in the manage plugins
> page to avoid WP catalog pollution will work. Ugly as hell, but it
> will work. Care would have to be taken to make sure the strings in
> the plugin header match what is in __() exactly, new lines and all.
Poplar ProductivityWare * www.poplarware.com
Web Databases/Scripts * Modeling/Analysis/Palm OS Software
More information about the wp-hackers