1999-09-26 13:16:19 +08:00
|
|
|
#ifndef __STDPLUGINS_INTL_H__
|
|
|
|
#define __STDPLUGINS_INTL_H__
|
1999-09-25 09:59:43 +08:00
|
|
|
|
1999-05-30 15:01:13 +08:00
|
|
|
#include <locale.h>
|
1999-05-30 00:35:47 +08:00
|
|
|
|
1999-09-25 09:59:43 +08:00
|
|
|
#include "libgimp/gimpintl.h"
|
|
|
|
|
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")
|
|
|
|
#else
|
|
|
|
#define INIT_I18N() \
|
|
|
|
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
|
|
|
textdomain("gimp-std-plugins")
|
1999-09-23 19:49:16 +08:00
|
|
|
#endif
|
1999-09-25 09:59:43 +08:00
|
|
|
|
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-09-25 09:59:43 +08:00
|
|
|
|
1999-09-26 13:16:19 +08:00
|
|
|
#endif /* __STDPLUGINS_INTL_H__ */
|