RadGridView localization doesn’t work

2 posts, 0 answers
  1. Jan
    Jan avatar
    2 posts
    Member since:
    Feb 2012

    Posted 10 Oct Link to this post


    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?

  2. Jan
    Jan avatar
    2 posts
    Member since:
    Feb 2012

    Posted 10 Oct in reply to Jan Link to this post

    It’s fixed. Can be delete. This issue was my mistake.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top