This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [glibc x gettext] Bad po files ?
Ulrich Drepper <drepper@redhat.com> writes:
> Andreas Jaeger <aj@suse.de> writes:
>
> > If we leave it as it is, we'll get swamped with bug reports when we
> > release glibc 2.2.3 since installation aborts when the po file is not
> > uptodate.
>
> Then el.po will not be installed. If nobody cares to fix it that
> should be just fine. But a comment in the .po file describing the
> problem and don't install it.
That's an even better idea.
Here's a patch that I've just tested and which removes the two broken
languages. The other languages are fine.
Ok to commit?
Andreas
2001-04-19 Andreas Jaeger <aj@suse.de>
* po/el.po: Add comment explaining what's broken.
* po/zh_TW.po: Likewise.
* po/Makefile (BROKEN_LINGUAS): New.
(ALL_LINGUAS): Don't add broken languages.
============================================================
Index: po/Makefile
--- po/Makefile 1999/09/13 08:48:40 1.17
+++ po/Makefile 2001/04/19 17:24:50
@@ -1,4 +1,4 @@
-# Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999, 2001 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@@ -20,8 +20,12 @@
subdir := po
+# List of languages that are currently broken (just run msgfmt from
+# GNU gettext 0.10.36 on them to see why)
+BROKEN_LINGUAS = el zh_TW
+
# List of languages for which we have message catalogs of translations.
-ALL_LINGUAS := $(basename $(wildcard *.po))
+ALL_LINGUAS := $(filter-out $(BROKEN_LINGUAS),$(basename $(wildcard *.po)))
# You can override this in configparms or the make command line to limit
# the languages which get installed.
============================================================
Index: po/el.po
--- po/el.po 2000/09/06 22:41:41 1.3
+++ po/el.po 2001/04/19 17:35:25
@@ -3,6 +3,12 @@
# Mavroyanopoulos Nikos <nmav@hellug.gr>, 1999, 2000.
# Simos Xenitellis <S.Xenitellis@rhbnc.ac.uk>, 1999, 2000.
#
+# This file is currently not installed since it contains illegal
+# multibyte characters. Just run either of these:
+# $ iconv -f iso-8859-7 -t utf-8 < el.po > /dev/null
+# $ msgfmt el.po -o el.gmo
+# to see the errors.
+#
msgid ""
msgstr ""
"Project-Id-Version: libc 2.1.3\n"
============================================================
Index: po/zh_TW.po
--- po/zh_TW.po 2000/08/28 07:56:32 1.1
+++ po/zh_TW.po 2001/04/19 17:35:31
@@ -2,6 +2,11 @@
# Copyright (C) 2000 Free Software Foundation, Inc.
# Tung-Han Hsieh <thhsieh@linux.org.tw>, 2000
# Yuan-Chung Cheng <platin@ch.ntu.edu.tw>, 2000
+# This file is currently not installed since it contains illegal
+# multibyte characters. Just run either of these:
+# $ msgfmt zh_TW.po -o zh_TW.gmo
+# $ iconv --from-code=big5 --to-code=iso-8859-1 zh_TW.po -o output
+# to see the errors.
#
msgid ""
msgstr ""
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj