home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / libgimp / stdplugins-intl.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-06  |  1.6 KB  |  51 lines

  1. /* LIBGIMP - The GIMP Library 
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball 
  3.  *
  4.  * stdplugins-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.  
  22. #ifndef __STDPLUGINS_INTL_H__
  23. #define __STDPLUGINS_INTL_H__
  24.  
  25. #include "gimpintl.h"
  26.  
  27.  
  28. #ifdef HAVE_LC_MESSAGES
  29. #define INIT_I18N()    G_STMT_START{            \
  30.   setlocale(LC_MESSAGES, "");                 \
  31.   bindtextdomain("gimp-libgimp", LOCALEDIR);            \
  32.   bindtextdomain("gimp-std-plugins", LOCALEDIR);    \
  33.   textdomain("gimp-std-plugins");            \
  34.               }G_STMT_END
  35. #else
  36. #define INIT_I18N()    G_STMT_START{            \
  37.   bindtextdomain("gimp-libgimp", LOCALEDIR);            \
  38.   bindtextdomain("gimp-std-plugins", LOCALEDIR);    \
  39.   textdomain("gimp-std-plugins");            \
  40.               }G_STMT_END
  41. #endif
  42.  
  43. #define INIT_I18N_UI()    G_STMT_START{    \
  44.   gtk_set_locale();            \
  45.   setlocale (LC_NUMERIC, "C");        \
  46.   INIT_I18N();                \
  47.             }G_STMT_END
  48.  
  49.  
  50. #endif /* __STDPLUGINS_INTL_H__ */
  51.