-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jim Meyering wrote: > Eric Blake <[EMAIL PROTECTED]> wrote: >> According to Clytie Siddall on 10/24/2007 2:37 AM: >>> Hi :) >>> >>> I recently reviewed our translation of coreutils for the Translation >>> Project. I noticed the following errors, which I thought you might like >>> to fix in an upcoming release: >>> ___ >>> 1. This is a fatal error for msgfmt: >>> >>> #: src/expr.c:133 >>> #, c-format >>> msgid "" >>> "\n" >>> " ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n" >>> " ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n" >>> " ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n" >>> >>> A bare percentage sign in a c-format string will be reported as an error >>> in the translation. >> But the string in question occurs inside fputs, not printf. So why is >> xgettext marking it as c-format? Bruno? > > It *used to be* a format string. > Checking a .po file built from latest sources: > > $ grep -B6 ARG1.%.A po/vi.po|cut -c1-13 > #: src/expr.c > #, c-format
<snip> Yes, it used to be a format string; however, does xgettext know this? That is, the generated coreutils.pot file itself has #, c-format in it (on my system, with stock xgettext 0.16.1 from Ubuntu 7.04). Does xgettext just see the % and think "Oh, C format string"? If so, perhaps the heuristic could be adjusted a bit... - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHH5xB7M8hyUobTrERCN48AJ9RVwMeg5crlXY9fpoFZoxq+/wFwwCfXbPc 99CsK3kOaQ0iQNyco5gH7b0= =V+ye -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
