summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in20
-rw-r--r--source3/include/webintl.h52
2 files changed, 72 insertions, 0 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index 5cb0bb2ad8..53bd6794b3 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -232,6 +232,23 @@
#undef LINUX_QUOTAS_1
#undef LINUX_QUOTAS_2
+/* Define to the name of the distribution. */
+#undef PACKAGE
+/* Define to the version of the distribution. */
+#undef VERSION
+/* Define if your locale.h file contains LC_MESSAGES. */
+#undef HAVE_LC_MESSAGES
+/* Define to 1 if NLS is requested. */
+#undef ENABLE_NLS
+/* Define as 1 if you have gettext and don't want to use GNU gettext. */
+#undef HAVE_GETTEXT
+/* Define as 1 if you have the stpcpy function. */
+#undef HAVE_STPCPY
+/* ???? (rkawa) */
+#undef I18N_SWAT
+/* Define to the default SWAT language for old browsers. */
+#undef I18N_DEFAULT_PREF_LANG
+
/* The number of bytes in a int. */
#undef SIZEOF_INT
@@ -799,6 +816,9 @@
/* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
+/* Define if you have the <locale.h> header file. */
+#undef HAVE_LOCALE_H
+
/* Define if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
diff --git a/source3/include/webintl.h b/source3/include/webintl.h
new file mode 100644
index 0000000000..12626a5f19
--- /dev/null
+++ b/source3/include/webintl.h
@@ -0,0 +1,52 @@
+#ifndef I18N_H_INCLUDED
+#define I18N_H_INCLUDED 1
+
+/*
+ * I18N_ORIGINAL_LANG ...the language of the original document files (*.html).
+ */
+#define I18N_ORIGINAL_LANG "en"
+
+/* these constants are defined in Makefile.
+ *
+ * I18N_PACKAGE ...package name "i18n_swat" defined in configure.in.
+ * I18N_LOCALEDIR ...directory to put message catalogs.
+ * I18N_LOCALE_FILE ...filename of the language-locale map file.
+ */
+
+#ifdef ENABLE_NLS
+#define I18N_GETTEXT 1
+#endif /* ENABLE_NLS */
+
+/* if NLS is disabled (ENABLE_NLS == 0), configure script will
+ * automatically creates intl/libintl.h -> intl/libgettext.h (symlink)
+ * and gettext(str) is defined as (str) in that file.
+ */
+#include <libintl.h>
+#define _(String) gettext(String)
+#define N_(String) (String)
+
+#if I18N_SWAT
+#define LN_(fname) ln_get_pref_file_n_o(fname)
+#else
+#define LN_(fname) (fname)
+#endif /* I18N_SWAT */
+
+/* global function pointers defined in kanji.c. */
+extern char *(*dos_to_dos)(char *to, const char *from);
+
+/* ******************************************************************
+ * macros for debugging.
+ ***************************************************************** */
+#define LN_R_NODEBUG 1
+#ifdef LN_R_NODEBUG
+#define rassert(b) (void)0
+#define rstrace(s) (void)0
+
+#else
+void ln_debug_error(const char *info, int nLine);
+void rassert_help(BOOL b, int l);
+#define rassert(b) rassert_help((BOOL)(b), (__LINE__))
+#define rstrace(s) ln_debug_error((s), (__LINE__))
+#endif /* LN_R_NODEBUG */
+
+#endif /* I18N_H_INCLUDED */