--- gigedit/trunk/src/gigedit/gigedit.cpp 2008/12/28 09:53:14 1822 +++ gigedit/trunk/src/gigedit/gigedit.cpp 2008/12/28 09:58:05 1823 @@ -87,7 +87,24 @@ setlocale(LC_ALL, ""); #if HAVE_GETTEXT + +#ifdef WIN32 +#if GLIB_CHECK_VERSION(2, 16, 0) + gchar* root = + g_win32_get_package_installation_directory_of_module(NULL); +#else + gchar* root = + g_win32_get_package_installation_directory(NULL, NULL); +#endif + gchar* temp = g_build_filename(root, "/share/locale", NULL); + g_free(root); + gchar* localedir = g_win32_locale_filename_from_utf8(temp); + g_free(temp); + bindtextdomain(GETTEXT_PACKAGE, localedir); + g_free(localedir); +#else bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); +#endif bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); #endif // HAVE_GETTEXT