wordpress at dd32.id.au
Wed Jul 23 14:25:50 GMT 2008
You're right, I didnt notice you were passing the 3rd param too :)
On Thu, 24 Jul 2008 00:19:59 +1000, Stephen Rider
<wp-hackers at striderweb.com> wrote:
> 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.
>> 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
>>> $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?
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers