View Single Post

   
  #2 (permalink)  
Old 04-12-2008, 06:38 AM
Euler Taveira de Oliveira
 
Posts: n/a
Default Re: Day and month name localization uses wrong locale category

Peter Eisentraut wrote:

> pei@bell:~$ date +%A
> Friday
>
> pei@bell:~$ LC_MESSAGES=de_DE@euro date +%A
> Friday
>
> pei@bell:~$ LC_TIME=de_DE@euro date +%A
> Freitag
>
> Is there no API to get the localized names from the C library so that LC_TIME
> takes effect?
>

What about using strftime()? So we couldn't worry about gettext
translations; "all" is localized.
Why didn't I think it before? :-)

I'll try to code a patch today later if noone objects.

PS> I was thinking about changing this for the same reasons Peter
pointed out; I didn't have the time to do it before.

--
Euler Taveira de Oliveira
http://www.timbira.com/


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply With Quote