1 /* Hey EMACS -*- linux-c -*- */ 2 /* $Id$ */ 3 4 /* TiLP - Tilp Is a Linking Program 5 * Copyright (C) 1999-2006 Romain Lievin 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 */ 21 22 /* 23 Contains the right headers for the internationalization library 24 */ 25 26 #ifndef __TILP_INTL_H__ 27 #define __TILP_INTL_H__ 28 29 #ifdef HAVE_CONFIG_H 30 # include <config.h> 31 #endif 32 33 #include <locale.h> 34 35 /* 36 * Standard gettext macros. 37 */ 38 #ifdef ENABLE_NLS 39 # include <libintl.h> 40 # undef _ 41 # define _(String) dgettext (PACKAGE, String) 42 # ifdef gettext_noop 43 # define N_(String) gettext_noop (String) 44 # else 45 # define N_(String) (String) 46 # endif 47 #else 48 # define textdomain(String) (String) 49 # define gettext(String) (String) 50 # define dgettext(Domain,Message) (Message) 51 # define dcgettext(Domain,Message,Type) (Message) 52 # define bindtextdomain(Domain,Directory) (Domain) 53 # define _(String) (String) 54 # define N_(String) (String) 55 #endif 56 57 #if defined(__WIN32__) && !defined(__MINGW32__) 58 # undef PACKAGE 59 # define PACKAGE "tilp2" // name of package 60 # define LOCALEDIR "" // place of the translated file 61 #endif 62 63 #endif 64