00001 /* GLIB - Library of useful routines for C programming 00002 * Copyright (C) 1995-1997, 2002 Peter Mattis, Red Hat, Inc. 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2 of the License, or (at your option) any later version. 00008 * 00009 * This library 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 GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the 00016 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 * Boston, MA 02111-1307, USA. 00018 */ 00019 #ifndef __G_I18N_LIB_H__ 00020 #define __G_I18N_LIB_H__ 00021 00022 #include <glib/gstrfuncs.h> 00023 00024 #include <libintl.h> 00025 00026 #ifndef GETTEXT_PACKAGE 00027 #error You must define GETTEXT_PACKAGE before including gi18n-lib.h. 00028 #endif 00029 00030 #define _(String) dgettext (GETTEXT_PACKAGE, String) 00031 #define Q_(String) g_strip_context ((String), dgettext (GETTEXT_PACKAGE, String)) 00032 #ifdef gettext_noop 00033 #define N_(String) gettext_noop (String) 00034 #else 00035 #define N_(String) (String) 00036 #endif 00037 00038 #endif /* __G_I18N_LIB_H__ */ 00039 00040