mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-01 08:52:18 +01:00
Define ENABLE_NLS and GETTEXT_PACKAGE.
2001-01-17 Tor Lillqvist <tml@iki.fi> * config.h.win32.in: Define ENABLE_NLS and GETTEXT_PACKAGE. * makefile.mingw.in * makefile.msc.in: Use the GNU intl library. * gwin32.c (g_win32_get_package_installation_directory): New function. To be used by various GLib-using packages to get their installation directory, which should be stored in the Registry by some installer. * gwin32.h: Declare it. * testglib.c (main): Test it. * gutils.c: On Win32, define GLIB_LOCALE_DIR using g_win32_get_package_installation_directory(). * glib.def: Update.
This commit is contained in:
committed by
Tor Lillqvist
parent
62ce81bfc7
commit
a9d05d4cc4
9
gutils.c
9
gutils.c
@@ -1006,6 +1006,15 @@ g_get_codeset (void)
|
||||
|
||||
#include <libintl.h>
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
|
||||
#define GLIB_LOCALE_DIR \
|
||||
g_strconcat (g_win32_get_package_installation_directory (GETTEXT_PACKAGE), \
|
||||
G_DIR_SEPARATOR_S, \
|
||||
"locale", \
|
||||
NULL)
|
||||
#endif
|
||||
|
||||
int _glib_gettext_initialized = 0;
|
||||
|
||||
char *_glib_gettext_init (const char *str)
|
||||
|
||||
Reference in New Issue
Block a user