You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Sven Wesley <sv...@gmail.com> on 2009/02/11 00:59:42 UTC

Odd locale behaviour

Hi all,

I have an instance that later on will be used for e-shopping, There's also a
half done Swedish translation. The store locale is set to sv_SE,
In general.properties I have
  locale.properties.fallback=en
  locales.available=sv

And in start.properties I have
  ofbiz.locale.default=sv

Despite that, everything is shown in English. If I change the
general.properties to "locales.available=sv,de" so I actually can change to
Swedish with brute force as a user - it will work!
Am I missing something? I had the translation working before in my test lab.

Regards,
Sven

Re: Odd locale behaviour

Posted by Sven Wesley <sv...@gmail.com>.
Ah, that would be the answer then. The changes in general.properties did
take effect when I cleaned everything, but as you write clearing the cache
would probably do it.

--S


2009/2/11 Adrian Crum <ad...@hlmksw.com>

> There is no need to do a clean or build after you make properties changes.
> In the case of start.properties, all that is needed is restarting OFBiz -
> since the properties are read during startup. Most other properties can be
> reloaded by clearing the cache.
>
> -Adrian
>
>
> Sven Wesley wrote:
>
>> They were both set to correct language, but I did a serious clean and then
>> it actually worked as expected. The ant-script doesn't seem to rebuild on
>> property-changes?
>>
>> 2009/2/11 Adrian Crum <ad...@hlmksw.com>
>>
>>  The locales.available property in general.properties only controls which
>>> locales are displayed for the user to choose from. It does not control
>>> the
>>> default locale.
>>>
>>> The default locale is defined by the ofbiz.locale.default property in
>>> start.properties.
>>>
>>> -Adrian
>>>
>>>
>>> Sven Wesley wrote:
>>>
>>>  Hi all,
>>>>
>>>> I have an instance that later on will be used for e-shopping, There's
>>>> also
>>>> a
>>>> half done Swedish translation. The store locale is set to sv_SE,
>>>> In general.properties I have
>>>>  locale.properties.fallback=en
>>>>  locales.available=sv
>>>>
>>>> And in start.properties I have
>>>>  ofbiz.locale.default=sv
>>>>
>>>> Despite that, everything is shown in English. If I change the
>>>> general.properties to "locales.available=sv,de" so I actually can change
>>>> to
>>>> Swedish with brute force as a user - it will work!
>>>> Am I missing something? I had the translation working before in my test
>>>> lab.
>>>>
>>>> Regards,
>>>> Sven
>>>>
>>>>
>>>>
>>

Re: Odd locale behaviour

Posted by Adrian Crum <ad...@hlmksw.com>.
There is no need to do a clean or build after you make properties 
changes. In the case of start.properties, all that is needed is 
restarting OFBiz - since the properties are read during startup. Most 
other properties can be reloaded by clearing the cache.

-Adrian

Sven Wesley wrote:
> They were both set to correct language, but I did a serious clean and then
> it actually worked as expected. The ant-script doesn't seem to rebuild on
> property-changes?
> 
> 2009/2/11 Adrian Crum <ad...@hlmksw.com>
> 
>> The locales.available property in general.properties only controls which
>> locales are displayed for the user to choose from. It does not control the
>> default locale.
>>
>> The default locale is defined by the ofbiz.locale.default property in
>> start.properties.
>>
>> -Adrian
>>
>>
>> Sven Wesley wrote:
>>
>>> Hi all,
>>>
>>> I have an instance that later on will be used for e-shopping, There's also
>>> a
>>> half done Swedish translation. The store locale is set to sv_SE,
>>> In general.properties I have
>>>  locale.properties.fallback=en
>>>  locales.available=sv
>>>
>>> And in start.properties I have
>>>  ofbiz.locale.default=sv
>>>
>>> Despite that, everything is shown in English. If I change the
>>> general.properties to "locales.available=sv,de" so I actually can change
>>> to
>>> Swedish with brute force as a user - it will work!
>>> Am I missing something? I had the translation working before in my test
>>> lab.
>>>
>>> Regards,
>>> Sven
>>>
>>>
> 

Re: Odd locale behaviour

Posted by Jacques Le Roux <ja...@les7arts.com>.
Does not seem related, did you have a look at cache.properties ?

Jacques

From: "Sven Wesley" <sv...@gmail.com>
> They were both set to correct language, but I did a serious clean and then
> it actually worked as expected. The ant-script doesn't seem to rebuild on
> property-changes?
> 
> 2009/2/11 Adrian Crum <ad...@hlmksw.com>
> 
>> The locales.available property in general.properties only controls which
>> locales are displayed for the user to choose from. It does not control the
>> default locale.
>>
>> The default locale is defined by the ofbiz.locale.default property in
>> start.properties.
>>
>> -Adrian
>>
>>
>> Sven Wesley wrote:
>>
>>> Hi all,
>>>
>>> I have an instance that later on will be used for e-shopping, There's also
>>> a
>>> half done Swedish translation. The store locale is set to sv_SE,
>>> In general.properties I have
>>>  locale.properties.fallback=en
>>>  locales.available=sv
>>>
>>> And in start.properties I have
>>>  ofbiz.locale.default=sv
>>>
>>> Despite that, everything is shown in English. If I change the
>>> general.properties to "locales.available=sv,de" so I actually can change
>>> to
>>> Swedish with brute force as a user - it will work!
>>> Am I missing something? I had the translation working before in my test
>>> lab.
>>>
>>> Regards,
>>> Sven
>>>
>>>
>


Re: Odd locale behaviour

Posted by Sven Wesley <sv...@gmail.com>.
They were both set to correct language, but I did a serious clean and then
it actually worked as expected. The ant-script doesn't seem to rebuild on
property-changes?

2009/2/11 Adrian Crum <ad...@hlmksw.com>

> The locales.available property in general.properties only controls which
> locales are displayed for the user to choose from. It does not control the
> default locale.
>
> The default locale is defined by the ofbiz.locale.default property in
> start.properties.
>
> -Adrian
>
>
> Sven Wesley wrote:
>
>> Hi all,
>>
>> I have an instance that later on will be used for e-shopping, There's also
>> a
>> half done Swedish translation. The store locale is set to sv_SE,
>> In general.properties I have
>>  locale.properties.fallback=en
>>  locales.available=sv
>>
>> And in start.properties I have
>>  ofbiz.locale.default=sv
>>
>> Despite that, everything is shown in English. If I change the
>> general.properties to "locales.available=sv,de" so I actually can change
>> to
>> Swedish with brute force as a user - it will work!
>> Am I missing something? I had the translation working before in my test
>> lab.
>>
>> Regards,
>> Sven
>>
>>

Re: Odd locale behaviour

Posted by Adrian Crum <ad...@hlmksw.com>.
The locales.available property in general.properties only controls which 
locales are displayed for the user to choose from. It does not control 
the default locale.

The default locale is defined by the ofbiz.locale.default property in 
start.properties.

-Adrian

Sven Wesley wrote:
> Hi all,
> 
> I have an instance that later on will be used for e-shopping, There's also a
> half done Swedish translation. The store locale is set to sv_SE,
> In general.properties I have
>   locale.properties.fallback=en
>   locales.available=sv
> 
> And in start.properties I have
>   ofbiz.locale.default=sv
> 
> Despite that, everything is shown in English. If I change the
> general.properties to "locales.available=sv,de" so I actually can change to
> Swedish with brute force as a user - it will work!
> Am I missing something? I had the translation working before in my test lab.
> 
> Regards,
> Sven
>