bug-coreutils
[Top][All Lists]
Advanced

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

Re: ls - locale format


From: Stéphane Raimbault
Subject: Re: ls - locale format
Date: Sun, 15 Mar 2009 01:45:33 +0100

Forget about my previous message, it was stupid (too much Python
recently :), the code checks for a translation and everyone must
provide a translation (identical or not) to use the locale format.

2009/3/15 Stéphane Raimbault <address@hidden>:
> Hi,
>
> I don't understand this code in ls.c:
>
> char const *locale_format = dcgettext (NULL, long_time_format[i], LC_TIME);
>
> if (locale_format == long_time_format[i])
>         goto case_long_iso_time_style;
>
> so if the translation is identical to the English message, the code jumps to
> long ISO time style, really strange!
>
> Does it mean it's impossible for English people to see the result of "%b %e
> %Y"?
>
> Stephane
>
> PS :
> static char const *long_time_format[2] =
>   {
>     N_("%b %e  %Y"),
>     N_("%b %e %H:%M")
>   };
>
>
>




reply via email to

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