Jan Kučera

Hi,

 which culture settings influences the decision which locale will sidebar choose

 I have czech format set, czech location and czech system locale (for non-Unicodes) in regional and language options, however, the sidebar still chooses the en-us version of gadget. Vista UI is english of course.

 The .Net framework returns

System.Globalization.CultureInfo
    base {object}: object
    CurrentCulture: {cs-CZ}
    CurrentUICulture: {en-US}
    InstalledUICulture: {en-US}
    InvariantCulture: {}

 What should I change to test my gadget localization

Thanks

Edit: PS: Is there any way how to determine from within gadget code which culture is prefered by sidebar at the moment



Re: Sidebar Gadget Development Which culture?

Jonathan Abbott

This sounds like XP, where the system ran as US, unless you manually changed it to your locale.

Could be the same issue. Check your system locale is correct in the Administrative tab of the "Regional and Langauge Options" control panel.




Re: Sidebar Gadget Development Which culture?

miloush

Yes it is, I have there the settings I described.

By the way, is there way to change the locale of gadget by code I would like the user to be able to choose which language will be shown.





Re: Sidebar Gadget Development Which culture?

Jonathan Abbott

My mistake, I misread your first post.

I don't think there is a way to change the language. You'd have to code it yourself.




Re: Sidebar Gadget Development Which culture?

miloush

Okay, so the answer is, that the sidebar uses something like CurrentUICulture instead of CurrentCulture Well...it makes sense a bit, however I would consider providing a choice to the user to select preferred language of gadgets, or a possibility to the developer to test the localization somehow.

Thank you for are your help, though.