[wp-hackers] Localizing plugins
Michael E. Hancock
mhancock at us.net
Fri Jan 27 21:05:30 GMT 2006
From: "Per Soderlind" <per at soderlind.no>
> > > Ryan Duff wrote:
> > >> Jamie Talbot wrote:
> > >
> > >> define ("IM_DIR", "wp-content/plugins/ImageManager/");
> > >> define ("IM_DOMAIN", "ImageManager");
> > >> load_plugin_textdomain(IM_DOMAIN, IM_DIR);
> > >>
> > > Alternatively, I think you can use...
> > >
> > > load_plugin_textdomain('ImageManager',$path =
> > > 'wp-content/plugins/ImageManager');
>
> Thank you guys :) This syntax wasn't in the Codex, that's why I asked.
Changed http://codex.wordpress.org/Writing_a_Plugin#Localizing_Plugins to
reflect the $path var.
~~~MichaelH
More information about the wp-hackers
mailing list