Re: Chage driver locale.

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Jean Dannemann <jean(dot)carone(at)gmail(dot)com>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Chage driver locale.
Date: 2017-08-08 15:12:13
Message-ID: CADK3HHJEq1huhaRcfi3WUnxomUw2ZEFC+OawZa8YBckQxtm3yg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

My understanding is that this is set by the locale of the JVM ? But
candidly I have no direct experience with this.

Dave Cramer

davec(at)postgresintl(dot)com
www.postgresintl.com

On 8 August 2017 at 04:24, Jean Dannemann <jean(dot)carone(at)gmail(dot)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.
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2017-08-08 15:39:40 Re: Chage driver locale.
Previous Message Jean Dannemann 2017-08-08 11:24:30 Chage driver locale.