home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / script-fu / script-fu-intl.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-02-27  |  1.6 KB  |  48 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * script-fu-intl.h
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Lesser General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  * 
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Lesser General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Lesser General Public
  17.  * License along with this library; if not, write to the
  18.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */
  21. #ifndef __SCRIPT_FU_INTL_H__
  22. #define __SCRIPT_FU_INTL_H__
  23.  
  24. #include "libgimp/gimpintl.h"
  25.  
  26. #ifdef HAVE_LC_MESSAGES
  27. #define INIT_I18N()    G_STMT_START{            \
  28.   setlocale(LC_MESSAGES, "");                 \
  29.   bindtextdomain("gimp-libgimp", LOCALEDIR);            \
  30.   bindtextdomain("gimp-script-fu", LOCALEDIR);            \
  31.   textdomain("gimp-script-fu");                    \
  32.               }G_STMT_END
  33. #else
  34. #define INIT_I18N()    G_STMT_START{            \
  35.   bindtextdomain("gimp-libgimp", LOCALEDIR);            \
  36.   bindtextdomain("gimp-script-fu", LOCALEDIR);            \
  37.   textdomain("gimp-script-fu");                         \
  38.               }G_STMT_END
  39. #endif
  40.  
  41. #define INIT_I18N_UI()    G_STMT_START{    \
  42.   gtk_set_locale();            \
  43.   setlocale (LC_NUMERIC, "C");        \
  44.   INIT_I18N();                \
  45.             }G_STMT_END
  46.  
  47. #endif /* __SCRIPT_FU_INTL_H__ */
  48.