[wp-hackers] Testing plugin translations

James Davis james at freecharity.org.uk
Thu Oct 4 08:09:59 GMT 2007


Ozh wrote:

>>From the source:
> $mofile = ABSPATH . "$path/$domain-$locale.mo";
> 
> so I think you need something like:
> load_plugin_textdomain('fcpetition', 
> 'wp-content/plugins/'.plugin_basename(dirname(__FILE__)));

Thanks. It was that and making sure that the file was named according to
the domain I was using, not the filename of the plugin itself.

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