blob: 2c889eb457c5767cca349aec65d8c2afbab2da18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/** \file libgphoto2/i18n.h
* \brief Common include header for all C sources containing translated strings
*
* \todo Replace this file by the gettext.h file from gettext?
*/
#ifndef LIBGPHOTO2_I18N_H
#define LIBGPHOTO2_I18N_H
#include "config.h"
#ifdef ENABLE_NLS
# include <libintl.h>
# undef _
# define _(String) dgettext (GETTEXT_PACKAGE_LIBGPHOTO2, String)
# ifdef gettext_noop
# define N_(String) gettext_noop (String)
# else
# define N_(String) (String)
# endif
#else
# define N_(String) (String)
# define _(String) (String)
# define bind_textdomain_codeset(Domain, codeset) (codeset)
# define bindtextdomain(Domain, Directory) (Domain)
# define dcgettext(Domain, Message, Type) (Message)
# define dgettext(Domain, Message) (Message)
# define gettext(String) (String)
# define ngettext(String1, String2, Count) ((Count==1)?String1:String2)
# define textdomain(String) (String)
#endif
#endif /* !defined(LIBGPHOTO2_I18N_H) */
|