From 94198ef19aaecc4d46af43bee31e83c862fa9514 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 20 Jul 2009 09:51:29 +0200 Subject: [PATCH] Look for locales in "locale" folder under Win32 --- midori/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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