[wp-hackers] Localizing plugins
per at soderlind.no
Thu Jan 26 08:41:34 GMT 2006
> Jamie Talbot wrote:
> 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');
> Well, of course.
> The definitions were edited out of a plugin where I require
> the information in other places in the code as well. Plus,
> if you wanted to change the plugin domain because there was a
> clash (unlikely) or if you changed the plugin name, you'd
> only need to update it in one place. And having some kind of
> definition for the plugin path is useful anyway (as discussed
> in another topic).
Thank you guys :) This syntax wasn't in the Codex, that's why I asked.
More information about the wp-hackers