Use module dir for nls, make modules relocateable.

SVN revision: 32599
This commit is contained in:
Sebastian Dransfeld 2007-11-12 04:15:53 +00:00
parent 32f0211730
commit e74c7b2975
1 changed files with 4 additions and 1 deletions

View File

@ -417,7 +417,10 @@ EAPI E_Module_Api e_modapi = {
EAPI void *
e_modapi_init (E_Module * m)
{
bindtextdomain (PACKAGE, LOCALEDIR);
char buf[4096];
snprintf (buf, sizeof (buf), "%s/locale", e_module_dir_get (m));
bindtextdomain (PACKAGE, buf);
bind_textdomain_codeset (PACKAGE, "UTF-8");
conf_box_edd = E_CONFIG_DD_NEW ("Mail_Box_Config", Config_Box);