stdplugins-intl.h 526 Bytes
Newer Older
1 2 3
#ifndef __STDPLUGINS-INTL_H__
#define __STDPLUGINS-INTL_H__

Manish Singh's avatar
Manish Singh committed
4
#include <locale.h>
5

6 7
#include "libgimp/gimpintl.h"

8 9 10 11 12 13 14 15 16
#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
17
#endif
18

19 20
#define INIT_I18N_UI() \
  gtk_set_locale(); \
21
  setlocale (LC_NUMERIC, "C"); \
22
  INIT_I18N();
23 24

#endif /* __STDPLUGINS-INTL_H__ */