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 |
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 > |
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 <[hidden email]> > 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 >> >> |
Administrator
|
Does not seem related, did you have a look at cache.properties ?
Jacques From: "Sven Wesley" <[hidden email]> > 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 <[hidden email]> > >> 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 >>> >>> > |
In reply to this post by Sven Wesley
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 <[hidden email]> > >> 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 >>> >>> > |
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 <[hidden email]> > 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 <[hidden email]> >> >> 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 >>>> >>>> >>>> >> |
Free forum by Nabble | Edit this page |