From: Christian Dywan Date: Mon, 20 Jul 2009 07:51:29 +0000 (+0200) Subject: Look for locales in "locale" folder under Win32 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94198ef19aaecc4d46af43bee31e83c862fa9514;p=midori Look for locales in "locale" folder under Win32 --- diff --git a/midori/main.c b/midori/main.c index 19f9d250..7b61bfcf 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1478,7 +1478,15 @@ main (int argc, if (g_getenv ("NLSPATH")) bindtextdomain (GETTEXT_PACKAGE, g_getenv ("NLSPATH")); else + #ifdef G_OS_WIN32 + { + gchar* path = sokoke_find_data_filename ("locale"); + bindtextdomain (GETTEXT_PACKAGE, path); + g_free (path); + } + #else bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); + #endif bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif