[wp-hackers] load_plugin_textdomain()
Stephen Rider
wp-hackers at striderweb.com
Wed Jul 23 14:19:59 GMT 2008
Putting in the third parameter, as I did, works just fine with WP
2.6. The third parameter is relative to the plugin folder, and thus
moves with it.
On Jul 23, 2008, at 9:09 AM, DD32 wrote:
> Thats not very compatible with 2.6 & custom wp-content directories.
>
> http://trac.wordpress.org/ticket/7075#comment:3
>
> On Thu, 24 Jul 2008 00:02:22 +1000, Stephen Rider <wp-hackers at striderweb.com
> > wrote:
>
>> This works for me, with .mo in a /languages/ folder inside the plugin
>> folder:
>>
>> $plugin_dir = basename(dirname(__FILE__));
>> load_plugin_textdomain( 'myplugin', 'wp-content/plugins/'.
>> $plugin_dir.'/languages', $plugin_dir.'/languages' );
>> On Jul 23, 2008, at 8:48 AM, Otto wrote:
>>
>>> What is the correct and forward compatible way to call
>>> load_plugin_textdomain() inside a plugin?
>>
More information about the wp-hackers
mailing list