Re: libpq messages language

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: libpq messages language
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C2A0B776@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на libpq messages language  (Efraín López <tecnomaya@cabsagt.com>)
Список pgsql-general
Efraín López wrote:
> I am using Windows, and pg 8.2.5
>
> When making a connection with libpq, if it fails I would like
> to get the errors messages in spanish (PQerrorMessage  )
>
> Is this possible? How can this be done?

Set the program's locale prior to calling libpq functions.

I did not try it on Windows, but Microsoft seems to work like
UNIX in that respect:

http://msdn2.microsoft.com/en-us/library/x99tb11d(VS.80).aspx

Try something like

setlocale(LC_MESSAGES, "Spanish");

or, if your language environment is Spanish, simply

setlocale(LC_MESSAGES, "");

Yours,
Laurenz Albe

В списке pgsql-general по дате отправления:

Предыдущее
От: "Christian Rengstl"
Дата:
Сообщение: Re: Archiving problem on Windows
Следующее
От: Michelle Konzack
Дата:
Сообщение: Re: 1 cluster on several servers