Discussion:
Force language from a different locale
Eric DE MAULDE
16 years ago
Permalink
Hi,

I would like to force default language into ecommerce application,
even if the browser is setted with another language and translations into the browser's language are available.

For example, my browser is setted with English language,
I want to display pages into French (by default, without change language)

Thanks


Eric
Jacques Le Roux
16 years ago
Permalink
Hi Eric,

You will have to force the JVM using -Duser.language=en (there is also -Duser.country=US for instance)
This was used for another reason in OFBiz before (actually a kind of Sun's bug)

Jacques

From: "Eric DE MAULDE" <***@free.fr>
Hi,

I would like to force default language into ecommerce application,
even if the browser is setted with another language and translations into the browser's language are available.

For example, my browser is setted with English language,
I want to display pages into French (by default, without change language)

Thanks


Eric
Eric DE MAULDE
16 years ago
Permalink
Hi Jacques,

Where can I type "-Duser.language=fr"
I tried into ${ofbiz dir}/rc.ofbiz

JAVA_VMOPTIONS="-Xms1024M -Xmx1024M -Duser.language=fr"

Always my ecommerce pages are in English with an English browser

Thanks

Eric

P.S. : my server is under Debian Etch, with the cron file
"rc.ofbiz.for.debian" ofbiz doesn't start when I boot my server.
When I restart ofbiz with this file, it works. With the file "rc.ofbiz" it
works in both case.

----- Original Message -----
From: "Jacques Le Roux" <***@les7arts.com>
To: <***@ofbiz.apache.org>
Sent: Friday, May 01, 2009 4:57 PM
Subject: Re: Force language from a different locale
...
Adrian Crum
16 years ago
Permalink
The command-line option won't work, because OFBiz sets the default locale when it starts up. The default locale is configured in start.properties.

-Adrian
...
Jacques Le Roux
16 years ago
Permalink
Ha yes, this has changed!

Thanks Adrian

Jacques
...
Eric DE MAULDE
16 years ago
Permalink
Hi Adrian,

I've configured start.properties with :

ofbiz.locale.default=fr

Always I have the same problem !
Do you have another idea ?

Thanks

Eric

----- Original Message -----
From: "Adrian Crum" <***@yahoo.com>
To: <***@ofbiz.apache.org>
Sent: Sunday, May 03, 2009 12:03 PM
Subject: Re: Force language from a different locale
...
Jacques Le Roux
16 years ago
Permalink
Hi Eric,

Did you check also in general.properties ?
locale.properties.fallback
locales.available

Jacques
...
Continue reading on narkive:
Loading...