]> spindle.queued.net Git - midori/commitdiff
Look for locales in "locale" folder under Win32
authorChristian Dywan <christian@twotoasts.de>
Mon, 20 Jul 2009 07:51:29 +0000 (09:51 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 20 Jul 2009 07:51:29 +0000 (09:51 +0200)
midori/main.c

index 19f9d250efd184e19d9e3eb91f622bf7bbb1bb21..7b61bfcf513b4774c6639967a296f0e6eb7914c9 100644 (file)
@@ -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