Re: [JDBC] Chage driver locale.

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: [JDBC] Chage driver locale.
Дата
Msg-id CADK3HHJEq1huhaRcfi3WUnxomUw2ZEFC+OawZa8YBckQxtm3yg@mail.gmail.com
обсуждение исходный текст
Ответ на [JDBC] Chage driver locale.  (Jean Dannemann <jean.carone@gmail.com>)
Ответы Re: [JDBC] Chage driver locale.  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Re: Chage driver locale.  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Список pgsql-jdbc
My understanding is that this is set by the locale of the JVM ? But candidly I have no direct experience with this.


On 8 August 2017 at 04:24, Jean Dannemann <jean.carone@gmail.com> wrote:
Hi.

I just realized that the PostgreSQL JDBC JAR contains a package called org.postgresql.translation with the messages translations for many countries.

How do I change the JDBC driver's locale? I would like to have portuguese messages (pt_BR).

I've tried with "-Duser.language=xx -Duser.region=YY" on catalina.bat but it did not worked.

PS: I have postgresql-42.1.4.jar in the lib directory of my Tomcat server and my application obtains the database connection via JNDI.

Thanks in advance.

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

Предыдущее
От: Jean Dannemann
Дата:
Сообщение: Chage driver locale.
Следующее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: [JDBC] Chage driver locale.