2003-11-05 22:07:47 +01:00
|
|
|
/* GLIB - Library of useful routines for C programming
|
|
|
|
* Copyright (C) 1995-1997, 2002 Peter Mattis, Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2014-01-23 12:58:29 +01:00
|
|
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
2003-11-05 22:07:47 +01:00
|
|
|
*/
|
2008-03-14 20:30:38 +01:00
|
|
|
|
2003-11-05 22:07:47 +01:00
|
|
|
#ifndef __G_I18N_LIB_H__
|
|
|
|
#define __G_I18N_LIB_H__
|
|
|
|
|
2008-03-14 20:30:38 +01:00
|
|
|
#include <glib.h>
|
2008-05-20 15:03:15 +02:00
|
|
|
|
|
|
|
#include <libintl.h>
|
2008-09-11 18:48:44 +02:00
|
|
|
#include <string.h>
|
2003-11-05 22:07:47 +01:00
|
|
|
|
|
|
|
#ifndef GETTEXT_PACKAGE
|
2008-08-12 21:01:46 +02:00
|
|
|
#error You must define GETTEXT_PACKAGE before including gi18n-lib.h. Did you forget to include config.h?
|
2003-11-05 22:07:47 +01:00
|
|
|
#endif
|
|
|
|
|
2008-06-12 01:37:49 +02:00
|
|
|
#define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
|
2007-12-10 06:24:36 +01:00
|
|
|
#define Q_(String) g_dpgettext (GETTEXT_PACKAGE, String, 0)
|
2003-11-05 22:07:47 +01:00
|
|
|
#define N_(String) (String)
|
2007-12-10 06:24:36 +01:00
|
|
|
#define C_(Context,String) g_dpgettext (GETTEXT_PACKAGE, Context "\004" String, strlen (Context) + 1)
|
2008-07-18 20:14:04 +02:00
|
|
|
#define NC_(Context, String) (String)
|
2003-11-05 22:07:47 +01:00
|
|
|
|
2007-11-23 08:50:54 +01:00
|
|
|
#endif /* __G_I18N_LIB_H__ */
|