stdplugins-intl.h 1.62 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.
 */
21

Manish Singh's avatar
Manish Singh committed
22 23
#ifndef __STDPLUGINS_INTL_H__
#define __STDPLUGINS_INTL_H__
24

25
#include "gimpintl.h"
26

27

28 29 30 31 32 33 34
#define INIT_I18N()	G_STMT_START{                                \
  setlocale (LC_ALL, "");                                            \
  bindtextdomain (GETTEXT_PACKAGE"-libgimp",                         \
                  gimp_locale_directory ());                         \
  bind_textdomain_codeset (GETTEXT_PACKAGE"-libgimp", "UTF-8");      \
  bindtextdomain (GETTEXT_PACKAGE"-std-plug-ins",                    \
                  gimp_locale_directory ());                         \
35
  bind_textdomain_codeset (GETTEXT_PACKAGE"-std-plug-ins", "UTF-8"); \
36
  textdomain (GETTEXT_PACKAGE"-std-plug-ins");		             \
37
}G_STMT_END
38

39
#define INIT_I18N_UI()	INIT_I18N()
40

41

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