check for bind_textdomain_codeset, use standard HAVE_FOO semantic for
2001-08-30 Sven Neumann <sven@gimp.org> * configure.in: check for bind_textdomain_codeset, use standard HAVE_FOO semantic for difftime. * libgimp/gimpintl.h * libgimp/libgimp-intl.h * libgimp/stdplugins-intl.h: set encoding of message translations to UTF-8 if bind_textdomain_codeset() is available. We still explicitely set LC_NUMERIC to "C" so we can write and parse floats in a defined way independent of the locale. We might want to find a cleaner solution for this. * plug-ins/script-fu/script-fu-server.c: inverted preprocessor logic from NO_DIFFTIME to HAVE_DIFFTIME. * plug-ins/script-fu/scripts/trochoid.scm: fixed parameter description (bug #59760).
This commit is contained in:

committed by
Sven Neumann

parent
645642e8d3
commit
12f7df64cf
@ -25,26 +25,19 @@
|
||||
#include "gimpintl.h"
|
||||
|
||||
|
||||
#ifdef HAVE_LC_MESSAGES
|
||||
#define INIT_I18N() G_STMT_START{ \
|
||||
setlocale(LC_MESSAGES, ""); \
|
||||
bindtextdomain("gimp-libgimp", LOCALEDIR); \
|
||||
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
||||
textdomain("gimp-std-plugins"); \
|
||||
}G_STMT_END
|
||||
#else
|
||||
#define INIT_I18N() G_STMT_START{ \
|
||||
bindtextdomain("gimp-libgimp", LOCALEDIR); \
|
||||
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
||||
textdomain("gimp-std-plugins"); \
|
||||
}G_STMT_END
|
||||
#endif
|
||||
#define INIT_I18N() G_STMT_START{ \
|
||||
bindtextdomain("gimp-libgimp", LOCALEDIR); \
|
||||
bind_textdomain_codeset ("gimp-libgimp", "UTF-8"); \
|
||||
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
||||
bind_textdomain_codeset ("gimp-std-plugins", "UTF-8"); \
|
||||
textdomain("gimp-std-plugins"); \
|
||||
setlocale (LC_NUMERIC, "C"); \
|
||||
}G_STMT_END
|
||||
|
||||
#define INIT_I18N_UI() G_STMT_START{ \
|
||||
gtk_set_locale(); \
|
||||
setlocale (LC_NUMERIC, "C"); \
|
||||
INIT_I18N(); \
|
||||
}G_STMT_END
|
||||
}G_STMT_END
|
||||
|
||||
|
||||
#endif /* __STDPLUGINS_INTL_H__ */
|
||||
|
Reference in New Issue
Block a user