bug-coreutils
[Top][All Lists]
Advanced

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

Re: ls - French translation of N_("%b %e %Y")


From: Eric Blake
Subject: Re: ls - French translation of N_("%b %e %Y")
Date: Sat, 14 Mar 2009 21:17:11 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666

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

According to Stéphane Raimbault on 3/14/2009 6:57 PM:
> Hi,
> 
> It's not possible to translate this string in French and to keep the
> columns aligned because in French the month abbreviations are variable
> from 3 to 5 characters:

GNU strftime obeys POSIX 2008, and thus allows for width modifiers.
Therefore, you can write things like %5b to write the month abbreviation
that will occupy 5 spaces, which takes care of adding extra spacing for
short months while still allowing the a fixed-width date string to have
nice overall alignment.  However, if all of the entries have a short
month, it still results in a larger spacing in the middle of the date, but
I'm not sure how easy it would be to patch the code to handle
adaptive-width date strings.

- --
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

iEYEARECAAYFAkm8czcACgkQ84KuGfSFAYC66gCgzmJhOY0rLI1S6309AMuBtcYr
mn4An0eLRgaBdvR4PaKFVejLJlxisM+K
=y88r
-----END PGP SIGNATURE-----




reply via email to

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