mirror of https://github.com/GNOME/gimp.git
27 lines
608 B
C
27 lines
608 B
C
#include "libgimp/gimpintl.h"
|
|
#include <locale.h>
|
|
|
|
#ifndef LOCALEDIR
|
|
#define LOCALEDIR g_strconcat (gimp_data_directory (), \
|
|
G_DIR_SEPARATOR_S, \
|
|
"locale", \
|
|
NULL)
|
|
#endif
|
|
|
|
#ifdef HAVE_LC_MESSAGES
|
|
#define INIT_I18N() \
|
|
setlocale(LC_MESSAGES, ""); \
|
|
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
|
textdomain("gimp-std-plugins")
|
|
#define INIT_I18N_UI() \
|
|
gtk_set_locale(); \
|
|
INIT_I18N();
|
|
#else
|
|
#define INIT_I18N() \
|
|
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
|
textdomain("gimp-std-plugins")
|
|
#define INIT_I18N_UI() \
|
|
gtk_set_locale(); \
|
|
INIT_I18N();
|
|
#endif
|