EXIF library (libexif) API 0.6.22

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
21 #ifndef __I18N_H__
22 #define __I18N_H__
23
24 #include "config.h"
25
26 #ifdef ENABLE_NLS
27 # include <libintl.h>
28 # undef _
29 # define _(String) dgettext (GETTEXT_PACKAGE, String)
30 # ifdef gettext_noop
31 # define N_(String) gettext_noop (String)
32 # else
33 # define N_(String) (String)
34 # endif
35 #else
36 # define textdomain(String) (String)
37 # define gettext(String) (String)
38 # define ngettext(String1,String2,Count) (Count==1?String1:String2)
39 # define dgettext(Domain,Message) (Message)
40 # define dcgettext(Domain,Message,Type) (Message)
41 #ifdef __WATCOMC__
42 # define bind_textdomain_codeset(Domain,Codeset)
43 # define bindtextdomain(Domain,Directory)
44 #else
45 # define bind_textdomain_codeset(Domain,Codeset) (Codeset)
46 # define bindtextdomain(Domain,Directory) (Domain)
47 #endif
48 # define _(String) (String)
49 # define N_(String) (String)
50 #endif
51
52 #endif /* __I18N_H__ */