Discussion:
BUG #7796: LC_MESSAGES
(too old to reply)
f***@yahoo.com
2013-01-07 04:17:41 UTC
Permalink
The following bug has been logged on the website:

Bug reference: 7796
Logged by: Michael
Email address: ***@yahoo.com
PostgreSQL version: 9.1.7
Operating system: Windows 7
Description:

Hello, my engish is not so good, but i try to describe what seems not to
work. Could it be, that the LC_MESSANGES for months and days like

Months
------
Janary=Januar
February=Februar

Days
----
monday=Montag
Thursdat=Dienstag


not implemented for German? I execute this command:
set datestyle to german
But the result of following query is:
select to_char(current_timestamp,'DAY');
"MONDAY "

Best regards

Michael
--
Sent via pgsql-bugs mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Peter Eisentraut
2013-01-30 14:28:43 UTC
Permalink
Post by f***@yahoo.com
Hello, my engish is not so good, but i try to describe what seems not to
work. Could it be, that the LC_MESSANGES for months and days like
Months
------
Janary=Januar
February=Februar
Days
----
monday=Montag
Thursdat=Dienstag
set datestyle to german
select to_char(current_timestamp,'DAY');
"MONDAY "
You need to use the TM modifier to get translated results, and you need
to set lc_time, not lc_messages.

select to_char(current_timestamp,'TMDAY');
to_char
──────────
MITTWOCH
--
Sent via pgsql-bugs mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Loading...