summaryrefslogtreecommitdiff
path: root/libgphoto2_port/libgphoto2_port/i18n.h
diff options
context:
space:
mode:
Diffstat (limited to 'libgphoto2_port/libgphoto2_port/i18n.h')
-rw-r--r--libgphoto2_port/libgphoto2_port/i18n.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/libgphoto2_port/libgphoto2_port/i18n.h b/libgphoto2_port/libgphoto2_port/i18n.h
new file mode 100644
index 000000000..3d8c7cf17
--- /dev/null
+++ b/libgphoto2_port/libgphoto2_port/i18n.h
@@ -0,0 +1,27 @@
+#ifndef LIBGPHOTO2_PORT_I18N_H
+#define LIBGPHOTO2_PORT_I18N_H
+
+#include "config.h"
+
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# undef _
+# define _(String) dgettext (GETTEXT_PACKAGE_LIBGPHOTO2_PORT, 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_PORT_I18N_H) */