bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] df: add comments to help translators align column headers


From: Eric Blake
Subject: Re: [PATCH] df: add comments to help translators align column headers
Date: Fri, 01 Jan 2010 06:39:32 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jim Meyering on 1/1/2010 4:02 AM:
>    if (inode_format)
> +    /* TRANSLATORS:
> +       For best results (df header/column alignment), ensure that
> +       your translation has the same length as the original.
> +       Also, each column name translation should end at the same
> +       column as the corresponding original.  */
>      printf (_("    Inodes   IUsed   IFree IUse%%"));

Why are we using printf instead of [f]puts on this line?  Isn't the
general policy to avoid the overhead of printf when there are no format
specifiers (other than the %%, which can be simplified to % for puts)?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAks9+xQACgkQ84KuGfSFAYAq7gCfaABwWrVm2EVY5CDDo7Cm/XSF
GecAnA3n6HWtEkz2GvylcUc/YarZSvO+
=vEDl
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]