GNU bug report logs - #11483
Problem with translation of coreutils 8.17

Previous Next

Package: coreutils;

Reported by: Primoz PETERLIN <primozz.peterlin <at> gmail.com>

Date: Tue, 15 May 2012 20:15:01 UTC

Severity: normal

Merged with 11470, 11471, 11472, 11494, 11740

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11483 in the body.
You can then email your comments to 11483 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#11483; Package coreutils. (Tue, 15 May 2012 20:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Primoz PETERLIN <primozz.peterlin <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 15 May 2012 20:15:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Primoz PETERLIN <primozz.peterlin <at> gmail.com>
To: bug-coreutils <at> gnu.org, translation-i18n <at> lists.sourceforge.net
Subject: Problem with translation of coreutils 8.17
Date: Tue, 15 May 2012 21:57:07 +0200
Hello,

Coreutils 8.17 introduced a small change in the message catalogue
which causes considerable problems to translators.

The part which causes problems is:

#: src/fmt.c:285
#, c-format
msgid ""
"  -t, --tagged-paragraph    indentation of first line different from second\n"
"  -u, --uniform-spacing     one space between words, two after sentences\n"
"  -w, --width=WIDTH         maximum line width (default of 75 columns)\n"
"  -g, --goal=WIDTH          goal width (default of 93% of width)\n"
msgstr ""

Apparently, msgfmt interprets "% o" in the help text of the --goal
option as a format specifier. This means that the translations will be
rejected unless the translation also contains the same sequence: %
being followed by a space, being followed by a small o.

All the best,
Primož




Information forwarded to bug-coreutils <at> gnu.org:
bug#11483; Package coreutils. (Tue, 15 May 2012 21:41:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Chusslove Illich <caslav.ilic <at> gmx.net>
To: translation-i18n <at> lists.sourceforge.net
Cc: bug-coreutils <at> gnu.org, Primoz PETERLIN <primozz.peterlin <at> gmail.com>
Subject: Re: [Translation-i18n] Problem with translation of coreutils 8.17
Date: Tue, 15 May 2012 23:14:53 +0200
[Message part 1 (text/plain, inline)]
> [: Primoz PETERLIN :]
> Apparently, msgfmt interprets "% o" in the help text of the --goal option
> as a format specifier.

When that happens, you add such a comment line just before the problematic
gettext call:

  /* xgettext: no-c-format */
  gettext("...93% of width...")

The extracted message will then have no-c-format flag instead of c-format,
thus not triggering format validation. This is documented in section 4.6 of
Gettext manual.

-- 
Chusslove Illich (Часлав Илић)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#11483; Package coreutils. (Wed, 16 May 2012 04:18:02 GMT) Full text and rfc822 format available.

Message #11 received at 11483 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Chusslove Illich <caslav.ilic <at> gmx.net>
Cc: translation-i18n <at> lists.sourceforge.net, primozz.peterlin <at> gmail.com,
	11483 <at> debbugs.gnu.org
Subject: Re: bug#11483: [Translation-i18n] Problem with translation of
	coreutils 8.17
Date: Tue, 15 May 2012 22:17:02 -0600
[Message part 1 (text/plain, inline)]
merge 11470 11483
thanks

On 05/15/2012 03:14 PM, Chusslove Illich wrote:
>> [: Primoz PETERLIN :]
>> Apparently, msgfmt interprets "% o" in the help text of the --goal option
>> as a format specifier.
> 
> When that happens, you add such a comment line just before the problematic
> gettext call:
> 
>   /* xgettext: no-c-format */
>   gettext("...93% of width...")
> 
> The extracted message will then have no-c-format flag instead of c-format,
> thus not triggering format validation. This is documented in section 4.6 of
> Gettext manual.

This is the fourth report of the same issue within 48 hours, and second
mention of the solution, but still no one has submitted the solution as
an actual patch.  We will get the problem fixed, but an actual patch
would make it easier.

-- 
Eric Blake   eblake <at> redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

Merged 11470 11471 11472 11483. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Wed, 16 May 2012 04:18:03 GMT) Full text and rfc822 format available.

Forcibly Merged 11470 11471 11472 11483 11494. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Wed, 16 May 2012 23:11:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 15 Jun 2012 11:24:02 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 19 Jun 2012 14:55:02 GMT) Full text and rfc822 format available.

Forcibly Merged 11470 11471 11472 11483 11494 11740. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 19 Jun 2012 14:55:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 18 Jul 2012 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.