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

  1. /* LIBGIMP - The GIMP Library                                                   
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball                
  3.  *
  4.  * libgimp-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 __LIBGIMP_INTL_H__
  23. #define __LIBGIMP_INTL_H__
  24.  
  25.  
  26. #ifdef ENABLE_NLS
  27. #    include <libintl.h>
  28. #    define _(String) dgettext ("gimp-libgimp", String)
  29. #    undef gettext
  30. #    define gettext(String) dgettext ("gimp-libgimp", String)
  31. #    ifdef gettext_noop
  32. #        define N_(String) gettext_noop (String)
  33. #    else
  34. #        define N_(String) (String)
  35. #    endif
  36. #else
  37. /* Stubs that do something close enough.  */
  38. #    define gettext(String) (String)
  39. #    define _(String) (String)
  40. #    define N_(String) (String)
  41. #endif
  42.  
  43.  
  44. #endif /* __LIBGIMP_INTL_H__ */
  45.