[wp-polyglots] Creating a POT file for my WP plugin?
lists at viper007bond.com
Fri Feb 24 13:40:06 GMT 2006
Hmm, what settings for the keywords tab do I use to get poEdit to grab
> 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.
> wp-polyglots mailing list
> wp-polyglots at lists.automattic.com
More information about the wp-polyglots