1 /* LIBGIMP - The GIMP Library 2 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball 3 * 4 * libgimp-intl.h 5 * 6 * This library is free software: you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 3 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library. If not, see 18 * <https://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef __LIBGIMP_INTL_H__ 22 #define __LIBGIMP_INTL_H__ 23 24 #ifndef GETTEXT_PACKAGE 25 #error "config.h must be included prior to libgimp-intl.h" 26 #endif 27 28 #include <libintl.h> 29 30 31 #define _(String) dgettext (GETTEXT_PACKAGE "-libgimp", String) 32 #define Q_(String) g_dpgettext (GETTEXT_PACKAGE "-libgimp", String, 0) 33 #define C_(Context,String) g_dpgettext (GETTEXT_PACKAGE "-libgimp", Context "\004" String, strlen (Context) + 1) 34 35 #undef gettext 36 #define gettext(String) dgettext (GETTEXT_PACKAGE "-libgimp", String) 37 38 #undef ngettext 39 #define ngettext(String1, String2, number) dngettext (GETTEXT_PACKAGE "-libgimp", String1, String2, number) 40 41 #define N_(String) (String) 42 #define NC_(Context,String) (String) 43 44 45 #endif /* __LIBGIMP_INTL_H__ */ 46