aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-plugin.c')
-rw-r--r--e-util/e-plugin.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/e-util/e-plugin.c b/e-util/e-plugin.c
index 0d74043b4d..d7320ab2cf 100644
--- a/e-util/e-plugin.c
+++ b/e-util/e-plugin.c
@@ -1,4 +1,8 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/types.h>
#include <dirent.h>
#include <string.h>
@@ -113,8 +117,15 @@ ep_construct(EPlugin *ep, xmlNodePtr root)
{
xmlNodePtr node;
int res = -1;
+ char *localedir;
ep->domain = e_plugin_xml_prop(root, "domain");
+ if (ep->domain
+ && (localedir = e_plugin_xml_prop(root, "localedir"))) {
+ bindtextdomain(ep->domain, localedir);
+ g_free(localedir);
+ }
+
ep->name = e_plugin_xml_prop_domain(root, "name", ep->domain);
pd(printf("creating plugin '%s' '%s'\n", ep->name?ep->name:"un-named", ep->id));