[wp-hackers] Improving Plugin (and Theme) metadata
Stephen Rider
wp-hackers at striderweb.com
Fri Jan 25 16:51:34 GMT 2008
I just tested it. In Poedit, the strings are _not_ automatically
imported.
It's not hard to add them manually to an existing .po file, but it is
an extra step and kind of a pain to maintain.... Dang it.
...But no less a pain than maintaining a second copy of every thing
in a special metadata file.
Stephen
On Jan 25, 2008, at 3:08 AM, Sören Weber wrote:
> 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
> */
>
>> On Jan 25, 2008 6:25 AM, Stephen Rider <wp-hackers at striderweb.com>
>> wrote:
>>> Text Domain: myplugin
>>
>> Sounds neat & simple, but how does the plugin author add the required
>> strings (plugin name, desc etc....) to its .mo/.po(t) ?
More information about the wp-hackers
mailing list