From 0c12db69804e8e66a003f15e94d1e507ca287e4f Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Mon, 12 Nov 2007 04:15:53 +0000 Subject: [PATCH] Use module dir for nls, make modules relocateable. SVN revision: 32599 --- src/e_mod_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 8365d92..09629ad 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -15,7 +15,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"); item_edd = E_CONFIG_DD_NEW("Config_Item", Config_Item);