[wp-hackers] Internationalizing plugin meta-data...

Jennifer Hodgdon yahgrp at poplarware.com
Tue Mar 17 03:49:06 GMT 2009

Jacob: Agreed -- that method is definitely hackish -- almost as bad as 
editing the POT file by hand and adding the strings myself. The main 
problem is maintaining the text in two places at once.

The method on the Codex page is the Official Right Way to do it, 
except that it doesn't work.

Samuel: thanks for the pointer to wp-includes -- hadn't noticed those 
files being in the WP distro. I will check and see if that works, and 
post back, tomorrow morning.


Jacob Santos wrote:
> Basically, you can do this, but it is seriously hackish way to do it.
> <?php
> __('Plugin Name', 'textdomain');
> __('Plugin Description', 'textdomain');
> __('Plugin Author', 'textdomain');
> __('Plugin URL', 'textdomain');
> // ...
> ?>
> Jacob Santos
> Jennifer Hodgdon wrote:
>> I'm trying to follow the instructions in 
>> http://codex.wordpress.org/I18n_for_WordPress_Developers for how to 
>> get the plugin meta-data into my plugin's POT file, for a plugin that 
>> is not in the repository.

Jennifer Hodgdon * Poplar ProductivityWare
Drupal, WordPress, and custom Web programming

More information about the wp-hackers mailing list