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

RadGridView localization doesn’t work

1 Answer 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 10 Oct 2016, 03:04 PM

Hi

I try localize RadGridView to Slovak culture.

I have resource files in external assemnly MyApp.Resources.

In this assembly I have resouce files named Translations.sk-Sk.resx

This file contains:

GridViewGroupPanelText       "Some awesome string will be there"

I MyApp assembly in App.xaml.cs in method OnStartup I set current culture and resource for

LocalizationManager.Manager.Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture = new CultureInfo(cultureCode);
 
LocalizationManager.Manager = new LocalizationManager()
{
    ResourceManager = Translations.ResourceManager
};
 

When I try access to GridViewGroupPanelText  from ViewModel class it works good.

var groupBy= LocalizationManager.Manager.ResourceManager.GetString("GridViewGroupPanelText");

But in view RadGridView use still english translations.

Thread.CurrentThread.CurrentCulture is sk-Sk (Slovak).

Windows culture is en-GB.

 

Any advice?

1 Answer, 1 is accepted

Sort by
0
Jan
Top achievements
Rank 1
answered on 10 Oct 2016, 04:03 PM
It’s fixed. Can be delete. This issue was my mistake.
Tags
General Discussions
Asked by
Jan
Top achievements
Rank 1
Answers by
Jan
Top achievements
Rank 1
Share this question
or