stdplugins-intl.h 427 Bytes
Newer Older
1
#include "libgimp/gimpintl.h"
Manish Singh's avatar
Manish Singh committed
2
#include <locale.h>
3 4 5 6 7 8 9 10 11 12

#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")
Sven Neumann's avatar
Sven Neumann committed
13
#endif
14 15
#define INIT_I18N_UI() \
  gtk_set_locale(); \
16
  setlocale (LC_NUMERIC, "C"); \
17
  INIT_I18N();