Re: [JDBC] Chage driver locale. - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: [JDBC] Chage driver locale.
Date
Msg-id CADK3HHJEq1huhaRcfi3WUnxomUw2ZEFC+OawZa8YBckQxtm3yg@mail.gmail.com
Whole thread Raw
In response to [JDBC] Chage driver locale.  (Jean Dannemann <jean.carone@gmail.com>)
Responses Re: [JDBC] Chage driver locale.  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Re: Chage driver locale.  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
List 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 by date:

Previous
From: Jean Dannemann
Date:
Subject: Chage driver locale.
Next
From: Vladimir Sitnikov
Date:
Subject: Re: [JDBC] Chage driver locale.