2001-08-30 08:21:38 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
2003-12-05 23:55:15 +08:00
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2000-01-27 09:54:52 +08:00
|
|
|
*
|
|
|
|
* libgimp-intl.h
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2000-01-27 09:54:52 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2001-08-30 08:21:38 +08:00
|
|
|
*
|
|
|
|
* 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
|
2000-01-27 09:54:52 +08:00
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2000-01-27 09:54:52 +08:00
|
|
|
*/
|
2000-05-31 07:38:46 +08:00
|
|
|
|
2000-01-27 09:54:52 +08:00
|
|
|
#ifndef __LIBGIMP_INTL_H__
|
|
|
|
#define __LIBGIMP_INTL_H__
|
|
|
|
|
2002-02-19 01:42:17 +08:00
|
|
|
#ifndef GETTEXT_PACKAGE
|
|
|
|
#error "config.h must be included prior to libgimp-intl.h"
|
|
|
|
#endif
|
2000-05-31 07:38:46 +08:00
|
|
|
|
2002-12-13 21:23:47 +08:00
|
|
|
#include <libintl.h>
|
|
|
|
|
|
|
|
|
2008-05-23 21:36:31 +08:00
|
|
|
#define _(String) dgettext (GETTEXT_PACKAGE "-libgimp", String)
|
|
|
|
#define Q_(String) g_dpgettext (GETTEXT_PACKAGE "-libgimp", String, 0)
|
|
|
|
#define C_(Context,String) g_dpgettext (GETTEXT_PACKAGE "-libgimp", Context "\004" String, strlen (Context) + 1)
|
2002-12-13 21:23:47 +08:00
|
|
|
|
|
|
|
#undef gettext
|
2003-01-26 20:24:05 +08:00
|
|
|
#define gettext(String) dgettext (GETTEXT_PACKAGE "-libgimp", String)
|
2002-12-13 21:23:47 +08:00
|
|
|
|
2006-06-27 15:55:41 +08:00
|
|
|
#undef ngettext
|
|
|
|
#define ngettext(String1, String2, number) dngettext (GETTEXT_PACKAGE "-libgimp", String1, String2, number)
|
|
|
|
|
2008-11-06 16:28:28 +08:00
|
|
|
#define N_(String) (String)
|
|
|
|
#define NC_(Context,String) (String)
|
2000-01-27 09:54:52 +08:00
|
|
|
|
2000-01-27 19:55:22 +08:00
|
|
|
|
2000-05-31 07:38:46 +08:00
|
|
|
#endif /* __LIBGIMP_INTL_H__ */
|