[wp-hackers] load_plugin_textdomain() change proposal
Jamie Talbot
wphackers at jamietalbot.com
Sun Jan 28 00:33:12 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi David,
There is already load_theme_textdomain() for this purpose, defined as follows:
89
90 function load_theme_textdomain($domain) {
91 $locale = get_locale();
92
93 $mofile = get_template_directory() . "/$locale.mo";
94 load_textdomain($domain, $mofile);
95 }
96
Hope this helps,
Cheers,
Jamie.
David Horat wrote:
> Currenly, this function searches by default in "wp-content/plugin/"
> folder. This makes the this folder to have too many files and mess up
> the theme management. Each theme should be autocontained in just one
> folder, its folder. So all translations files should be included in
> its folder and not in the main plugin folder shared by all pluggins.
> It is just nonsense. To fix this issue there are two main posibilities
> here:
> <snip>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFu+9IrovxfShShFARAn5pAJ425jCNnWKsU25LKfLWlmVdHAwsnQCcCfSJ
c5xwQKIBnqHLkVa9Ku7JLKA=
=5OjJ
-----END PGP SIGNATURE-----
More information about the wp-hackers
mailing list