1 // -*- mode: c++ -*- 2 // 3 // This file is part of libyacurs. 4 // Copyright (C) 2013 Rafael Ostertag 5 // 6 // This program is free software: you can redistribute it and/or 7 // modify it under the terms of the GNU General Public License as 8 // published by the Free Software Foundation, either version 3 of the 9 // License, or (at your option) any later version. 10 // 11 // This program is distributed in the hope that it will be useful, but 12 // WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 // General Public License for more details. 15 // 16 // You should have received a copy of the GNU General Public License 17 // along with this program. If not, see 18 // <http://www.gnu.org/licenses/>. 19 // 20 // 21 // $Id$ 22 23 // THIS FILE MUST NOT BE INSTALLED! 24 25 #ifndef GETTEXT_H 26 #define GETTEXT_H 1 27 28 #ifdef HAVE_CONFIG_H 29 #include "config.h" 30 #endif 31 32 /* NLS can be disabled through the configure --disable-nls option. */ 33 #if ENABLE_NLS 34 # include <libintl.h> 35 # define _(String) dgettext(PACKAGE, String) 36 #else 37 # define _(String) (String) 38 #endif 39 40 #endif // GETTEXT_H 41