pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: funnybonn40@yahoo.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7796: LC_MESSAGES
Date: Wed, 30 Jan 2013 09:28:43 -0500
Message-ID: <51092E1B.3040907@gmx.net> (raw)
In-Reply-To: <E1Ts49d-0001be-LO@wrigleys.postgresql.org>
References: <E1Ts49d-0001be-LO@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 1/6/13 11:17 PM, funnybonn40@yahoo.com wrote:
> 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   "

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-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <51092E1B.3040907@gmx.net>
Permalink:  ../51092E1B.3040907@gmx.net/
Also on:    postgresql.org/message-id/51092E1B.3040907@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter_e@gmx.net, funnybonn40@yahoo.com
  Subject: Re: BUG #7796: LC_MESSAGES
  In-Reply-To: <51092E1B.3040907@gmx.net>
  References: <E1Ts49d-0001be-LO@wrigleys.postgresql.org> <51092E1B.3040907@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox