Can't change language through LC_MESSAGES

Started by Thomas Kellererover 20 years ago4 messagesgeneral
Jump to latest
#1Thomas Kellerer
spam_eater@gmx.net

Hello all,

I'm trying to change the server messages back to english (initdb created
'German_Germany.1251' because I'm running a German Windows) by setting
the lc_messages property to 'C'. But the messages from e.g. pgsql or
pg_ctl still show up in German. I reloaded the config and I restarted
the PG service but to no avail. I also tried 'English' and 'POSIX' but
none of them changed the messages language.

I have now simply removed the locale subdirectory in $PGHOME/share and
that worked, but this doesn't feel right :)

What am I missing here?

Best regards
Thomas

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Thomas Kellerer (#1)
Re: Can't change language through LC_MESSAGES

Thomas Kellerer <spam_eater@gmx.net> writes:

I'm trying to change the server messages back to english (initdb created
'German_Germany.1251' because I'm running a German Windows) by setting
the lc_messages property to 'C'. But the messages from e.g. pgsql or
pg_ctl still show up in German.

What PG version is that, and on exactly what version of Windows? There
are some ugly Windows-specific kluges in pg_locale.c ... maybe your copy
doesn't have them, or the code still doesn't work on your Windows
version.

regards, tom lane

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Thomas Kellerer (#1)
Re: Can't change language through LC_MESSAGES

Am Dienstag, 27. September 2005 00:44 schrieb Thomas Kellerer:

I'm trying to change the server messages back to english (initdb created
'German_Germany.1251' because I'm running a German Windows) by setting
the lc_messages property to 'C'. But the messages from e.g. pgsql or
pg_ctl still show up in German.

The server configuration only affects the server. The other programs take the
language from the environment.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#4Thomas Kellerer
spam_eater@gmx.net
In reply to: Tom Lane (#2)
Re: Can't change language through LC_MESSAGES

Tom Lane wrote on 27.09.2005 03:19:

Thomas Kellerer <spam_eater@gmx.net> writes:

I'm trying to change the server messages back to english (initdb created
'German_Germany.1251' because I'm running a German Windows) by setting
the lc_messages property to 'C'. But the messages from e.g. pgsql or
pg_ctl still show up in German.

What PG version is that, and on exactly what version of Windows? There
are some ugly Windows-specific kluges in pg_locale.c ... maybe your copy
doesn't have them, or the code still doesn't work on your Windows
version.

Sorry for not posting that right away.
It's PG 8.0.3 and Windows 2000 (German)

Regards
Thomas