Discussion:
Force language from a different locale
Eric DE MAULDE
2009-05-01 14:17:15 UTC
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
2009-05-01 14:57:46 UTC
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
2009-05-03 09:52:02 UTC
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
Post by Jacques Le Roux
Hi Eric,
You will have to force the JVM using -Duser.language=en (there is
lso -Duser.country=US for instance)
This was used for another reason in OFBiz before (actually a kind of Sun's bug)
Jacques
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
Adrian Crum
2009-05-03 10:03:16 UTC
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
Post by Eric DE MAULDE
Subject: Re: Force language from a different locale
Date: Sunday, May 3, 2009, 2:52 AM
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
Sent: Friday, May 01, 2009 4:57 PM
Subject: Re: Force language from a different locale
Post by Jacques Le Roux
Hi Eric,
You will have to force the JVM using
-Duser.language=en (there is lso -Duser.country=US for
instance)
Post by Jacques Le Roux
This was used for another reason in OFBiz before
(actually a kind of Sun's bug)
Post by Jacques Le Roux
Jacques
From: "Eric DE MAULDE"
Hi,
I would like to force default language into ecommerce
application,
Post by Jacques Le Roux
even if the browser is setted with another language
and translations into the browser's language are
available.
Post by Jacques Le Roux
For example, my browser is setted with English
language,
Post by Jacques Le Roux
I want to display pages into French (by default,
without change language)
Post by Jacques Le Roux
Thanks
Eric
Jacques Le Roux
2009-05-03 15:11:00 UTC
Permalink
Ha yes, this has changed!

Thanks Adrian

Jacques
Post by Adrian Crum
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
Post by Eric DE MAULDE
Subject: Re: Force language from a different locale
Date: Sunday, May 3, 2009, 2:52 AM
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
Sent: Friday, May 01, 2009 4:57 PM
Subject: Re: Force language from a different locale
Post by Jacques Le Roux
Hi Eric,
You will have to force the JVM using
-Duser.language=en (there is lso -Duser.country=US for
instance)
Post by Jacques Le Roux
This was used for another reason in OFBiz before
(actually a kind of Sun's bug)
Post by Jacques Le Roux
Jacques
From: "Eric DE MAULDE"
Hi,
I would like to force default language into ecommerce
application,
Post by Jacques Le Roux
even if the browser is setted with another language
and translations into the browser's language are
available.
Post by Jacques Le Roux
For example, my browser is setted with English
language,
Post by Jacques Le Roux
I want to display pages into French (by default,
without change language)
Post by Jacques Le Roux
Thanks
Eric
Eric DE MAULDE
2009-05-04 08:35:16 UTC
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
Post by Adrian Crum
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
Post by Eric DE MAULDE
Subject: Re: Force language from a different locale
Date: Sunday, May 3, 2009, 2:52 AM
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
Sent: Friday, May 01, 2009 4:57 PM
Subject: Re: Force language from a different locale
Post by Jacques Le Roux
Hi Eric,
You will have to force the JVM using
-Duser.language=en (there is lso -Duser.country=US for
instance)
Post by Jacques Le Roux
This was used for another reason in OFBiz before
(actually a kind of Sun's bug)
Post by Jacques Le Roux
Jacques
From: "Eric DE MAULDE"
Hi,
I would like to force default language into ecommerce
application,
Post by Jacques Le Roux
even if the browser is setted with another language
and translations into the browser's language are
available.
Post by Jacques Le Roux
For example, my browser is setted with English
language,
Post by Jacques Le Roux
I want to display pages into French (by default,
without change language)
Post by Jacques Le Roux
Thanks
Eric
Jacques Le Roux
2009-05-07 14:20:53 UTC
Permalink
Hi Eric,

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

Jacques
Post by Eric DE MAULDE
Hi Adrian,
ofbiz.locale.default=fr
Always I have the same problem !
Do you have another idea ?
Thanks
Eric
----- Original Message -----
Sent: Sunday, May 03, 2009 12:03 PM
Subject: Re: Force language from a different locale
Post by Adrian Crum
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
Post by Eric DE MAULDE
Subject: Re: Force language from a different locale
Date: Sunday, May 3, 2009, 2:52 AM
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
Sent: Friday, May 01, 2009 4:57 PM
Subject: Re: Force language from a different locale
Post by Jacques Le Roux
Hi Eric,
You will have to force the JVM using
-Duser.language=en (there is lso -Duser.country=US for
instance)
Post by Jacques Le Roux
This was used for another reason in OFBiz before
(actually a kind of Sun's bug)
Post by Jacques Le Roux
Jacques
From: "Eric DE MAULDE"
Hi,
I would like to force default language into ecommerce
application,
Post by Jacques Le Roux
even if the browser is setted with another language
and translations into the browser's language are
available.
Post by Jacques Le Roux
For example, my browser is setted with English
language,
Post by Jacques Le Roux
I want to display pages into French (by default,
without change language)
Post by Jacques Le Roux
Thanks
Eric
Continue reading on narkive:
Loading...