00001 /* Convenience header for conditional use of GNU <libintl.h>. 00002 Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2, or (at your option) 00007 any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software Foundation, 00016 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 00017 00018 #ifndef _LIBGETTEXT_H 00019 #define _LIBGETTEXT_H 1 00020 00021 /* NLS can be disabled through the configure --disable-nls option. */ 00022 #if ENABLE_NLS 00023 00024 /* Get declarations of GNU message catalog functions. */ 00025 # include <libintl.h> 00026 00027 #else 00028 00029 # define gettext(Msgid) (Msgid) 00030 # define dgettext(Domainname, Msgid) (Msgid) 00031 # define dcgettext(Domainname, Msgid, Category) (Msgid) 00032 # define ngettext(Msgid1, Msgid2, N) \ 00033 ((N) == 1 ? (char *) (Msgid1) : (char *) (Msgid2)) 00034 # define dngettext(Domainname, Msgid1, Msgid2, N) \ 00035 ((N) == 1 ? (char *) (Msgid1) : (char *) (Msgid2)) 00036 # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ 00037 ((N) == 1 ? (char *) (Msgid1) : (char *) (Msgid2)) 00038 # define textdomain(Domainname) ((char *) (Domainname)) 00039 # define bindtextdomain(Domainname, Dirname) ((char *) (Dirname)) 00040 # define bind_textdomain_codeset(Domainname, Codeset) ((char *) (Codeset)) 00041 00042 #endif 00043 00044 /* For automatical extraction of messages sometimes no real 00045 translation is needed. Instead the string itself is the result. */ 00046 #define gettext_noop(Str) (Str) 00047 00048 #endif /* _LIBGETTEXT_H */