Code

added missing bits from internationalization
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 21 Feb 2008 06:59:19 +0000 (06:59 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 21 Feb 2008 06:59:19 +0000 (06:59 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1291 a5681a0c-68f1-0310-ab6d-d61299d08faa

po/LINGUAS [new file with mode: 0644]
po/POTFILES.in [new file with mode: 0644]
src/rrd_i18n.h [new file with mode: 0644]

diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644 (file)
index 0000000..792d600
--- /dev/null
@@ -0,0 +1 @@
+#
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644 (file)
index 0000000..eeacfcb
--- /dev/null
@@ -0,0 +1,2 @@
+src/rrd_getopt.c
+src/rrd_tool.c
diff --git a/src/rrd_i18n.h b/src/rrd_i18n.h
new file mode 100644 (file)
index 0000000..8e6fcea
--- /dev/null
@@ -0,0 +1,31 @@
+/*****************************************************************************
+ * RRDtool 1.2.19  Copyright by Takao Fujiwara, 2008
+ *****************************************************************************
+ * rrd_i18n.h   Common Header File
+ *****************************************************************************/
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
+
+#ifndef _RRD_I18N_H
+#define _RRD_I18N_H
+
+#ifndef _
+/* This is for other GNU distributions with internationalized messages.
+   When compiling libc, the _ macro is predefined.  */
+#ifdef HAVE_LIBINTL_H
+#  include <libintl.h>
+#define _(String) gettext (String)
+#else
+#define _(String) (String)
+#endif
+#define N_(String) (String)
+#endif
+
+
+#endif
+
+#ifdef  __cplusplus
+}
+#endif