diff options
author | Tor Lillqvist <tml@novell.com> | 2006-06-15 18:18:36 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2006-06-15 18:18:36 +0800 |
commit | ebb44eb8cce238c3e981f40e02cd349659434857 (patch) | |
tree | d625e1a88c170ea4be092cd178b8533e1e10b4b2 /e-util/e-plugin.c | |
parent | c520728ac008ebab9a095460e68e2d07f689affe (diff) | |
download | gsoc2013-evolution-ebb44eb8cce238c3e981f40e02cd349659434857.tar.gz gsoc2013-evolution-ebb44eb8cce238c3e981f40e02cd349659434857.tar.zst gsoc2013-evolution-ebb44eb8cce238c3e981f40e02cd349659434857.zip |
On Win32, if the compile-time localedir's prefix from the plugin's .eplug
2006-06-15 Tor Lillqvist <tml@novell.com>
* e-plugin.c (ep_construct): On Win32, if the compile-time
localedir's prefix from the plugin's .eplug file matches
Evolution's compile-time prefix, replace it with the run-time
prefix (installation directory).
svn path=/trunk/; revision=32150
Diffstat (limited to 'e-util/e-plugin.c')
-rw-r--r-- | e-util/e-plugin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/e-util/e-plugin.c b/e-util/e-plugin.c index d565c498a0..b645524569 100644 --- a/e-util/e-plugin.c +++ b/e-util/e-plugin.c @@ -145,6 +145,14 @@ ep_construct(EPlugin *ep, xmlNodePtr root) ep->domain = e_plugin_xml_prop(root, "domain"); if (ep->domain && (localedir = e_plugin_xml_prop(root, "localedir"))) { +#ifdef G_OS_WIN32 + char *mapped_localedir = + e_util_replace_prefix (EVOLUTION_PREFIX, + e_util_get_prefix (), + localedir); + g_free (localedir); + localedir = mapped_localedir; +#endif bindtextdomain(ep->domain, localedir); g_free(localedir); } |