Re: [PATCH] Use named parameters for translatable strings with multiple params.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/01/2009 06:48 AM, David Cantrell wrote:
> This is a cleanup for the po files.  xgettext displays the following
> messages for some Python files:
> 
> warning: 'msgid' format string with unnamed arguments cannot be properly localized:
>          The translator cannot reorder the arguments.
>          Please consider using a format string with named arguments,
>          and a mapping instead of a tuple for the arguments.
> 
> This patch modifies the reported format strings to use named parameters
> per the warning message.  We were already using these style format
> strings in users.py and possibly other files.  Basically when there is
> more than one parameter in the format string, we should use a hash table
> with named parameters.
> ---

>  storage/zfcp.py                  |   91 +++++++++++++++++++++++--------------

The changes to zfcp look good. Thank you for cleaning up the messages.

Steffen

Linux on System z Development

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Erich Baier
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux