]> granicus.if.org Git - psmisc/commitdiff
added common i18n file
authorCraig Small <csmall@users.sourceforge.net>
Tue, 9 Nov 2004 11:25:15 +0000 (11:25 +0000)
committerCraig Small <csmall@users.sourceforge.net>
Tue, 9 Nov 2004 11:25:15 +0000 (11:25 +0000)
src/i18n.h [new file with mode: 0644]

diff --git a/src/i18n.h b/src/i18n.h
new file mode 100644 (file)
index 0000000..736a487
--- /dev/null
@@ -0,0 +1,19 @@
+/* i18n.h - common i18n declarations for psmisc programs.  */
+
+#ifndef I18N_H
+#define I18N_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef ENABLE_NLS
+#include <locale.h>
+#include <libintl.h>
+#define _(String) gettext (String)
+#else
+#define _(String) (String)
+#endif
+
+#endif
+