1999-05-30 00:35:47 +08:00
|
|
|
#include "libgimp/gimpintl.h"
|
1999-05-30 15:01:13 +08:00
|
|
|
#include <locale.h>
|
1999-05-30 00:35:47 +08:00
|
|
|
|
1999-06-15 06:18:02 +08:00
|
|
|
#ifndef LOCALEDIR
|
|
|
|
#define LOCALEDIR g_strconcat (gimp_data_directory (), \
|
|
|
|
G_DIR_SEPARATOR_S, \
|
|
|
|
"locale", \
|
|
|
|
NULL)
|
|
|
|
#endif
|
|
|
|
|
1999-05-30 00:35:47 +08:00
|
|
|
#ifdef HAVE_LC_MESSAGES
|
|
|
|
#define INIT_I18N() \
|
|
|
|
setlocale(LC_MESSAGES, ""); \
|
|
|
|
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
|
|
|
textdomain("gimp-std-plugins")
|
1999-08-28 05:06:00 +08:00
|
|
|
#define INIT_I18N_UI() \
|
|
|
|
gtk_set_locale(); \
|
1999-09-04 08:39:05 +08:00
|
|
|
setlocale (LC_NUMERIC, "C"); \
|
1999-08-28 05:06:00 +08:00
|
|
|
INIT_I18N();
|
1999-05-30 00:35:47 +08:00
|
|
|
#else
|
|
|
|
#define INIT_I18N() \
|
|
|
|
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
|
|
|
textdomain("gimp-std-plugins")
|
1999-08-28 05:06:00 +08:00
|
|
|
#define INIT_I18N_UI() \
|
|
|
|
gtk_set_locale(); \
|
1999-09-04 08:39:05 +08:00
|
|
|
setlocale (LC_NUMERIC, "C"); \
|
1999-08-28 05:06:00 +08:00
|
|
|
INIT_I18N();
|
1999-05-30 00:35:47 +08:00
|
|
|
#endif
|