Page 1 of 1

Default Localization

Posted: Tue Nov 03, 2009 8:28 am
by Andreas Tastler
Hi all

Which Localization will be used when the user selects the menu item Select UI Language --> Default?
Is it possible to set the default localization in code?
I want to preset (default) the localization, so it matches the language setting of our application.
But the user should be able to override this and selects another language, which will be saved.


Thank you

Andreas

Default Localization

Posted: Tue Nov 03, 2009 6:00 pm
by Edward
Hi Andreas,

Default localisation depends on the default culture. You could change it as follows:

Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB");

And if the user changes localization in the designer menu then next time he loads the designer, the last chosen localisation will be used.

Thank you.

Default Localization

Posted: Wed Nov 04, 2009 12:01 am
by Andreas Tastler
Hi Edward

It works. Thank you very much.

Default Localization

Posted: Wed Nov 04, 2009 1:32 am
by Edward
Hi Andreas,

Please let us know if you need any help.

Thank you.

Default Localization

Posted: Thu Nov 05, 2009 3:28 am
by guillaume
Hi Edward,

Shouldn't UI language rely on Thread.CurrentThread.CurrentUICulture ?
Thread..::.CurrentUICulture Property

Gets or sets the current culture used by the Resource Manager to look up culture-specific resources at run time.
Regards,
Guillaume

Default Localization

Posted: Thu Nov 05, 2009 3:34 am
by Jan
Hello Guillaume,

Stimulsoft Reports check following property for default localization:

CultureInfo.CurrentCulture.Name

Thank you.