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

Jennifer Hodgdon yahgrp at poplarware.com
Fri Jan 25 17:25:50 GMT 2008

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



>> It's only an optimistic assumption: the .po compiler hopefully does not
>> care about whether a string is inside of PHP comments or not as long a as
>> the string matches the .po's search condition (which usually is '__' and
>> '_e' at the moment). I haven't verfied this yet.
>> [...]
>> /*
>> Plugin Name: Blah
>> Version: 2.0.2
>> Plugin URI: http://example.com
>> Author: Me
>> Author URI: http://example.com
>> Description: __("My super duper plugin")
>> Text Domain: myplugin
>> */

Jennifer Hodgdon

Poplar ProductivityWare * www.poplarware.com
Web Databases/Scripts * Modeling/Analysis/Palm OS Software

More information about the wp-hackers mailing list