mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
dea7f1ce43
* libgimp/gimpintl.h * libgimp/stdplugins-intl.h: use G_STMT_START and G_STMT_END for multiline #defines i18n stuff from David Monniaux -Yosh
28 lines
643 B
C
28 lines
643 B
C
#ifndef __STDPLUGINS_INTL_H__
|
|
#define __STDPLUGINS_INTL_H__
|
|
|
|
#include <locale.h>
|
|
|
|
#include "libgimp/gimpintl.h"
|
|
|
|
#ifdef HAVE_LC_MESSAGES
|
|
#define INIT_I18N() G_STMT_START{ \
|
|
setlocale(LC_MESSAGES, ""); \
|
|
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
|
textdomain("gimp-std-plugins"); \
|
|
}G_STMT_END
|
|
#else
|
|
#define INIT_I18N() G_STMT_START{ \
|
|
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
|
textdomain("gimp-std-plugins"); \
|
|
}G_STMT_END
|
|
#endif
|
|
|
|
#define INIT_I18N_UI() G_STMT_START{ \
|
|
gtk_set_locale(); \
|
|
setlocale (LC_NUMERIC, "C"); \
|
|
INIT_I18N(); \
|
|
}G_STMT_END
|
|
|
|
#endif /* __STDPLUGINS_INTL_H__ */
|