blob: c91048bb2d3ac32ee368f0ee54d03918facefc93 [file] [log] [blame]
--- gtkspell-2.0.16/gtkspell/gtkspell.c 2009-10-09 21:01:47.000000000 +0200
+++ gtkspell-2.0.16/gtkspell/gtkspell.c 2017-04-08 15:24:36.476426500 +0200
@@ -740,7 +740,13 @@
GtkSpell *spell;
#ifdef ENABLE_NLS
+#ifdef G_OS_WIN32
+ gchar *dir = g_win32_get_package_installation_directory_of_module(NULL);
+ bindtextdomain(PACKAGE, g_build_filename (dir, "share", "locale", NULL));
+ g_free(dir);
+#else
bindtextdomain(PACKAGE, LOCALEDIR);
+#endif
bind_textdomain_codeset(PACKAGE, "UTF-8");
#endif