stdplugins-intl.h 1.55 KB
Newer Older
1 2
/* LIBGIMP - The GIMP Library 
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball 
3
 *
4
 * stdplugins-intl.h
5 6 7 8
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
9 10 11 12 13
 * version 2 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 15 16 17 18 19 20
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */
Manish Singh's avatar
Manish Singh committed
21 22
#ifndef __STDPLUGINS_INTL_H__
#define __STDPLUGINS_INTL_H__
23

24
#include "gimpintl.h"
25

26
#ifdef HAVE_LC_MESSAGES
27 28
#define INIT_I18N()	G_STMT_START{			\
  setlocale(LC_MESSAGES, ""); 				\
29
  bindtextdomain("gimp-libgimp", LOCALEDIR);            \
30 31 32
  bindtextdomain("gimp-std-plugins", LOCALEDIR);	\
  textdomain("gimp-std-plugins");			\
  			}G_STMT_END
33
#else
34
#define INIT_I18N()	G_STMT_START{			\
35
  bindtextdomain("gimp-libgimp", LOCALEDIR);            \
36 37 38
  bindtextdomain("gimp-std-plugins", LOCALEDIR);	\
  textdomain("gimp-std-plugins");			\
  			}G_STMT_END
Sven Neumann's avatar
Sven Neumann committed
39
#endif
40

41 42 43 44 45
#define INIT_I18N_UI()	G_STMT_START{	\
  gtk_set_locale();			\
  setlocale (LC_NUMERIC, "C");		\
  INIT_I18N();				\
			}G_STMT_END
46

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