1 /* i18n.h 2 * 3 * Copyright � 2001 David Moore <dcm@acm.org> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library 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 GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 * Boston, MA 02111-1307, USA. 19 */ 20 21 #ifndef __I18N_H__ 22 #define __I18N_H__ 23 24 #ifdef ENABLE_NLS 25 # include <libintl.h> 26 # undef _ 27 # define _(String) gettext (String) 28 # ifdef gettext_noop 29 # define N_(String) gettext_noop (String) 30 # else 31 # define N_(String) (String) 32 # endif 33 #else 34 # define textdomain(String) (String) 35 # define gettext(String) (String) 36 # define dgettext(Domain,Message) (Message) 37 # define dcgettext(Domain,Message,Type) (Message) 38 #if defined(__WATCOMC__) || defined(WIN32) 39 # define bind_textdomain_codeset(Domain,Codeset) 40 # define bindtextdomain(Domain,Directory) 41 #else 42 # define bind_textdomain_codeset(Domain,Codeset) (Codeset) 43 # define bindtextdomain(Domain,Directory) (Domain) 44 #endif 45 # define _(String) (String) 46 # define N_(String) (String) 47 #endif 48 49 #endif /* __I18N_H__ */ 50