Hi. Is there any kind of auto detection also ?
I did some testing. I added new locale "et" to local.widgetserver.properties. Default locale by local.widgetserver.properties is "en". I do not pass locale parameter to widgetinstances request. And some how my widget is displayed in local language. Then i tried changing locale folder name, like to "au" or something random. Then i got default english index.htm of my widget. So does Wookie detect local system locale or some how via browser ? -- Raido On Fri, Apr 16, 2010 at 7:22 PM, Raido Kuli <[email protected]> wrote: > Yes I can, I'll do it later. > > On Fri, Apr 16, 2010 at 7:20 PM, Scott Wilson > <[email protected]> wrote: >> On 16 Apr 2010, at 17:02, Raido Kuli wrote: >> >>> Hi, >>> >>>> >>>> Note that I don't think subsequent requests for the *same* widget instance >>>> with a different locale parameter will do anything. >>>> >>> >>> Yes that's true, I finally removed my widget from wookie and added >>> again. After that i was able to create new instance with locale i had >>> specified by parameter "locale"; Obviously just by updating the widget >>> it didn't detect my new locales. >>> >>> Currently if widget instance was created for user "joe" with locale >>> "ru" and then "joe" wants to use "en" instead then it can't be done. >>> Is there any way how to change locale for current instance ?? For >>> example I have some sort of website, it has language buttons "en", >>> "et", "ru" and i always initialize widget with username "anonymous". >> >>> When picking the language, it should change widgets locale to, if >>> widget has one. >> >> I'm sure it can be done, I think its just a case for putting in a check for >> changes to locale when handling widget instance requests - can you make a >> new issue for it? >> >>> It's not possible to change widget username all the time, because >>> widget preferences will be then lost. >>> >>> One last option, is to implement some sort of Javascript based >>> language helper, but i'd rather to it W3C way. >>> >>> -- >>> Raido >> >> >
