This is a migrated thread and some comments may be shown as answers.

Culture setting in Windows 7

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dodd
Top achievements
Rank 1
Dodd asked on 11 Aug 2016, 09:18 AM

Hi, I'm testing my application with v4.0.30319 dlls on Windows 7.

With my application's language set to en-US, the initial main window is created well with English strings.

However, dynamically created controls are all created with Korean strings, which I assume follow my machine's culture setting. I checked the CurrentUICulture value while debugging, and after the first initialization, CurrentUICulture is somehow reset to ko-KR.

This does not happen with the previous Telerik dlls (2015 Q2) on Windows 7, or with v4.0.30319 dlls on Windows 10.

So I'm guessing v4.0.30319 dlls somehow reset the culture setting after the first initialization, only on Windows 7.

How can I fix this?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 16 Aug 2016, 09:08 AM
Hi Dodd,

We weren't able to reproduce the described behavior in your post. Basically, the provided v4.0.30319 version number is the version of your application not the version of our controls. For example, the latest version of our controls should look like this 2016.2.613.40 which means : 2016 R2 13th of June. - [year].[release number].[month|day].[.NET Version]. Based on the information above you can tell us which version of our controls you are you using in your application.

A suggestion, this is shot in the dark, but you can try setting the Culture settings before the InitializeComponent() in the constructor of the MainWindow. 
public MainWindow()
{
    Thread.CurrentThread.CurrentCulture = new CultureInfo("en");
    Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
    InitializeComponent();
}

Also, you can create a sample project from your application so we can further test it on our side. You can give us any additional information which you think could help us to reproduce this behavior on our side.

Regards,
Dinko
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
General Discussions
Asked by
Dodd
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or