home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / id-utils-3.2-src.tgz / tar.out / fsf / id-utils / libidu / xnls.h < prev   
C/C++ Source or Header  |  1996-09-28  |  1KB  |  42 lines

  1. /* xnls.h -- NLS declarations
  2.    Copyright (C) 1996 Free Software Foundation, Inc.
  3.    Written by Greg McGary <gkm@gnu.ai.mit.edu>
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19.  
  20. #ifndef _i18n_h_
  21. #define _i18n_h_
  22.  
  23. /* Take care of NLS matters.  */
  24.  
  25. #if HAVE_LOCALE_H
  26. # include <locale.h>
  27. #endif
  28. #if !HAVE_SETLOCALE
  29. # define setlocale(Category, Locale) /* empty */
  30. #endif
  31.  
  32. #if ENABLE_NLS
  33. # include <libintl.h>
  34. # define _(Text) gettext (Text)
  35. #else
  36. # define bindtextdomain(Domain, Directory) /* empty */
  37. # define textdomain(Domain) /* empty */
  38. # define _(Text) Text
  39. #endif
  40.  
  41. #endif /* not _i18n_h_ */
  42.