+2001-03-11 Bruno Haible <haible@clisp.cons.org>
+
+ * configure.in: Pass 'need-ngettext' to AM_GNU_GETTEXT.
+
2001-03-11 Bruno Haible <haible@clisp.cons.org>
* configure.in (ALL_LINGUAS): Add en@quot and en@boldquot.
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.13)
-AC_REVISION($Revision: 1.16 $)
+AC_REVISION($Revision: 1.17 $)
AC_INIT(src/msgfmt.c)
AM_INIT_AUTOMAKE(gettext, 0.10.36)
RELEASE_DATE=2001-03-09 dnl in "date +%Y-%m-%d" format
dnl These are the only lines required to internationalize the package.
dnl (OK, not quite, the AC_OUTPUT has also some parts.)
-AM_GNU_GETTEXT(use-libtool)
+AM_GNU_GETTEXT(use-libtool, need-ngettext)
dnl Check for Emacs and where to install .elc files.
AM_PATH_LISPDIR
+2001-03-11 Bruno Haible <haible@clisp.cons.org>
+
+ * po-lex.c (lex_close): Use ngettext and plural-form message.
+ * msgcmp.c (compare): Likewise.
+ * msgfmt.c (main): Likewise.
+
2001-03-10 Bruno Haible <haible@clisp.cons.org>
* po.c (po_callback_message): Cast %*s argument from size_t to int.
/* Exit with status 1 on any error. */
if (nerrors > 0)
- error (EXIT_FAILURE, 0, _("found %d fatal errors"), nerrors);
+ error (EXIT_FAILURE, 0,
+ ngettext ("found %d fatal error", "found %d fatal errors", nerrors),
+ nerrors);
}
/* Print statistics if requested. */
if (verbose_level > 0 || do_statistics)
{
- fprintf (stderr, _("%d translated messages"), msgs_translated);
+ fprintf (stderr,
+ ngettext ("%d translated message", "%d translated messages",
+ msgs_translated),
+ msgs_translated);
if (msgs_fuzzy > 0)
- fprintf (stderr, _(", %d fuzzy translations"), msgs_fuzzy);
+ fprintf (stderr,
+ ngettext (", %d fuzzy translation", ", %d fuzzy translations",
+ msgs_fuzzy),
+ msgs_fuzzy);
if (msgs_untranslated > 0)
- fprintf (stderr, _(", %d untranslated messages"), msgs_untranslated);
+ fprintf (stderr,
+ ngettext (", %d untranslated message",
+ ", %d untranslated messages",
+ msgs_untranslated),
+ msgs_untranslated);
fputs (".\n", stderr);
}
lex_close ()
{
if (error_message_count > 0)
- error (EXIT_FAILURE, 0, _("found %d fatal errors"), error_message_count);
+ error (EXIT_FAILURE, 0,
+ ngettext ("found %d fatal error", "found %d fatal errors",
+ error_message_count),
+ error_message_count);
if (fp != stdin)
fclose (fp);
+2001-03-10 Bruno Haible <haible@clisp.cons.org>
+
+ * msgcmp-2: Expect a singular error message.
+ * msgmerge-2: Likewise.
+ * xg-test1.ok.po: Regenerated.
+
2001-03-10 Bruno Haible <haible@clisp.cons.org>
* Makefile.am (LDADD): Define depending on @USE_INCLUDED_LIBINTL@.
mc-test2.in2:1: this message is used but not defined...
mc-test2.in1:3: ...but this definition is similar
mc-test2.in1:4: warning: this message is not used
-found 1 fatal errors
+found 1 fatal error
EOF
: ${DIFF=diff}
cat << EOF > mm-test2.ok
mm-test2.in1:3: duplicate message definition
mm-test2.in1:1: ...this is the location of the first definition
-found 1 fatal errors
+found 1 fatal error
EOF
: ${DIFF=diff}