stdplugins-intl.h 643 Bytes
Newer Older
Manish Singh's avatar
Manish Singh committed
1 2
#ifndef __STDPLUGINS_INTL_H__
#define __STDPLUGINS_INTL_H__
3

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

6 7
#include "libgimp/gimpintl.h"

8
#ifdef HAVE_LC_MESSAGES
9 10 11 12 13
#define INIT_I18N()	G_STMT_START{			\
  setlocale(LC_MESSAGES, ""); 				\
  bindtextdomain("gimp-std-plugins", LOCALEDIR);	\
  textdomain("gimp-std-plugins");			\
  			}G_STMT_END
14
#else
15 16 17 18
#define INIT_I18N()	G_STMT_START{			\
  bindtextdomain("gimp-std-plugins", LOCALEDIR);	\
  textdomain("gimp-std-plugins");			\
  			}G_STMT_END
Sven Neumann's avatar
Sven Neumann committed
19
#endif
20

21 22 23 24 25
#define INIT_I18N_UI()	G_STMT_START{	\
  gtk_set_locale();			\
  setlocale (LC_NUMERIC, "C");		\
  INIT_I18N();				\
			}G_STMT_END
26

Manish Singh's avatar
Manish Singh committed
27
#endif /* __STDPLUGINS_INTL_H__ */