[wp-hackers] Testing plugin translations

James Davis james at freecharity.org.uk
Thu Oct 4 07:25:52 GMT 2007


A kind volunteer has translated my plugin into Italian. We've produced
.po and .mo files for the plugin.

plugins/petition/petition.php
plugins/petition/petition-it_IT.po
plugins/petition/petition-it_IT.mo

In my wp-config.php I've set

define ('WPLANG', 'it_IT');

and in petition.php I've called

load_plugin_textdomain("fcpetition", dirname(__FILE__));

and strings in the plugin are printed with functions such as

 _e("Please enter the petition title","fcpetition")

Yet I don't see my plugin's output being displayed in Italian. Am I
missing some vital step?

James

-- 
http://www.freecharity.org.uk/ - Free IT services for charities
http://www.freecharity.org.uk/wiki/ - The VCSWiki


More information about the wp-hackers mailing list