Text in resources and localizing

3 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 26 Nov 2009 Link to this post


    Is there some tool to manage Text resources localizing under RadControls for Silverlight ?

  2. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 26 Nov 2009 Link to this post

    I finally found samples using LocalizationManager but I am unable to have it working.
    I created 2 string resource file resource.resx and resource.fr-FR.resx, set the action/tools according blog http://blogs.telerik.com/silverlightteam/posts/09-05-13/localization_for_radcontrols_for_silverlight_and_wpf.aspx
    in my customcontrol ctor, I set the LocalizationManager.Manager to the resource manager and force the Culture and thread Culture to 'fr-FR', but I always get the resource english version when using in my xaml file 

                            <telerikNavigation:RadTreeViewItem Cursor="Hand" 
                                    Header="Winforms" telerik:LocalizationManager.ResourceKey="TEST"/>  

    I have not understood, in the blog page, the instructions
    Then, you can open the project file in a text-mode and append the code below to notify the framework about the supported cultures:


    Which project file ???? is this still ok for Q309 ?

    Thanks for help.

  3. Ivan
    Ivan avatar
    519 posts

    Posted 01 Dec 2009 Link to this post

    Hi Christian,

    Thank you for contacting us.

    First of all let me apologize for the late response.

    About the missing french UI regardless the existent french resource file.
    In fact this is a bit wired case. If the localization rely on the current culture then the application have to declare which cultures are supported. Because of this you should add the supported cultures in the project file of the Silverlight application. For example you can follow the steps below:
    • Open your solution into the MSVS.
    • Open the Solution Explorer.
    • Find the project of the Silverlight application and unload it:
    • Open the project file in Text-mode:

    • Find / Add the SupportedCultures element and fill your cultures:

    • Save the project file and reload the project:

    • That's all. Just rebuild and run the application.

    As this is not so flexible we had implemented our localization manager. Please preview the Localizing RadUpload for Silverlight with a Resource file article. In the attached example we do not care about the current thread culture - we just replace the resource manager in charge. This way we are avoiding the code about supported cultures inside the project file.

    Please give it a try and let us know if you have more questions.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top