[wp-hackers] Improving Plugin (and Theme) metadata

Ryan Boren ryan at boren.nu
Fri Jan 25 17:53:34 GMT 2008


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
>
> http://trac.wordpress.org/ticket/3089

We've come back around to what was said at the beginning. :-)

http://trac.wordpress.org/ticket/3089#comment:18

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.

Ryan


More information about the wp-hackers mailing list