i18n patch from Daniel Egger
--Sven
This commit is contained in:
@ -1,28 +1,17 @@
|
||||
#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(); \
|
||||
setlocale (LC_NUMERIC, "C"); \
|
||||
INIT_I18N();
|
||||
#else
|
||||
#define INIT_I18N() \
|
||||
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
||||
textdomain("gimp-std-plugins")
|
||||
#endif
|
||||
#define INIT_I18N_UI() \
|
||||
gtk_set_locale(); \
|
||||
setlocale (LC_NUMERIC, "C"); \
|
||||
INIT_I18N();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user