Changing Locale

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing Locale

Tushar Abhyankar
Hi All,

         I wanted to change the locale from en_US to en_GB. I did that by
setting locales.availabe=en_GB in general.properties but I still got the
locale as en_US, then I modified the locales property of my browser and set
its language to en_GB and it worked.

 

I have two questions regarding this

 

1)       How I would be able to use the locale irrespective of the browser
settings?

2)       I used the "<date-time>" tag in form widget and it still showed the
date format as mm/dd/yyyy instead of dd/mm/yyyy. How to make date-time work
for the set locale?

 

Regards,

Tushar Abhyankar.            

Reply | Threaded
Open this post in threaded view
|

Re: Changing Locale

Adrian Crum
We need to know what revision of OFBiz you are using and what steps you
are taking. In other words, we don't have enough information to answer
your question.

In the meantime, here is some information that may be helpful:

1. There was work done recently to improve the locale support in OFBiz.
Try checking out the latest revision.
2. There are several factors that affect the locale - the default
locale, the available locales, and the user's preferences.
3. A server default locale can be specified in start.properties. If the
user doesn't select a locale, the default locale will be used.
4. The list of available locales presented to the user can be configured
in general.properties. This is used to limit the size of the list of
available locales displayed on the Change Locale screen.
5. OFBiz will always display date & time fields as yyyy-mm-dd
hh:mm:ss.SSS regardless of the locale the user selected. This was a
design decision intended to keep date/time entry consistent across locales.

-Adrian

Tushar Abhyankar wrote:

> Hi All,
>
>          I wanted to change the locale from en_US to en_GB. I did that by
> setting locales.availabe=en_GB in general.properties but I still got the
> locale as en_US, then I modified the locales property of my browser and set
> its language to en_GB and it worked.
>
>  
>
> I have two questions regarding this
>
>  
>
> 1)       How I would be able to use the locale irrespective of the browser
> settings?
>
> 2)       I used the "<date-time>" tag in form widget and it still showed the
> date format as mm/dd/yyyy instead of dd/mm/yyyy. How to make date-time work
> for the set locale?
>
>  
>
> Regards,
>
> Tushar Abhyankar.            
>
>