summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-04-03 11:34:43 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:13:06 +0200
commite7a1c186677ebdb9c20de3a90f79b2b1be276ae5 (patch)
treea8074eabe5a69503d441866716292802a689ddc8
parent16bde7d00ca46de35d98c79ab9991a889abc96b9 (diff)
downloadexternal_gettext-e7a1c186677ebdb9c20de3a90f79b2b1be276ae5.zip
external_gettext-e7a1c186677ebdb9c20de3a90f79b2b1be276ae5.tar.gz
external_gettext-e7a1c186677ebdb9c20de3a90f79b2b1be276ae5.tar.bz2
Internationalization of author names.
-rw-r--r--gettext-runtime/ChangeLog5
-rw-r--r--gettext-runtime/Makefile.am4
-rw-r--r--gettext-runtime/configure.ac2
-rw-r--r--gettext-runtime/lib/ChangeLog17
-rw-r--r--gettext-runtime/lib/Makefile.am13
-rw-r--r--gettext-runtime/lib/Makefile.msvc16
-rw-r--r--gettext-runtime/lib/Makefile.vms21
-rw-r--r--gettext-runtime/po/ChangeLog5
-rw-r--r--gettext-runtime/po/Makevars2
-rw-r--r--gettext-runtime/src/ChangeLog10
-rw-r--r--gettext-runtime/src/Makefile.am5
-rw-r--r--gettext-runtime/src/envsubst.c7
-rw-r--r--gettext-runtime/src/gettext.c8
-rw-r--r--gettext-runtime/src/ngettext.c8
-rw-r--r--gettext-tools/lib/ChangeLog12
-rw-r--r--gettext-tools/lib/Makefile.am3
-rw-r--r--gettext-tools/lib/Makefile.msvc4
-rw-r--r--gettext-tools/lib/Makefile.vms4
-rw-r--r--gettext-tools/po/ChangeLog5
-rw-r--r--gettext-tools/po/Makevars2
-rw-r--r--gettext-tools/src/ChangeLog39
-rw-r--r--gettext-tools/src/hostname.c5
-rw-r--r--gettext-tools/src/msgattrib.c3
-rw-r--r--gettext-tools/src/msgcat.c3
-rw-r--r--gettext-tools/src/msgcmp.c3
-rw-r--r--gettext-tools/src/msgcomm.c3
-rw-r--r--gettext-tools/src/msgconv.c3
-rw-r--r--gettext-tools/src/msgen.c3
-rw-r--r--gettext-tools/src/msgexec.c3
-rw-r--r--gettext-tools/src/msgfilter.c3
-rw-r--r--gettext-tools/src/msgfmt.c6
-rw-r--r--gettext-tools/src/msggrep.c3
-rw-r--r--gettext-tools/src/msginit.c3
-rw-r--r--gettext-tools/src/msgmerge.c3
-rw-r--r--gettext-tools/src/msgunfmt.c3
-rw-r--r--gettext-tools/src/msguniq.c3
-rw-r--r--gettext-tools/src/recode-sr-latin.c8
-rw-r--r--gettext-tools/src/urlget.c5
-rw-r--r--gettext-tools/src/xgettext.c3
-rw-r--r--gettext-tools/tests/ChangeLog7
-rw-r--r--gettext-tools/tests/tstgettext.c7
-rw-r--r--gettext-tools/tests/tstngettext.c7
42 files changed, 231 insertions, 48 deletions
diff --git a/gettext-runtime/ChangeLog b/gettext-runtime/ChangeLog
index 7ca1fe4..2d686df 100644
--- a/gettext-runtime/ChangeLog
+++ b/gettext-runtime/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-02 Bruno Haible <bruno@clisp.org>
+
+ * configure.ac: Test for strstr().
+ * Makefile.am (config.h_vms, config.h.msvc): Also define HAVE_STRSTR.
+
2005-11-23 Bruno Haible <bruno@clisp.org>
Cygwin portability.
diff --git a/gettext-runtime/Makefile.am b/gettext-runtime/Makefile.am
index 32516ae..e0917dc 100644
--- a/gettext-runtime/Makefile.am
+++ b/gettext-runtime/Makefile.am
@@ -1,5 +1,5 @@
## Makefile for the gettext-runtime directory of GNU gettext
-## Copyright (C) 1995-1999, 2000-2005 Free Software Foundation, Inc.
+## Copyright (C) 1995-1999, 2000-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
@@ -89,6 +89,7 @@ config.h_vms: config.h.in ../version.sh
-e 's/#undef HAVE_STRERROR$$/#define HAVE_STRERROR 1/' \
-e 's/#undef HAVE_STRINGS_H$$/#define HAVE_STRINGS_H 1/' \
-e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \
+ -e 's/#undef HAVE_STRSTR$$/#define HAVE_STRSTR 1/' \
-e 's/#undef HAVE_STRTOUL$$/#define HAVE_STRTOUL 1/' \
-e 's/#undef HAVE_SYS_PARAM_H$$/#define HAVE_SYS_PARAM_H 1/' \
-e 's/#undef HAVE_SYS_STAT_H$$/#define HAVE_SYS_STAT_H 1/' \
@@ -154,6 +155,7 @@ config.h.msvc: config.h.in ../version.sh
-e 's/#undef HAVE_STRDUP$$/#define HAVE_STRDUP 1/' \
-e 's/#undef HAVE_STRERROR$$/#define HAVE_STRERROR 1/' \
-e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \
+ -e 's/#undef HAVE_STRSTR$$/#define HAVE_STRSTR 1/' \
-e 's/#undef HAVE_STRTOUL$$/#define HAVE_STRTOUL 1/' \
-e 's/#undef HAVE_SYS_STAT_H$$/#define HAVE_SYS_STAT_H 1/' \
-e 's/#undef HAVE_SYS_TYPES_H$$/#define HAVE_SYS_TYPES_H 1/' \
diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac
index 1e957ac..fbed7eb 100644
--- a/gettext-runtime/configure.ac
+++ b/gettext-runtime/configure.ac
@@ -91,7 +91,7 @@ AC_TYPE_SIZE_T
dnl Checks for library functions.
gl_ALLOCSA
AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([setlocale strerror])
+AC_CHECK_FUNCS([setlocale strerror strstr])
AC_REPLACE_FUNCS([atexit memmove])
gl_GETOPT
gt_FUNC_SETENV
diff --git a/gettext-runtime/lib/ChangeLog b/gettext-runtime/lib/ChangeLog
index 582c711..cb90a12 100644
--- a/gettext-runtime/lib/ChangeLog
+++ b/gettext-runtime/lib/ChangeLog
@@ -1,3 +1,20 @@
+2006-04-02 Bruno Haible <bruno@clisp.org>
+
+ * Makefile.am (libgrt_a_SOURCES): Add c-strcase*, gettext.h,
+ iconvstring.*, localcharset.*, propername.*, strstr.h.
+ (DEFS): Also define LIBDIR.
+ * Makefile.msvc (libdir): New variable.
+ (OBJECTS): Add c-strcasecmp.obj, iconvstring.obj, localcharset.obj,
+ propername.obj.
+ (c-strcasecmp.obj, iconvstring.obj, localcharset.obj, propername.obj):
+ New rules.
+ * Makefile.vms (prefix, exec_prefix, libdir): New variables.
+ (DEFS): Also define LIBDIR.
+ (OBJECTS): Add c-strcasecmp.obj, iconvstring.obj, localcharset.obj,
+ propername.obj.
+ (c-strcasecmp.obj, iconvstring.obj, localcharset.obj, propername.obj):
+ New rules.
+
2005-07-25 Bruno Haible <bruno@clisp.org>
* Makefile.am: Remove rules depending on @STDBOOL_H@, @ALLOCA_H@,
diff --git a/gettext-runtime/lib/Makefile.am b/gettext-runtime/lib/Makefile.am
index 1262f53..99eb137 100644
--- a/gettext-runtime/lib/Makefile.am
+++ b/gettext-runtime/lib/Makefile.am
@@ -1,5 +1,5 @@
## Makefile for the gettext-runtime/lib subdirectory of GNU gettext
-## Copyright (C) 1995-1998, 2000-2005 Free Software Foundation, Inc.
+## Copyright (C) 1995-1998, 2000-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
@@ -29,11 +29,17 @@ noinst_LIBRARIES = libgrt.a
libgrt_a_SOURCES = \
../../gettext-tools/lib/allocsa.h ../../gettext-tools/lib/allocsa.c \
../../gettext-tools/lib/basename.h ../../gettext-tools/lib/basename.c \
+ ../../gettext-tools/lib/c-strcase.h ../../gettext-tools/lib/c-strcasecmp.c \
../../gettext-tools/lib/closeout.h ../../gettext-tools/lib/closeout.c \
../../gettext-tools/lib/exit.h \
../../gettext-tools/lib/fwriteerror.h ../../gettext-tools/lib/fwriteerror.c \
+ ../../gettext-tools/lib/gettext.h \
+ ../../gettext-tools/lib/iconvstring.h ../../gettext-tools/lib/iconvstring.c \
+ ../../gettext-tools/lib/localcharset.h ../../gettext-tools/lib/localcharset.c \
../../gettext-tools/lib/pathmax.h \
../../gettext-tools/lib/progname.h ../../gettext-tools/lib/progname.c ../../gettext-tools/lib/progreloc.c \
+ ../../gettext-tools/lib/propername.h ../../gettext-tools/lib/propername.c \
+ ../../gettext-tools/lib/strstr.h \
../../gettext-tools/lib/unlocked-io.h \
../../gettext-tools/lib/xalloc.h ../../gettext-tools/lib/xmalloc.c ../../gettext-tools/lib/xstrdup.c \
../../gettext-tools/lib/xreadlink.h ../../gettext-tools/lib/xreadlink.c
@@ -105,6 +111,11 @@ MOSTLYCLEANFILES += getopt.h
# <<< gnulib module getopt.
+# >>> gnulib module localcharset.
+DEFS += -DLIBDIR=\"$(libdir)\"
+# <<< gnulib module localcharset.
+
+
# VMS support.
EXTRA_DIST += Makefile.vms
diff --git a/gettext-runtime/lib/Makefile.msvc b/gettext-runtime/lib/Makefile.msvc
index 930b22e..9f9c333 100644
--- a/gettext-runtime/lib/Makefile.msvc
+++ b/gettext-runtime/lib/Makefile.msvc
@@ -21,6 +21,8 @@ PREFIX = c:\usr
# Directories used by "make install":
prefix = $(PREFIX)
+exec_prefix = $(prefix)
+libdir = $(exec_prefix)\lib
includedir = $(prefix)\include
# Programs used by "make":
@@ -52,13 +54,16 @@ RM = -del
SHELL = /bin/sh
-OBJECTS = basename.obj closeout.obj error.obj fwriteerror.obj getopt.obj getopt1.obj progname.obj progreloc.obj relocatable.obj xmalloc.obj xstrdup.obj
+OBJECTS = basename.obj c-strcasecmp.obj closeout.obj error.obj fwriteerror.obj getopt.obj getopt1.obj iconvstring.obj localcharset.obj progname.obj progreloc.obj propername.obj relocatable.obj xmalloc.obj xstrdup.obj
all : grt.lib
basename.obj : ..\..\gettext-tools\lib\basename.c
$(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\basename.c
+c-strcasecmp.obj : ..\..\gettext-tools\lib\c-strcasecmp.c
+ $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\c-strcasecmp.c
+
closeout.obj : ..\..\gettext-tools\lib\closeout.c
$(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\closeout.c
@@ -74,12 +79,21 @@ getopt.obj : ..\..\gettext-tools\lib\getopt.c
getopt1.obj : ..\..\gettext-tools\lib\getopt1.c
$(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\getopt1.c
+iconvstring.obj : ..\..\gettext-tools\lib\iconvstring.c
+ $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\iconvstring.c
+
+localcharset.obj : ..\..\gettext-tools\lib\localcharset.c
+ $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\localcharset.c
+
progname.obj : ..\..\gettext-tools\lib\progname.c
$(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\progname.c
progreloc.obj : ..\..\gettext-tools\lib\progreloc.c
$(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\progreloc.c
+propername.obj : ..\..\gettext-tools\lib\propername.c
+ $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\propername.c
+
relocatable.obj : ..\..\gettext-tools\lib\relocatable.c
$(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\relocatable.c
diff --git a/gettext-runtime/lib/Makefile.vms b/gettext-runtime/lib/Makefile.vms
index 06d450a..676ac54 100644
--- a/gettext-runtime/lib/Makefile.vms
+++ b/gettext-runtime/lib/Makefile.vms
@@ -2,6 +2,11 @@
#### Start of system configuration section. ####
+# Directories used by "make install":
+prefix = SYS$DATA:[
+exec_prefix = $(prefix)
+libdir = $(exec_prefix).lib
+
# Programs used by "make":
CC = cc
@@ -15,7 +20,7 @@ WARN_CFLAGS = /warning
OPTIMFLAGS = /optimize
CFLAGS = $(ABIFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS)
-DEFS = "VMS=1","HAVE_CONFIG_H=1"
+DEFS = "VMS=1","HAVE_CONFIG_H=1","LIBDIR=""$(libdir)]"""
INCLUDES = /include=([],[-],[-.intl],[-.-.gettext-tools.lib])
@@ -27,7 +32,7 @@ RM = delete
#### End of system configuration section. ####
-OBJECTS = basename.obj,closeout.obj,error.obj,fwriteerror.obj,getopt.obj,getopt1.obj,progname.obj,progreloc.obj,relocatable.obj,xmalloc.obj,xstrdup.obj
+OBJECTS = basename.obj,c-strcasecmp.obj,closeout.obj,error.obj,fwriteerror.obj,getopt.obj,getopt1.obj,iconvstring.obj,localcharset.obj,progname.obj,progreloc.obj,propername.obj,relocatable.obj,xmalloc.obj,xstrdup.obj
all : grt.olb
write sys$output "Nothing else to be done for 'all'."
@@ -35,6 +40,9 @@ all : grt.olb
basename.obj : [-.-.gettext-tools.lib]basename.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]basename.c
+c-strcasecmp.obj : [-.-.gettext-tools.lib]c-strcasecmp.c
+ $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]c-strcasecmp.c
+
closeout.obj : [-.-.gettext-tools.lib]closeout.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]closeout.c
@@ -50,12 +58,21 @@ getopt.obj : [-.-.gettext-tools.lib]getopt.c
getopt1.obj : [-.-.gettext-tools.lib]getopt1.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]getopt1.c
+iconvstring.obj : [-.-.gettext-tools.lib]iconvstring.c
+ $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]iconvstring.c
+
+localcharset.obj : [-.-.gettext-tools.lib]localcharset.c
+ $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]localcharset.c
+
progname.obj : [-.-.gettext-tools.lib]progname.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]progname.c
progreloc.obj : [-.-.gettext-tools.lib]progreloc.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]progreloc.c
+propername.obj : [-.-.gettext-tools.lib]propername.c
+ $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]propername.c
+
relocatable.obj : [-.-.gettext-tools.lib]relocatable.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-tools.lib]relocatable.c
diff --git a/gettext-runtime/po/ChangeLog b/gettext-runtime/po/ChangeLog
index 5366bba..2a651c6 100644
--- a/gettext-runtime/po/ChangeLog
+++ b/gettext-runtime/po/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-02 Bruno Haible <bruno@clisp.org>
+
+ * Makevars (XGETTEXT_OPTIONS): Add keywords 'proper_name' and
+ 'proper_name_utf8'.
+
2005-10-18 Bruno Haible <bruno@clisp.org>
* Makevars (USE_MSGCTXT): New macro.
diff --git a/gettext-runtime/po/Makevars b/gettext-runtime/po/Makevars
index 6fa6b94..d29c4a9 100644
--- a/gettext-runtime/po/Makevars
+++ b/gettext-runtime/po/Makevars
@@ -11,6 +11,8 @@ top_builddir = ..
XGETTEXT_OPTIONS = \
--keyword=_ --flag=_:1:pass-c-format \
--keyword=N_ --flag=N_:1:pass-c-format \
+ --keyword='proper_name:1,"This is a proper name. See the gettext manual, section Names."' \
+ --keyword='proper_name_utf8:1,"This is a proper name. See the gettext manual, section Names."' \
--flag=error:3:c-format --flag=error_at_line:5:c-format
# This is the copyright holder that gets inserted into the header of the
diff --git a/gettext-runtime/src/ChangeLog b/gettext-runtime/src/ChangeLog
index 7a18f35..c9b182a 100644
--- a/gettext-runtime/src/ChangeLog
+++ b/gettext-runtime/src/ChangeLog
@@ -1,3 +1,13 @@
+2006-04-02 Bruno Haible <bruno@clisp.org>
+
+ * envsubst.c: Include propername.h.
+ (main): Call proper_name. Bump copyright year.
+ * gettext.c: Include propername.h.
+ (main): Call proper_name. Bump copyright year.
+ * ngettext.c: Include propername.h.
+ (main): Call proper_name. Bump copyright year.
+ * Makefile.am (LDADD): Add LTLIBICONV.
+
2005-12-19 Bruno Haible <bruno@clisp.org>
* gettext.sh.in: Fix behaviour when the sourceing script has a name
diff --git a/gettext-runtime/src/Makefile.am b/gettext-runtime/src/Makefile.am
index a506bc3..54a98c9 100644
--- a/gettext-runtime/src/Makefile.am
+++ b/gettext-runtime/src/Makefile.am
@@ -1,5 +1,5 @@
## Makefile for the gettext-runtime/src subdirectory of GNU gettext
-## Copyright (C) 1995-1998, 2000-2005 Free Software Foundation, Inc.
+## Copyright (C) 1995-1998, 2000-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
@@ -41,7 +41,8 @@ ngettext_SOURCES = ngettext.c
envsubst_SOURCES = envsubst.c
# Link dependencies.
-LDADD = ../lib/libgrt.a @LTLIBINTL@
+# Need @LTLIBICONV@ because iconvstring.c uses iconv().
+LDADD = ../lib/libgrt.a @LTLIBINTL@ @LTLIBICONV@
# Specify installation directory, for --enable-relocatable.
gettext_CFLAGS = -DINSTALLDIR=\"$(bindir)\"
diff --git a/gettext-runtime/src/envsubst.c b/gettext-runtime/src/envsubst.c
index b655b04..c851267 100644
--- a/gettext-runtime/src/envsubst.c
+++ b/gettext-runtime/src/envsubst.c
@@ -1,5 +1,5 @@
/* Substitution of environment variables in shell format strings.
- Copyright (C) 2003-2005 Free Software Foundation, Inc.
+ Copyright (C) 2003-2006 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify
@@ -35,6 +35,7 @@
#include "basename.h"
#include "xalloc.h"
#include "exit.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -114,8 +115,8 @@ main (int argc, char *argv[])
This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
- "2003-2005");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ "2003-2006");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-runtime/src/gettext.c b/gettext-runtime/src/gettext.c
index 9747275..bea3f5a 100644
--- a/gettext-runtime/src/gettext.c
+++ b/gettext-runtime/src/gettext.c
@@ -1,5 +1,5 @@
/* gettext - retrieve text string from message catalog and print it.
- Copyright (C) 1995-1997, 2000-2005 Free Software Foundation, Inc.
+ Copyright (C) 1995-1997, 2000-2006 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, May 1995.
This program is free software; you can redistribute it and/or modify
@@ -34,7 +34,7 @@
#include "basename.h"
#include "xalloc.h"
#include "exit.h"
-
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -136,8 +136,8 @@ main (int argc, char *argv[])
This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
- "1995-1997, 2000-2005");
- printf (_("Written by %s.\n"), "Ulrich Drepper");
+ "1995-1997, 2000-2006");
+ printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-runtime/src/ngettext.c b/gettext-runtime/src/ngettext.c
index ee81ddb..be021c9 100644
--- a/gettext-runtime/src/ngettext.c
+++ b/gettext-runtime/src/ngettext.c
@@ -1,5 +1,5 @@
/* ngettext - retrieve plural form string from message catalog and print it.
- Copyright (C) 1995-1997, 2000-2005 Free Software Foundation, Inc.
+ Copyright (C) 1995-1997, 2000-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
@@ -34,7 +34,7 @@
#include "basename.h"
#include "xalloc.h"
#include "exit.h"
-
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -126,8 +126,8 @@ main (int argc, char *argv[])
This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
- "1995-1997, 2000-2005");
- printf (_("Written by %s.\n"), "Ulrich Drepper");
+ "1995-1997, 2000-2006");
+ printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog
index 740a1b9..4b85c79 100644
--- a/gettext-tools/lib/ChangeLog
+++ b/gettext-tools/lib/ChangeLog
@@ -1,3 +1,15 @@
+2006-04-02 Bruno Haible <bruno@clisp.org>
+
+ Support for non-ASCII author names.
+ * propername.h: New file.
+ * propername.c: New file.
+ * Makefile.am (libgettextlib_la_SOURCES): Add propername.h,
+ propername.c.
+ * Makefile.msvc (OBJECTS): Add propername.obj.
+ (propername.obj): New rule.
+ * Makefile.vms (OBJECTS): Add propername.obj.
+ (propername.obj): New rule.
+
2006-03-28 Bruno Haible <bruno@clisp.org>
* iconvstring.h: New file.
diff --git a/gettext-tools/lib/Makefile.am b/gettext-tools/lib/Makefile.am
index 8fa7373..47d3a52 100644
--- a/gettext-tools/lib/Makefile.am
+++ b/gettext-tools/lib/Makefile.am
@@ -67,6 +67,7 @@ libgettextlib_la_SOURCES = \
pathname.h concatpath.c \
pipe.h pipe.c w32spawn.h \
progname.h progname.c progreloc.c \
+ propername.h propername.c \
quote.h quote.c \
quotearg.h quotearg.c \
safe-read.h safe-read.c \
@@ -119,7 +120,7 @@ UNUSED_SOURCE = \
libgettextlib_la_LIBADD = @LTLIBOBJS@
# Need @LTLIBINTL@ because many source files use gettext().
-# Need @LTLIBICONV@ because linebreak.c uses iconv().
+# Need @LTLIBICONV@ because linebreak.c and iconvstring.c use iconv().
libgettextlib_la_LDFLAGS = \
-release @VERSION@ \
@LTLIBINTL@ @LTLIBICONV@ -lc @LTNOUNDEF@
diff --git a/gettext-tools/lib/Makefile.msvc b/gettext-tools/lib/Makefile.msvc
index a4525ed..cb6aa7c 100644
--- a/gettext-tools/lib/Makefile.msvc
+++ b/gettext-tools/lib/Makefile.msvc
@@ -111,6 +111,7 @@ OBJECTS = \
concatpath.obj \
pipe.obj \
progname.obj progreloc.obj \
+ propername.obj \
quote.obj \
quotearg.obj \
safe-read.obj \
@@ -238,6 +239,9 @@ progname.obj : progname.c
progreloc.obj : progreloc.c
$(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c progreloc.c
+propername.obj : propername.c
+ $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c propername.c
+
quote.obj : quote.c
$(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c quote.c
diff --git a/gettext-tools/lib/Makefile.vms b/gettext-tools/lib/Makefile.vms
index 41d6a25..6ec3730 100644
--- a/gettext-tools/lib/Makefile.vms
+++ b/gettext-tools/lib/Makefile.vms
@@ -69,6 +69,7 @@ OBJECTS = \
concatpath.obj, \
pipe.obj, \
progname.obj, progreloc.obj, \
+ propername.obj, \
quote.obj, \
quotearg.obj, \
safe-read.obj, \
@@ -200,6 +201,9 @@ progname.obj : progname.c
progreloc.obj : progreloc.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) progreloc.c
+propername.obj : propername.c
+ $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) propername.c
+
quote.obj : quote.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) quote.c
diff --git a/gettext-tools/po/ChangeLog b/gettext-tools/po/ChangeLog
index 9e77d56..6c0f967 100644
--- a/gettext-tools/po/ChangeLog
+++ b/gettext-tools/po/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-02 Bruno Haible <bruno@clisp.org>
+
+ * Makevars (XGETTEXT_OPTIONS): Add keywords 'proper_name' and
+ 'proper_name_utf8'.
+
2005-10-18 Bruno Haible <bruno@clisp.org>
* Makevars (USE_MSGCTXT): New macro.
diff --git a/gettext-tools/po/Makevars b/gettext-tools/po/Makevars
index 71d7101..0c69cd8 100644
--- a/gettext-tools/po/Makevars
+++ b/gettext-tools/po/Makevars
@@ -11,6 +11,8 @@ top_builddir = ..
XGETTEXT_OPTIONS = \
--keyword=_ --flag=_:1:pass-c-format \
--keyword=N_ --flag=N_:1:pass-c-format \
+ --keyword='proper_name:1,"This is a proper name. See the gettext manual, section Names."' \
+ --keyword='proper_name_utf8:1,"This is a proper name. See the gettext manual, section Names."' \
--flag=error:3:c-format --flag=error_at_line:5:c-format \
--flag=asprintf:2:c-format --flag=vasprintf:2:c-format \
--flag=xasprintf:1:c-format --flag=error_logger:1:c-format \
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog
index 3567cd3..d91157a 100644
--- a/gettext-tools/src/ChangeLog
+++ b/gettext-tools/src/ChangeLog
@@ -1,3 +1,42 @@
+2006-04-02 Bruno Haible <bruno@clisp.org>
+
+ * hostname.c: Include propername.h.
+ (main): Call proper_name.
+ * msgattrib.c: Include propername.h.
+ (main): Call proper_name.
+ * msgcat.c: Include propername.h.
+ (main): Call proper_name.
+ * msgcmp.c: Include propername.h.
+ (main): Call proper_name.
+ * msgcomm.c: Include propername.h.
+ (main): Call proper_name.
+ * msgconv.c: Include propername.h.
+ (main): Call proper_name.
+ * msgen.c: Include propername.h.
+ (main): Call proper_name.
+ * msgexec.c: Include propername.h.
+ (main): Call proper_name.
+ * msgfilter.c: Include propername.h.
+ (main): Call proper_name.
+ * msgfmt.c: Include propername.h.
+ (main): Call proper_name.
+ * msggrep.c: Include propername.h.
+ (main): Call proper_name.
+ * msginit.c: Include propername.h.
+ (main): Call proper_name.
+ * msgmerge.c: Include propername.h.
+ (main): Call proper_name.
+ * msgunfmt.c: Include propername.h.
+ (main): Call proper_name.
+ * msguniq.c: Include propername.h.
+ (main): Call proper_name.
+ * recode-sr-latin.c: Include propername.h.
+ (main): Call proper_name and proper_name_utf8.
+ * urlget.c: Include propername.h.
+ (main): Call proper_name.
+ * xgettext.c: Include propername.h.
+ (main): Call proper_name.
+
2006-04-01 Bruno Haible <bruno@clisp.org>
* xgettext.c (main): Treat --keyword= like --keyword.
diff --git a/gettext-tools/src/hostname.c b/gettext-tools/src/hostname.c
index d27ed48..d6d4979 100644
--- a/gettext-tools/src/hostname.c
+++ b/gettext-tools/src/hostname.c
@@ -1,5 +1,5 @@
/* Display hostname in various forms.
- Copyright (C) 2001-2003 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
@@ -90,6 +90,7 @@
#include "basename.h"
#include "xalloc.h"
#include "exit.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -184,7 +185,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2003");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgattrib.c b/gettext-tools/src/msgattrib.c
index 1d38111..ad22c1b 100644
--- a/gettext-tools/src/msgattrib.c
+++ b/gettext-tools/src/msgattrib.c
@@ -38,6 +38,7 @@
#include "read-po.h"
#include "write-po.h"
#include "exit.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -314,7 +315,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2006");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgcat.c b/gettext-tools/src/msgcat.c
index ba89bb0..26b9f69 100644
--- a/gettext-tools/src/msgcat.c
+++ b/gettext-tools/src/msgcat.c
@@ -41,6 +41,7 @@
#include "write-po.h"
#include "msgl-cat.h"
#include "exit.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -266,7 +267,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2006");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgcmp.c b/gettext-tools/src/msgcmp.c
index 168ad97..73c17fe 100644
--- a/gettext-tools/src/msgcmp.c
+++ b/gettext-tools/src/msgcmp.c
@@ -40,6 +40,7 @@
#include "msgl-iconv.h"
#include "strstr.h"
#include "c-strcase.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -143,7 +144,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"1995-1998, 2000-2006");
- printf (_("Written by %s.\n"), "Peter Miller");
+ printf (_("Written by %s.\n"), proper_name ("Peter Miller"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgcomm.c b/gettext-tools/src/msgcomm.c
index ed50ee4..933abb9 100644
--- a/gettext-tools/src/msgcomm.c
+++ b/gettext-tools/src/msgcomm.c
@@ -41,6 +41,7 @@
#include "write-po.h"
#include "msgl-cat.h"
#include "exit.h"
+#include "propername.h"
#include "gettext.h"
@@ -263,7 +264,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"1995-1998, 2000-2006");
- printf (_("Written by %s.\n"), "Peter Miller");
+ printf (_("Written by %s.\n"), proper_name ("Peter Miller"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgconv.c b/gettext-tools/src/msgconv.c
index baa5845..89767a0 100644
--- a/gettext-tools/src/msgconv.c
+++ b/gettext-tools/src/msgconv.c
@@ -40,6 +40,7 @@
#include "msgl-iconv.h"
#include "localcharset.h"
#include "exit.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -220,7 +221,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2006");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgen.c b/gettext-tools/src/msgen.c
index be3c427..9280e59 100644
--- a/gettext-tools/src/msgen.c
+++ b/gettext-tools/src/msgen.c
@@ -39,6 +39,7 @@
#include "msgl-english.h"
#include "write-po.h"
#include "exit.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -206,7 +207,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2006");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgexec.c b/gettext-tools/src/msgexec.c
index 051650a..7f09506 100644
--- a/gettext-tools/src/msgexec.c
+++ b/gettext-tools/src/msgexec.c
@@ -51,6 +51,7 @@
#include "pipe.h"
#include "wait-process.h"
#include "xsetenv.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -180,7 +181,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2006");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgfilter.c b/gettext-tools/src/msgfilter.c
index cb9fe9b..a5531d1 100644
--- a/gettext-tools/src/msgfilter.c
+++ b/gettext-tools/src/msgfilter.c
@@ -65,6 +65,7 @@
#include "filters.h"
#include "msgl-iconv.h"
#include "po-charset.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -280,7 +281,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2006");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgfmt.c b/gettext-tools/src/msgfmt.c
index e8d5653..7871687 100644
--- a/gettext-tools/src/msgfmt.c
+++ b/gettext-tools/src/msgfmt.c
@@ -46,13 +46,13 @@
#include "write-resources.h"
#include "write-tcl.h"
#include "write-qt.h"
-
-#include "gettext.h"
+#include "propername.h"
#include "message.h"
#include "open-po.h"
#include "read-po.h"
#include "po-charset.h"
#include "msgl-check.h"
+#include "gettext.h"
#define _(str) gettext (str)
@@ -363,7 +363,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"1995-1998, 2000-2006");
- printf (_("Written by %s.\n"), "Ulrich Drepper");
+ printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msggrep.c b/gettext-tools/src/msggrep.c
index 2ae25c9..f9c340a 100644
--- a/gettext-tools/src/msggrep.c
+++ b/gettext-tools/src/msggrep.c
@@ -55,6 +55,7 @@
#include "xallocsa.h"
#include "exit.h"
#include "libgrep.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -394,7 +395,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2006");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msginit.c b/gettext-tools/src/msginit.c
index afd1229..acd7d93 100644
--- a/gettext-tools/src/msginit.c
+++ b/gettext-tools/src/msginit.c
@@ -98,6 +98,7 @@
#include "getline.h"
#include "xsetenv.h"
#include "str-list.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -272,7 +273,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2006");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgmerge.c b/gettext-tools/src/msgmerge.c
index 8c5d068..4239130 100644
--- a/gettext-tools/src/msgmerge.c
+++ b/gettext-tools/src/msgmerge.c
@@ -54,6 +54,7 @@
#include "plural-count.h"
#include "backupfile.h"
#include "copy-file.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -305,7 +306,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"1995-1998, 2000-2006");
- printf (_("Written by %s.\n"), "Peter Miller");
+ printf (_("Written by %s.\n"), proper_name ("Peter Miller"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msgunfmt.c b/gettext-tools/src/msgunfmt.c
index d301bcc..b82602e 100644
--- a/gettext-tools/src/msgunfmt.c
+++ b/gettext-tools/src/msgunfmt.c
@@ -42,6 +42,7 @@
#include "read-resources.h"
#include "read-tcl.h"
#include "write-po.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -249,7 +250,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"1995-1998, 2000-2006");
- printf (_("Written by %s.\n"), "Ulrich Drepper");
+ printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/msguniq.c b/gettext-tools/src/msguniq.c
index f9b5a01..379bbdf 100644
--- a/gettext-tools/src/msguniq.c
+++ b/gettext-tools/src/msguniq.c
@@ -40,6 +40,7 @@
#include "write-po.h"
#include "msgl-cat.h"
#include "exit.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -242,7 +243,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2006");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/recode-sr-latin.c b/gettext-tools/src/recode-sr-latin.c
index ef48945..a74bd90 100644
--- a/gettext-tools/src/recode-sr-latin.c
+++ b/gettext-tools/src/recode-sr-latin.c
@@ -42,6 +42,7 @@
#include "c-strcase.h"
#include "iconvstring.h"
#include "filters.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -113,7 +114,12 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2006");
- printf (_("Written by %s and %s.\n"), "Danilo Segan", "Bruno Haible");
+ printf (_("Written by %s and %s.\n"),
+ /* TRANSLATORS: This is a proper name. The last name is
+ (with Unicode escapes) "\u0160egan" or (with HTML entities)
+ "&Scaron;egan". */
+ proper_name_utf8 ("Danilo Segan", "Danilo \305\240egan"),
+ proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/urlget.c b/gettext-tools/src/urlget.c
index 0f4f56e..1d4ced1 100644
--- a/gettext-tools/src/urlget.c
+++ b/gettext-tools/src/urlget.c
@@ -1,5 +1,5 @@
/* Get the contents of an URL.
- Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
@@ -44,6 +44,7 @@
#include "javaexec.h"
#include "exit.h"
#include "binary-io.h"
+#include "propername.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -136,7 +137,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"2001-2003");
- printf (_("Written by %s.\n"), "Bruno Haible");
+ printf (_("Written by %s.\n"), proper_name ("Bruno Haible"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/src/xgettext.c b/gettext-tools/src/xgettext.c
index 2c0be2b..ba02659 100644
--- a/gettext-tools/src/xgettext.c
+++ b/gettext-tools/src/xgettext.c
@@ -60,6 +60,7 @@
#include "po-time.h"
#include "write-po.h"
#include "format.h"
+#include "propername.h"
#include "gettext.h"
/* A convenience macro. I don't like writing gettext() every time. */
@@ -515,7 +516,7 @@ This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
"1995-1998, 2000-2006");
- printf (_("Written by %s.\n"), "Ulrich Drepper");
+ printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index 82b7d85..cdb8c57 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,3 +1,10 @@
+2006-04-02 Bruno Haible <bruno@clisp.org>
+
+ * tstgettext.c: Include propername.h.
+ (main): Call proper_name. Bump copyright year.
+ * tstngettext.c: Include propername.h.
+ (main): Call proper_name. Bump copyright year.
+
2006-03-28 Bruno Haible <bruno@clisp.org>
* recode-sr-latin-1: New file.
diff --git a/gettext-tools/tests/tstgettext.c b/gettext-tools/tests/tstgettext.c
index 9d1eacd..b6220a2 100644
--- a/gettext-tools/tests/tstgettext.c
+++ b/gettext-tools/tests/tstgettext.c
@@ -1,5 +1,5 @@
/* gettext - retrieve text string from message catalog and print it.
- Copyright (C) 1995-1997, 2000-2005 Free Software Foundation, Inc.
+ Copyright (C) 1995-1997, 2000-2006 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, May 1995.
This program is free software; you can redistribute it and/or modify
@@ -34,6 +34,7 @@
#include "basename.h"
#include "xalloc.h"
#include "exit.h"
+#include "propername.h"
#include "xsetenv.h"
#define HAVE_SETLOCALE 1
@@ -161,8 +162,8 @@ main (int argc, char *argv[])
This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
- "1995-1997, 2000-2005");
- printf (_("Written by %s.\n"), "Ulrich Drepper");
+ "1995-1997, 2000-2006");
+ printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper"));
exit (EXIT_SUCCESS);
}
diff --git a/gettext-tools/tests/tstngettext.c b/gettext-tools/tests/tstngettext.c
index f49bdbb..39e4008 100644
--- a/gettext-tools/tests/tstngettext.c
+++ b/gettext-tools/tests/tstngettext.c
@@ -1,5 +1,5 @@
/* ngettext - retrieve plural form strings from message catalog and print them.
- Copyright (C) 1995-1997, 2000-2005 Free Software Foundation, Inc.
+ Copyright (C) 1995-1997, 2000-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
@@ -32,6 +32,7 @@
#include "relocatable.h"
#include "basename.h"
#include "exit.h"
+#include "propername.h"
#include "xsetenv.h"
#define HAVE_SETLOCALE 1
@@ -137,8 +138,8 @@ main (int argc, char *argv[])
This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
"),
- "1995-1997, 2000-2005");
- printf (_("Written by %s.\n"), "Ulrich Drepper");
+ "1995-1997, 2000-2006");
+ printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper"));
exit (EXIT_SUCCESS);
}