23 #include <glib/gi18n-lib.h>
37 static HMODULE evdocument_dll = NULL;
38 static gchar *locale_dir = NULL;
41 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
43 DllMain (HINSTANCE hinstDLL,
47 if (fdwReason == DLL_PROCESS_ATTACH)
48 evdocument_dll = hinstDLL;
55 _ev_win32_get_locale_dir (HMODULE module)
60 gchar *install_dir = NULL, *utf8_locale_dir;
62 if (evdocument_dll != NULL)
64 g_win32_get_package_installation_directory_of_module (module);
67 utf8_locale_dir = g_build_filename (install_dir,
68 "share",
"locale", NULL);
70 locale_dir = g_win32_locale_filename_from_utf8 (utf8_locale_dir);
73 g_free (utf8_locale_dir);
77 locale_dir = g_strdup (
"");
88 return _ev_win32_get_locale_dir (evdocument_dll);
90 return GNOMELOCALEDIR;
108 static gboolean have_backends;
111 return have_backends;
115 bind_textdomain_codeset (GETTEXT_PACKAGE,
"UTF-8");
121 return have_backends;
138 if (locale_dir != NULL)