[wp-polyglots] Creating a POT file for my WP plugin?

Viper007Bond lists at viper007bond.com
Thu Feb 23 10:52:35 GMT 2006


poEdit can do this? Well I'll be! Already have that installed and I've 
been using it to edit .po/.mo files, but didn't realize that it could 
parse PHP files and extract all the strings from it.

And yeah, I'm on top of load_plugin_textdomain() and all that. :D

Thanks! :)

-Viper

Pandem wrote:
> Viper007Bond escribió:
>> Hey all. I need a bit of help.
>>
>> How would I go about creating a translation template file for my 
>> plugin on my Windows system? I've already __() & _e()'ed all of my 
>> texts and I've checked out the Gettext command line thing, but it 
>> looks REALLY complicated.
>>
>> Can anyone help me out?
>>
>> - Viper007Bond
> You can use poEdit to easily extract your strings, then save the 
> resultant file as [name].pot. However, in order to get your plugin 
> correctly tagged, you must use the function 
> load_plugin_textdomain('[name]') and add this textdomain to your tags 
> like this: __('[some text string]', '[name]'). [name] could be an 
> abbreviated version of your plugin's name; the different languages .po 
> files shuld be named as [name]_xx.XX.po, where xx.XX is the locale for 
> that language.
> 
> Maira
> _______________________________________________
> wp-polyglots mailing list
> wp-polyglots at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-polyglots


More information about the wp-polyglots mailing list