[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettext, msgfmt -c printf reordering
From: |
Werner Koch |
Subject: |
Re: gettext, msgfmt -c printf reordering |
Date: |
Mon, 22 Apr 2002 21:09:57 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-debian-linux-gnu) |
On Mon, 22 Apr 2002 17:29:05 +0200, Andreas Schwab said:
> You didn't specify a position for "*" in "%1$.*s".
Can you give me a hint on how to do that? The glibc manual does not
give a hint on this:
% [ PARAM-NO $] FLAGS WIDTH [ . PRECISION ] TYPE CONVERSION
Posix says, one should do something like this:
printf("%1$d:%2$.*3$d:%4$.*3$d\n", hour, min, precision, sec);
However it does not work for me:
#: g10/passphrase.c:521
#, c-format
msgid ""
"You need a passphrase to unlock the secret key for user:\n"
"\"%.*s\"\n"
"%u-bit %s key, ID %08lX, created %s%s\n"
msgstr ""
"Necesita una contraseƱa para desbloquear la clave secreta\n"
"del usuario: \"%1$.*2$s\"\n"
"clave %4$s de %3$u bits, ID %5$08lX, creada el %6$s%7$s\n"
cd /home/wk/work/gnupg-stable/po/
msgfmt --statistics -c -v -o /dev/null /home/wk/work/gnupg-stable/po/es.po
/home/wk/work/gnupg-stable/po/es.po:3413: format specifications for argument 1
are not the same
found 1 fatal error
Werner
- gettext, msgfmt -c printf reordering, Werner Koch, 2002/04/22
- Re: gettext, msgfmt -c printf reordering, Andreas Schwab, 2002/04/22
- Re: gettext, msgfmt -c printf reordering, Werner Koch, 2002/04/22
- Re: gettext, msgfmt -c printf reordering, Andreas Schwab, 2002/04/22
- Re: gettext, msgfmt -c printf reordering, Werner Koch, 2002/04/22
- Re: gettext, msgfmt -c printf reordering, Andreas Schwab, 2002/04/22
- Re: gettext, msgfmt -c printf reordering,
Werner Koch <=
- Re: gettext, msgfmt -c printf reordering, Andreas Schwab, 2002/04/22
- Re: gettext, msgfmt -c printf reordering, Werner Koch, 2002/04/22
- Re: gettext, msgfmt -c printf reordering, Ulrich Drepper, 2002/04/22