]> Pileus Git - ~andy/fetchmail/commitdiff
Update for gettext 0.17.
authorMatthias Andree <matthias.andree@gmx.de>
Thu, 1 Apr 2010 02:55:24 +0000 (04:55 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Sun, 12 Dec 2010 00:36:17 +0000 (01:36 +0100)
31 files changed:
Makefile.am
cram.c
driver.c
env.c
etrn.c
fetchmail.c
fm_getaddrinfo.c
getpass.c
gettext.h [new file with mode: 0644]
gssapi.c
i18n.h [deleted file]
imap.c
interface.c
lock.c
netrc.c
odmr.c
opie.c
options.c
pop3.c
rcfile_y.y
report.c
rfc822.c
rpa.c
servport.c
sink.c
smtp.c
socket.c
transact.c
uid.c
unmime.c
xmalloc.c

index 796ad00b58410abef48b5c6c612fc6918e33ec75..c9ddb9964b96085607ead4476e96fe2601604811 100644 (file)
@@ -54,7 +54,7 @@ TESTS=                        t.smoke t.validate-xhtml t.x509_name_match
 TESTS_ENVIRONMENT=     srcdir="$(srcdir)" LC_ALL=C TZ=UTC SHELL="$(SHELL)" $(SHELL)
 
 fetchmail_SOURCES=     fetchmail.h getopt.h \
-               i18n.h kerberos.h fm_md5.h netrc.h smtp.h \
+               gettext.h kerberos.h fm_md5.h netrc.h smtp.h \
                socket.h tunable.h \
                socket.c getpass.c \
                fetchmail.c env.c idle.c options.c daemon.c \
diff --git a/cram.c b/cram.c
index 3c5630df6f1fe2ee0bc4c89cba9b3b36c21978a7..f7559e6d9668792ef42c30ebd6dc1327c1e5a5cb 100644 (file)
--- a/cram.c
+++ b/cram.c
@@ -12,7 +12,7 @@
 #include  "fetchmail.h"
 #include  "socket.h"
 
-#include  "i18n.h"
+#include  "gettext.h"
 #include "fm_md5.h"
 
 void hmac_md5 (const unsigned char *password,  size_t pass_len,
index e4c2638a9b2cd4e275a5f81991e3c1f2edd6fb8a..c54bc5c802920a812bb4dec6aa1696071abf0df5 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -33,7 +33,7 @@ extern "C" {
 
 #include "kerberos.h"
 
-#include "i18n.h"
+#include "gettext.h"
 #include "socket.h"
 
 #include "fetchmail.h"
diff --git a/env.c b/env.c
index cc8c9cd911cfed3893f3d975f0e0e59676024d79..48007f2a6bce34f50c612a67888b7dfda4b2fc88 100644 (file)
--- a/env.c
+++ b/env.c
@@ -18,7 +18,7 @@
 #include "fetchmail.h"
 #include "getaddrinfo.h"
 
-#include "i18n.h"
+#include "gettext.h"
 #if defined(HAVE_SETLOCALE) && defined(ENABLE_NLS)
 #include <locale.h>
 #endif
diff --git a/etrn.c b/etrn.c
index 2ca3dbac2468c195a413b076652af51bfbef0310..24c532d306607967af0c7dd47ea1128ac1b09988 100644 (file)
--- a/etrn.c
+++ b/etrn.c
@@ -12,7 +12,7 @@
 #include  <netdb.h>
 #include  <errno.h>
 #include  <unistd.h>
-#include  "i18n.h"
+#include  "gettext.h"
 #include  "fetchmail.h"
 #include  "smtp.h"
 #include  "socket.h"
index 8a0b64a4acafd09f862679c7d8cebb44e9c553c9..30ff4f9861a181cf68bc3a795b5b9c08f6dc3874 100644 (file)
@@ -32,7 +32,7 @@
 #include "tunable.h"
 #include "smtp.h"
 #include "netrc.h"
-#include "i18n.h"
+#include "gettext.h"
 #include "lock.h"
 
 /* need these (and sys/types.h) for res_init() */
index 97cec65c9862b3136f2e81645494e26675080c47..63f000fe8e3cc8946df5b8fef349fd633d6963e7 100644 (file)
@@ -1,6 +1,6 @@
 #include "config.h"
 #include "fetchmail.h"
-#include "i18n.h"
+#include "gettext.h"
 
 #include <signal.h>
 #include <errno.h>
index 9e2a3e540136a3be54cfd7d56460842f8214805f..c1624299eb43d75a494420ce7694c83aa0f93903 100644 (file)
--- a/getpass.c
+++ b/getpass.c
@@ -20,7 +20,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include "fetchmail.h"
-#include "i18n.h"
+#include "gettext.h"
 
 #define INPUT_BUF_SIZE PASSWORDLEN
 
diff --git a/gettext.h b/gettext.h
new file mode 100644 (file)
index 0000000..e27bb7e
--- /dev/null
+++ b/gettext.h
@@ -0,0 +1,274 @@
+/* Convenience header for conditional use of GNU <libintl.h>.
+   Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify it
+   under the terms of the GNU General Public License as published
+   by the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU General Public
+   License along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+   USA.  */
+
+#ifndef _LIBGETTEXT_H
+#define _LIBGETTEXT_H 1
+
+/* NLS can be disabled through the configure --disable-nls option.  */
+#if ENABLE_NLS
+
+/* Get declarations of GNU message catalog functions.  */
+# include <libintl.h>
+
+/* You can set the DEFAULT_TEXT_DOMAIN macro to specify the domain used by
+   the gettext() and ngettext() macros.  This is an alternative to calling
+   textdomain(), and is useful for libraries.  */
+# ifdef DEFAULT_TEXT_DOMAIN
+#  undef gettext
+#  define gettext(Msgid) \
+     dgettext (DEFAULT_TEXT_DOMAIN, Msgid)
+#  undef ngettext
+#  define ngettext(Msgid1, Msgid2, N) \
+     dngettext (DEFAULT_TEXT_DOMAIN, Msgid1, Msgid2, N)
+# endif
+
+#else
+
+/* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
+   chokes if dcgettext is defined as a macro.  So include it now, to make
+   later inclusions of <locale.h> a NOP.  We don't include <libintl.h>
+   as well because people using "gettext.h" will not include <libintl.h>,
+   and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
+   is OK.  */
+#if defined(__sun)
+# include <locale.h>
+#endif
+
+/* Many header files from the libstdc++ coming with g++ 3.3 or newer include
+   <libintl.h>, which chokes if dcgettext is defined as a macro.  So include
+   it now, to make later inclusions of <libintl.h> a NOP.  */
+#if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3)
+# include <cstdlib>
+# if (__GLIBC__ >= 2) || _GLIBCXX_HAVE_LIBINTL_H
+#  include <libintl.h>
+# endif
+#endif
+
+/* Disabled NLS.
+   The casts to 'const char *' serve the purpose of producing warnings
+   for invalid uses of the value returned from these functions.
+   On pre-ANSI systems without 'const', the config.h file is supposed to
+   contain "#define const".  */
+# define gettext(Msgid) ((const char *) (Msgid))
+# define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid))
+# define dcgettext(Domainname, Msgid, Category) \
+    ((void) (Category), dgettext (Domainname, Msgid))
+# define ngettext(Msgid1, Msgid2, N) \
+    ((N) == 1 \
+     ? ((void) (Msgid2), (const char *) (Msgid1)) \
+     : ((void) (Msgid1), (const char *) (Msgid2)))
+# define dngettext(Domainname, Msgid1, Msgid2, N) \
+    ((void) (Domainname), ngettext (Msgid1, Msgid2, N))
+# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
+    ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N))
+# define textdomain(Domainname) ((const char *) (Domainname))
+# define bindtextdomain(Domainname, Dirname) \
+    ((void) (Domainname), (const char *) (Dirname))
+# define bind_textdomain_codeset(Domainname, Codeset) \
+    ((void) (Domainname), (const char *) (Codeset))
+
+#endif
+
+/* A pseudo function call that serves as a marker for the automated
+   extraction of messages, but does not call gettext().  The run-time
+   translation is done at a different place in the code.
+   The argument, String, should be a literal string.  Concatenated strings
+   and other string expressions won't work.
+   The macro's expansion is not parenthesized, so that it is suitable as
+   initializer for static 'char[]' or 'const char[]' variables.  */
+#define gettext_noop(String) String
+
+/* The separator between msgctxt and msgid in a .mo file.  */
+#define GETTEXT_CONTEXT_GLUE "\004"
+
+/* Pseudo function calls, taking a MSGCTXT and a MSGID instead of just a
+   MSGID.  MSGCTXT and MSGID must be string literals.  MSGCTXT should be
+   short and rarely need to change.
+   The letter 'p' stands for 'particular' or 'special'.  */
+#ifdef DEFAULT_TEXT_DOMAIN
+# define pgettext(Msgctxt, Msgid) \
+   pgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
+#else
+# define pgettext(Msgctxt, Msgid) \
+   pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
+#endif
+#define dpgettext(Domainname, Msgctxt, Msgid) \
+  pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
+#define dcpgettext(Domainname, Msgctxt, Msgid, Category) \
+  pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
+#ifdef DEFAULT_TEXT_DOMAIN
+# define npgettext(Msgctxt, Msgid, MsgidPlural, N) \
+   npgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
+#else
+# define npgettext(Msgctxt, Msgid, MsgidPlural, N) \
+   npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
+#endif
+#define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N) \
+  npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
+#define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \
+  npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
+
+#ifdef __GNUC__
+__inline
+#else
+#ifdef __cplusplus
+inline
+#endif
+#endif
+static const char *
+pgettext_aux (const char *domain,
+             const char *msg_ctxt_id, const char *msgid,
+             int category)
+{
+  const char *translation = dcgettext (domain, msg_ctxt_id, category);
+  if (translation == msg_ctxt_id)
+    return msgid;
+  else
+    return translation;
+}
+
+#ifdef __GNUC__
+__inline
+#else
+#ifdef __cplusplus
+inline
+#endif
+#endif
+static const char *
+npgettext_aux (const char *domain,
+              const char *msg_ctxt_id, const char *msgid,
+              const char *msgid_plural, unsigned long int n,
+              int category)
+{
+  const char *translation =
+    dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);
+  if (translation == msg_ctxt_id || translation == msgid_plural)
+    return (n == 1 ? msgid : msgid_plural);
+  else
+    return translation;
+}
+
+/* The same thing extended for non-constant arguments.  Here MSGCTXT and MSGID
+   can be arbitrary expressions.  But for string literals these macros are
+   less efficient than those above.  */
+
+#include <string.h>
+
+#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \
+  (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \
+   /* || __STDC_VERSION__ >= 199901L */ )
+
+#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
+#include <stdlib.h>
+#endif
+
+#define pgettext_expr(Msgctxt, Msgid) \
+  dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
+#define dpgettext_expr(Domainname, Msgctxt, Msgid) \
+  dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
+
+#ifdef __GNUC__
+__inline
+#else
+#ifdef __cplusplus
+inline
+#endif
+#endif
+static const char *
+dcpgettext_expr (const char *domain,
+                const char *msgctxt, const char *msgid,
+                int category)
+{
+  size_t msgctxt_len = strlen (msgctxt) + 1;
+  size_t msgid_len = strlen (msgid) + 1;
+  const char *translation;
+#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
+  char msg_ctxt_id[msgctxt_len + msgid_len];
+#else
+  char buf[1024];
+  char *msg_ctxt_id =
+    (msgctxt_len + msgid_len <= sizeof (buf)
+     ? buf
+     : (char *) malloc (msgctxt_len + msgid_len));
+  if (msg_ctxt_id != NULL)
+#endif
+    {
+      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
+      msg_ctxt_id[msgctxt_len - 1] = '\004';
+      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
+      translation = dcgettext (domain, msg_ctxt_id, category);
+#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
+      if (msg_ctxt_id != buf)
+       free (msg_ctxt_id);
+#endif
+      if (translation != msg_ctxt_id)
+       return translation;
+    }
+  return msgid;
+}
+
+#define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N) \
+  dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
+#define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \
+  dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
+
+#ifdef __GNUC__
+__inline
+#else
+#ifdef __cplusplus
+inline
+#endif
+#endif
+static const char *
+dcnpgettext_expr (const char *domain,
+                 const char *msgctxt, const char *msgid,
+                 const char *msgid_plural, unsigned long int n,
+                 int category)
+{
+  size_t msgctxt_len = strlen (msgctxt) + 1;
+  size_t msgid_len = strlen (msgid) + 1;
+  const char *translation;
+#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
+  char msg_ctxt_id[msgctxt_len + msgid_len];
+#else
+  char buf[1024];
+  char *msg_ctxt_id =
+    (msgctxt_len + msgid_len <= sizeof (buf)
+     ? buf
+     : (char *) malloc (msgctxt_len + msgid_len));
+  if (msg_ctxt_id != NULL)
+#endif
+    {
+      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
+      msg_ctxt_id[msgctxt_len - 1] = '\004';
+      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
+      translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);
+#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
+      if (msg_ctxt_id != buf)
+       free (msg_ctxt_id);
+#endif
+      if (!(translation == msg_ctxt_id || translation == msgid_plural))
+       return translation;
+    }
+  return (n == 1 ? msgid : msgid_plural);
+}
+
+#define GT_(s) gettext(s)
+#define  N_(s)        (s)
+
+#endif /* _LIBGETTEXT_H */
index 57eb7bc7921c335777e584752b28f3e22e92f921..e01b98682ac25bdeebc2e662a9db1c083d044051 100644 (file)
--- a/gssapi.c
+++ b/gssapi.c
@@ -12,7 +12,7 @@
 #include  "fetchmail.h"
 #include  "socket.h"
 
-#include  "i18n.h"
+#include  "gettext.h"
 #include "fm_md5.h"
 
 #include <sys/types.h>
diff --git a/i18n.h b/i18n.h
deleted file mode 100644 (file)
index 5659fc4..0000000
--- a/i18n.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Convenience header for conditional use of GNU <libintl.h>.
-   Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
-
-   This program is free software; you can redistribute it and/or modify it
-   under the terms of the GNU Library General Public License as published
-   by the Free Software Foundation; either version 2, or (at your option)
-   any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Library General Public License for more details.
-
-   You should have received a copy of the GNU Library General Public
-   License along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-   USA.  */
-
-#ifndef _LIBGETTEXT_H
-#define _LIBGETTEXT_H 1
-
-/* NLS can be disabled through the configure --disable-nls option.  */
-#ifdef ENABLE_NLS
-
-/* Get declarations of GNU message catalog functions.  */
-# include <libintl.h>
-
-#else
-
-/* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
-   chokes if dcgettext is defined as a macro.  So include it now, to make
-   later inclusions of <locale.h> a NOP.  We don't include <libintl.h>
-   as well because people using "gettext.h" will not include <libintl.h>,
-   and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
-   is OK.  */
-#if defined(__sun)
-# include <locale.h>
-#endif
-
-/* Disabled NLS.
-   The casts to 'const char *' serve the purpose of producing warnings
-   for invalid uses of the value returned from these functions.
-   On pre-ANSI systems without 'const', the config.h file is supposed to
-   contain "#define const".  */
-# define gettext(Msgid) ((const char *) (Msgid))
-# define dgettext(Domainname, Msgid) ((const char *) (Msgid))
-# define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid))
-# define ngettext(Msgid1, Msgid2, N) \
-    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
-# define dngettext(Domainname, Msgid1, Msgid2, N) \
-    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
-# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
-    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
-# define textdomain(Domainname) ((const char *) (Domainname))
-# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
-# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
-
-#endif
-
-/* A pseudo function call that serves as a marker for the automated
-   extraction of messages, but does not call gettext().  The run-time
-   translation is done at a different place in the code.
-   The argument, String, should be a literal string.  Concatenated strings
-   and other string expressions won't work.
-   The macro's expansion is not parenthesized, so that it is suitable as
-   initializer for static 'char[]' or 'const char[]' variables.  */
-#define gettext_noop(String) String
-
-#define GT_(String) gettext(String)
-#define N_(String) gettext_noop(String)
-
-#endif /* _LIBGETTEXT_H */
diff --git a/imap.c b/imap.c
index 786f9de409d9ae4c8aa4bb1aa5ce986542a89265..08a30ca8e5cecc52d68139be5fa882513bf78ce8 100644 (file)
--- a/imap.c
+++ b/imap.c
@@ -16,7 +16,7 @@
 #include  "fetchmail.h"
 #include  "socket.h"
 
-#include  "i18n.h"
+#include  "gettext.h"
 
 /* imap_version values */
 #define IMAP2          -1      /* IMAP2 or IMAP2BIS, RFC1176 */
index 833bc33e3a1ea837947e68121a24cffeca79b84e..05efe63490617ae2255309dc1e04cf993edb8f84 100644 (file)
@@ -44,7 +44,7 @@
 #endif /* defined __FreeBSD_USE_KVM */
 #endif /* defined __FreeBSD__ */
 #include "socket.h"
-#include "i18n.h"
+#include "gettext.h"
 #include "tunable.h"
 
 typedef struct {
diff --git a/lock.c b/lock.c
index 069485d75f3b1489ccd0158b735ef00d25e9c7be..2d656df65289fcf3ae829ac3d5306cb192fd3d03 100644 (file)
--- a/lock.c
+++ b/lock.c
@@ -14,7 +14,7 @@
 #include <signal.h>
 
 #include "fetchmail.h"
-#include "i18n.h"
+#include "gettext.h"
 #include "lock.h"
 
 static char *lockfile;         /** name of lockfile */
diff --git a/netrc.c b/netrc.c
index a585e1a0be37c236336713b949f15e7f9b3926e6..3794c18cb9da36d75c1a9890d1ce7b1253d25c95 100644 (file)
--- a/netrc.c
+++ b/netrc.c
@@ -19,7 +19,7 @@
 
 #include "fetchmail.h"
 #include "netrc.h"
-#include "i18n.h"
+#include "gettext.h"
 
 #ifdef STANDALONE
 /* Normally defined in xstrdup.c. */
diff --git a/odmr.c b/odmr.c
index 29613d5c2be6d07f2cc7752ffc71b643fa470d47..64e70bcebb3e1af0311fec11474b48d24dc328ea 100644 (file)
--- a/odmr.c
+++ b/odmr.c
@@ -15,7 +15,7 @@
 #include  <netdb.h>
 #include  <errno.h>
 #include  <unistd.h>
-#include  "i18n.h"
+#include  "gettext.h"
 #include  "fetchmail.h"
 #include  "sdump.h"
 #include  "smtp.h"
diff --git a/opie.c b/opie.c
index d3eabb9818d1e06841ad93eec54e7413abd40639..e0aec1ceb4426475a8c7ef3512ba5a3eccc8fe13 100644 (file)
--- a/opie.c
+++ b/opie.c
@@ -12,7 +12,7 @@
 #include  "fetchmail.h"
 #include  "socket.h"
 
-#include  "i18n.h"
+#include  "gettext.h"
 #include "fm_md5.h"
 
 #ifdef OPIE_ENABLE
index 3661a71f1106966fcaa7478b4f3ba6a996a7afdb..28f0fb54d41d2df7c6bb9c5c62e364e4418474bb 100644 (file)
--- a/options.c
+++ b/options.c
@@ -16,7 +16,7 @@
 
 #include "getopt.h"
 #include "fetchmail.h"
-#include "i18n.h"
+#include "gettext.h"
 
 enum {
     LA_INVISIBLE = 256,
diff --git a/pop3.c b/pop3.c
index 0374a1ba5909ae1ffa1ccbc8ef4da4154855d80a..9a5ee4347d5ee5e06f530161a1be93dd4a53cbc9 100644 (file)
--- a/pop3.c
+++ b/pop3.c
@@ -16,7 +16,7 @@
 
 #include  "fetchmail.h"
 #include  "socket.h"
-#include  "i18n.h"
+#include  "gettext.h"
 
 #ifdef OPIE_ENABLE
 #ifdef __cplusplus
index 83ffc1b37b7ef8943d7a3cecbd877ca724904475..74e195cd6c2937fedc49805a704ec0de92cd8308 100644 (file)
@@ -21,7 +21,7 @@
 #endif /* __CYGWIN__ */
 
 #include "fetchmail.h"
-#include "i18n.h"
+#include "gettext.h"
   
 /* parser reads these */
 char *rcfile;                  /* path name of rc file */
index 696d3bcfcd47fb6b82621e1936e44c7551fad821..e6f4b63cb1432c2237eb9248aa3f9c13150b6326 100644 (file)
--- a/report.c
+++ b/report.c
@@ -17,7 +17,7 @@
 #include <errno.h>
 #include <string.h>
 #include <syslog.h>
-#include "i18n.h"
+#include "gettext.h"
 #include "fetchmail.h"
 
 #  include <stdarg.h>
index 15b88f05ef476312af280de1d2ec7183ed4768db..2afd82b1ffa7a06e44de6a79311eda7e0273fb60 100644 (file)
--- a/rfc822.c
+++ b/rfc822.c
@@ -32,7 +32,7 @@ MIT license.  Compile with -DMAIN to build the demonstrator.
 #include "sdump.h"
 
 #ifndef MAIN
-#include "i18n.h"
+#include "gettext.h"
 #else
 #include  <unistd.h>
 static int verbose;
diff --git a/rpa.c b/rpa.c
index c365f0ded8b2338ed9a1b2792557c4d0da07b209..fa393993c12a11ac25fbcf2c960789021c185832 100644 (file)
--- a/rpa.c
+++ b/rpa.c
@@ -26,7 +26,7 @@
 #include  "socket.h"
 #include  "fetchmail.h"
 #include  "fm_md5.h"
-#include  "i18n.h"
+#include  "gettext.h"
 
 #ifdef TESTMODE
 extern unsigned char line1[];
index 2fa5e4a4c45fb852dda42f860b10f92bda68d5ae..a775c9c93f2562070be1d4a5da2bb07145b25c28 100644 (file)
@@ -7,7 +7,7 @@
  */
 #include "fetchmail.h"
 #include "getaddrinfo.h"
-#include "i18n.h"
+#include "gettext.h"
 
 #include <errno.h>
 #include <stdlib.h>
diff --git a/sink.c b/sink.c
index e93d741a7cf0068dba8893238aa3c99d792aa001..a72c94884bb98e9665a62cfbb058ab276f22c2e1 100644 (file)
--- a/sink.c
+++ b/sink.c
@@ -31,7 +31,7 @@
 
 #include  "socket.h"
 #include  "smtp.h"
-#include  "i18n.h"
+#include  "gettext.h"
 
 /* BSD portability hack...I know, this is an ugly place to put it */
 #if !defined(SIGCHLD) && defined(SIGCLD)
diff --git a/smtp.c b/smtp.c
index 611bad075dff7986ffe98a23d43768e005e6fed2..062df2b751723182244c9f91553c6a7add2f2b5a 100644 (file)
--- a/smtp.c
+++ b/smtp.c
@@ -18,7 +18,7 @@
 #include <signal.h>
 #include "socket.h"
 #include "smtp.h"
-#include "i18n.h"
+#include "gettext.h"
 
 struct opt
 {
index 5384ba8261255b1072f6d636d666dbb8ddf91fe1..c18966737ac4f877cc4725f1d3857089cebc5ff1 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -26,7 +26,7 @@
 #include "socket.h"
 #include "fetchmail.h"
 #include "getaddrinfo.h"
-#include "i18n.h"
+#include "gettext.h"
 #include "sdump.h"
 
 /* Defines to allow Cygwin to play nice... */
index 0bae20a4c66e9359eb36f2a493957344883f1ee4..81aa5f4b44ef9210e2157a47cf4ff77358d88c2d 100644 (file)
@@ -18,7 +18,7 @@
 #include <netdb.h>
 #include "fm_md5.h"
 
-#include "i18n.h"
+#include "gettext.h"
 #include "socket.h"
 #include "fetchmail.h"
 
diff --git a/uid.c b/uid.c
index 5c70d8127407c6c564f7ca995087e5a518ea8ce7..8a32aebca7dd7f943ea69c48c3b9177b277e710b 100644 (file)
--- a/uid.c
+++ b/uid.c
@@ -15,7 +15,7 @@
 #include <unistd.h>
 
 #include "fetchmail.h"
-#include "i18n.h"
+#include "gettext.h"
 #include "sdump.h"
 
 /*
index 67028e770494542f1c8638020ed0f7c149ec03cc..7fcea6c60c1c15dd2184261cc2f1237f52cec195 100644 (file)
--- a/unmime.c
+++ b/unmime.c
@@ -19,7 +19,7 @@
 #include <stdio.h>
 #include <ctype.h>
 #include "fetchmail.h"
-#include "i18n.h"
+#include "gettext.h"
 
 static unsigned char unhex(unsigned char c)
 {
index 00af14c80520bd9d9ed694726780280daedd456b..6107564d93eb51731e966c89eec8c396e7fed3b8 100644 (file)
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -12,7 +12,7 @@
 #include <string.h>
 #include  <stdlib.h>
 #include "fetchmail.h"
-#include "i18n.h"
+#include "gettext.h"
 
 void *xmalloc (size_t n)
 {