EXIF library (libexif) API  0.6.25
i18n.h
1 /* i18n.h
2  *
3  * Copyright (c) 2001 Lutz Mueller <lutz@users.sourceforge.net>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301 USA.
19  *
20  * SPDX-License-Identifier: LGPL-2.0-or-later
21  */
22 
23 #ifndef LIBEXIF_I18N_H
24 #define LIBEXIF_I18N_H
25 
26 #include "config.h"
27 
28 #ifdef ENABLE_NLS
29 # include <libintl.h>
30 # undef _
31 # define _(String) dgettext (GETTEXT_PACKAGE, String)
32 # ifdef gettext_noop
33 # define N_(String) gettext_noop (String)
34 # else
35 # define N_(String) (String)
36 # endif
37 #else
38 # define textdomain(String) (String)
39 # define gettext(String) (String)
40 # define ngettext(String1,String2,Count) (Count==1?String1:String2)
41 # define dgettext(Domain,Message) (Message)
42 # define dcgettext(Domain,Message,Type) (Message)
43 #ifdef __WATCOMC__
44 # define bind_textdomain_codeset(Domain,Codeset)
45 # define bindtextdomain(Domain,Directory)
46 #else
47 # define bind_textdomain_codeset(Domain,Codeset) (Codeset)
48 # define bindtextdomain(Domain,Directory) (Domain)
49 #endif
50 # define _(String) (String)
51 # define N_(String) (String)
52 #endif
53 
54 #endif /* !defined(LIBEXIF_I18N_H) */