Re: BUG #4186: set lc_messages does not work

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: "Thomas H(dot)" <me(at)alternize(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4186: set lc_messages does not work
Date: 2008-05-29 08:34:14
Message-ID: 20080529103414.13e34df0@mha-laptop.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Thomas H. wrote:
> From: Thomas H. <me(at)alternize(dot)com>
> > what i noticed: if i delete the folder share/locale/de/ the system
> > messages are back to english - but that can't be THE solution, can
> > it? :)
>
> well, it actually was the solution, at least to the weird part of the
> problem:
>
> there are two versions of win32 binaries available on postgres.org.
> there's the installer msi version, and there is the installerless zip
> version.
>
> the installer version does NOT install the folder "share/locale/"! so
> when using the msi installer, postgres has no translations at all -
> thus the fallback to english.

Are you sure you didn't just skip enabling National Language Support?
It's not included by default, but should be available.

> so at least that explains the "changed" behaviour. nevertheless,
> LC_MESSAGES seems to be defunct - with the "locale" folder present,
> pg always picks the os' language and ignores the lc_message value.

This looks like I can reproduce though, at least on cvs head. Did this
work for you in previous versions?

//Magnus

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas H. 2008-05-29 11:23:21 Re: BUG #4186: set lc_messages does not work
Previous Message Dave Page 2008-05-29 08:33:26 Re: BUG #4186: set lc_messages does not work

Browse pgsql-hackers by date

  From Date Subject
Next Message Guillaume Smet 2008-05-29 08:41:48 Re: Upcoming back-branch update releases
Previous Message Dave Page 2008-05-29 08:33:26 Re: BUG #4186: set lc_messages does not work