summaryrefslogtreecommitdiff
path: root/gettext.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-15 23:39:29 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-15 23:39:29 +0200
commit51530925ec9efce86e105c0327cbe67a317aa950 (patch)
treee44e0c48fb47efbebacfcce353c0e1ba3b27ea6d /gettext.h
parent919e8f9e45c77217d1893281ca8606b21c1389f5 (diff)
added basic gettext support and russian translation
Diffstat (limited to 'gettext.h')
-rw-r--r--gettext.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gettext.h b/gettext.h
new file mode 100644
index 00000000..837a6e7e
--- /dev/null
+++ b/gettext.h
@@ -0,0 +1,15 @@
+#ifndef _GETTEXT_H
+#define _GETTEXT_H 1
+
+#if ENABLE_NLS
+
+# include <libintl.h>
+#define _(s) gettext(s)
+
+#else
+
+#define _(s) (s)
+
+#endif
+
+#endif