From 10825b14b8964337f84769f10d799a281666e4c1 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 28 Nov 2007 01:06:07 +0000 Subject: [PATCH] A proper build of GNU libintl is supposed to export the variable 2007-11-28 Tor Lillqvist A proper build of GNU libintl is supposed to export the variable _nl_msg_cat_cntr. configure looks for that variable in order to recognize GNU gettext. If it sees that it is indeed GNU gettext that is used, it decides to install message catalogs in share/locale, otherwise in lib/locale. Until now on Windows I have built GTK+ against a build of GNU gettext that did not export _nl_msg_cat_cntr. But this will change, so we can't assume message catalogs are always in lib/locale. * gtk/gtkmain.c: (_gtk_get_localedir) [Win32]: Rework to handle GTK_LOCALEDIR being either in "lib" or "share". Move the function before the inclusion of gtkprivate.h so that it sees the original GTK_LOCALEDIR. * gtk-zip.sh.in: Check whether the message catalogs are in share/locale or lib/locale. svn path=/trunk/; revision=19083 --- ChangeLog | 19 +++++++++++++++ gtk-zip.sh.in | 18 ++++++++++++--- gtk/gtkmain.c | 64 +++++++++++++++++++++++++++++++++------------------ 3 files changed, 75 insertions(+), 26 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7c141eb9d..188bf1be2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,22 @@ +2007-11-28 Tor Lillqvist + + A proper build of GNU libintl is supposed to export the variable + _nl_msg_cat_cntr. configure looks for that variable in order to + recognize GNU gettext. If it sees that it is indeed GNU gettext + that is used, it decides to install message catalogs in + share/locale, otherwise in lib/locale. Until now on Windows I have + built GTK+ against a build of GNU gettext that did not export + _nl_msg_cat_cntr. But this will change, so we can't assume message + catalogs are always in lib/locale. + + * gtk/gtkmain.c: (_gtk_get_localedir) [Win32]: Rework to handle + GTK_LOCALEDIR being either in "lib" or "share". Move the function + before the inclusion of gtkprivate.h so that it sees the original + GTK_LOCALEDIR. + + * gtk-zip.sh.in: Check whether the message catalogs are in + share/locale or lib/locale. + 2007-11-28 Tor Lillqvist * gtk/Makefile.am: Improve portability. The -o option is present diff --git a/gtk-zip.sh.in b/gtk-zip.sh.in index f32c10e3e..8cd89a90f 100755 --- a/gtk-zip.sh.in +++ b/gtk-zip.sh.in @@ -14,7 +14,6 @@ cp -p @abs_srcdir@/COPYING share/doc/gtk+-dev-@GTK_VERSION@ rm $ZIP zip $ZIP -@ <