On 2011/8/10 Martin Eberhard Schauer wrote: > Package: po4a > Version: 0.40.2 > Severity: normal > > Dear Nicolas, > > working on the translation of the manpages package I encountered the > following problem: > - a po file without fuzzy strings, > - calling po4a-translate fails with something that can be roughly translated > as "translation > of $name discarded, only $num translated, need $limit". > > I'm afraid it's an encoding issue (character with wrong encoding). I > remember to have had > similar problems working on the iso-8859-*.7 manpages. > > The problem can be reproduced with the two files attached. I run squeeze. > > ****************** > > po4a-translate -f man -m termcap-with-error.5 -p termcap-with-error.5.po > -v -d 1> /dev/null > > readpo(termcap-with-error.5.po)... done. > read(termcap-with-error.5)...done. > parse...done. > Die Übersetzung von termcap-with-error.5 wird verworfen (nur 37.5% > übersetzt; brauche 80%) > > po4a-translate -f man -m termcap-with-error.5 -p termcap-with-error.5.po > -v -d > > -> same output as above > > po4a-translate -f man -m termcap-with-error.5 -p termcap-with-error.5.po > -v -d -k 30 > > readpo(termcap-with-error.5.po)... done. > read(termcap-with-error.5)...done. > parse...done. > termcap-with-error.5 ist zu 37.5% übersetzt (3 von 8 Zeichenketten). > .\"******************************************************************* > .\" > .\" This file was generated with po4a. Translate the source file. > .\" > .\"******************************************************************* > .TH TERMCAP 5 1996\-10\-21 Linux "Linux Programmer's Manual" > .SH "SIEHE AUCH" > \fBncurses\fP(3), \fBtermcap\fP(3), \fBterminfo\fP(5) > .SH KOLOPHON > This page is part of release 3.32 of the Linux \fIman\-pages\fP project. A > description of the project, and information about reporting bugs, can be > found at http://www.kernel.org/doc/man\-pages/. > > But: > > msgfmt -cv termcap-with-error.5.po > 4 übersetzte Meldungen. > > *******************
Hello Martin, There is no bug, your PO file is not complete, it contains only 4 strings but po4a finds 8 translatable strings in the manual page (and 1 string is fuzzy because your PO file contains "release 3.29" and manual page contains "release 3.32"). $ po4a-updatepo -f man -m termcap-with-error.5 -p termcap-with-error.5.po ........ done. $ msgfmt -cv termcap-with-error.5.po 3 translated messages, 1 fuzzy translation, 4 untranslated messages. Denis -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org