stdplugins-intl.h 1.47 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
#define INIT_I18N()	G_STMT_START{                               \
29
  setlocale (LC_ALL, "");                                           \
30 31 32 33 34
  bindtextdomain(GETTEXT_PACKAGE"-libgimp", LOCALEDIR);             \
  bind_textdomain_codeset (GETTEXT_PACKAGE"-libgimp", "UTF-8");     \
  bindtextdomain(GETTEXT_PACKAGE"-std-plugins", LOCALEDIR);         \
  bind_textdomain_codeset (GETTEXT_PACKAGE"-std-plugins", "UTF-8"); \
  textdomain(GETTEXT_PACKAGE"-std-plugins");		            \
35
}G_STMT_END
36

37
#define INIT_I18N_UI()	INIT_I18N()
38

39

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