libgphoto2 photo camera library (libgphoto2) API: libgphoto2/i18n.h Source File

libgphoto2 photo camera library (libgphoto2) API 2.5.31

i18n.h
Go to the documentation of this file.
1
7#ifndef LIBGPHOTO2_I18N_H
8#define LIBGPHOTO2_I18N_H
9
10#include "config.h"
11
12#ifdef ENABLE_NLS
13# include <libintl.h>
14# undef _
15# define _(String) dgettext (GETTEXT_PACKAGE_LIBGPHOTO2, String)
16# ifdef gettext_noop
17# define N_(String) gettext_noop (String)
18# else
19# define N_(String) (String)
20# endif
21#else
22# define N_(String) (String)
23# define _(String) (String)
24# define bind_textdomain_codeset(Domain, codeset) (codeset)
25# define bindtextdomain(Domain, Directory) (Domain)
26# define dcgettext(Domain, Message, Type) (Message)
27# define dgettext(Domain, Message) (Message)
28# define gettext(String) (String)
29# define ngettext(String1, String2, Count) ((Count==1)?String1:String2)
30# define textdomain(String) (String)
31#endif
32
33#endif /* !defined(LIBGPHOTO2_I18N_H) */