Look for locales in "locale" folder under Win32

This commit is contained in:
Christian Dywan 2009-07-20 09:51:29 +02:00
parent cd2e5a3cca
commit 94198ef19a

View 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