libgimp-intl.h 1.48 KB
Newer Older
1
/* LIBGIMP - The GIMP Library
2
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
3 4 5
 *
 * libgimp-intl.h
 *
6
 * This library is free software: you can redistribute it and/or
7 8
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
9
 * version 3 of the License, or (at your option) any later version.
10 11 12 13
 *
 * 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
14 15 16
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
17 18
 * License along with this library.  If not, see
 * <http://www.gnu.org/licenses/>.
19
 */
20

21 22 23
#ifndef __LIBGIMP_INTL_H__
#define __LIBGIMP_INTL_H__

24 25 26
#ifndef GETTEXT_PACKAGE
#error "config.h must be included prior to libgimp-intl.h"
#endif
27

28 29 30
#include <libintl.h>


31 32 33
#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)
34 35

#undef gettext
36
#define gettext(String) dgettext (GETTEXT_PACKAGE "-libgimp", String)
37

38 39 40
#undef ngettext
#define ngettext(String1, String2, number) dngettext (GETTEXT_PACKAGE "-libgimp", String1, String2, number)

41 42
#define N_(String) (String)
#define NC_(Context,String) (String)
43

Sven Neumann's avatar
Sven Neumann committed
44

45
#endif /* __LIBGIMP_INTL_H__ */