i18n.h
00001 /* i18n.h 00002 * A module of J-Pilot http://jpilot.org 00003 * 00004 * Copyright (C) 1999-2001 by Judd Montgomery 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; version 2 of the License. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 #ifndef __I18N_H__ 00020 #define __I18N_H__ 00021 00022 #include "config.h" 00023 00024 #if defined(ENABLE_NLS) 00025 #if defined(HAVE_GETTEXT) 00026 #include <libintl.h> 00027 #else 00028 #include "intl/libintl.h" 00029 #endif 00030 #define _(str) gettext(str) 00031 #else 00032 #define _(str) str 00033 #endif 00034 00035 #ifndef gettext_noop 00036 #define gettext_noop(str) str 00037 #endif 00038 #ifndef N_ 00039 #define N_(str) str 00040 #endif 00041 00042 #endif