[wp-hackers] Improving Plugin (and Theme) metadata
    Jennifer Hodgdon 
    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?
     --Jennifer
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
>>
>> 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.
-- 
Jennifer Hodgdon
Poplar ProductivityWare * www.poplarware.com
Web Databases/Scripts * Modeling/Analysis/Palm OS Software
    
    
More information about the wp-hackers
mailing list