Standalone imageManager globalization

10 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 25 Mar 2011 Link to this post

    Hi,

    I have a standalone ImageManger on the page which is not taking the correct globalization settings from the thread.

    I have

    Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE")
    Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE")

    In Code behind but it is falling back to the default culture from web.config.

    How can I set the dialog language correctly?

    Marc
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 29 Mar 2011 Link to this post

    Hello Marc,

    To localize RadEditor and its dialogs you should set the Language property and copy the localization files in the App_GlobalResources folder. See this article for more information: Using Global Resource Files.

    Kind regards,
    Rumen
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 29 Mar 2011 Link to this post

    Hi Rumen,

    I am talking about a standalone configuration here...not about a RadEditor integrated Image Manager.

    Marc
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 29 Mar 2011 Link to this post

    Try the following:

    DialogDefinition imageManager = new DialogDefinition(typeof(ImageManagerDialog), imageManagerParameters);
    ...
    //Set the language
    imageManager.Parameters["Language"] = "fr-FR";



    Greetings,
    Rumen
    the Telerik team
  6. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 30 Mar 2011 Link to this post

    Very good Rumen this works.

    Some additional places where text is not displayed correctly:

    1. ImageManager pager got two texts, see screenshot.
    2. Where can I get the resx for German from the demo http://demos.telerik.com/aspnet-ajax/window/examples/localization/defaultcs.aspx

    Thanks for your time.
    Marc
  7. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 31 Mar 2011 Link to this post

    Hi Marc,

    1) I was unable to reproduce the problem. I have attached my test project and video demonstrating my test http://screencast.com/t/rsjQUyexY.
    2) The requested files are available in the C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q2 2010\Live Demos\App_GlobalResources installation directory. For your convenience I have attached them to my reply.

    All the best,
    Rumen
    the Telerik team
  8. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 31 Mar 2011 Link to this post

    It is no problem to apply the RadWindow resx to a RadWindow with

    <Localization Maximize="<%$ Resources:RadWindow, Maximize %>" Minimize="<%$ Resources:RadWindow, Minimize %>"
                Close="<%$ Resources:RadWindow, Close %>" PinOff="<%$ Resources:RadWindow, PinOff %>"
                PinOn="<%$ Resources:RadWindow, PinOn %>" Reload="<%$ Resources:RadWindow,Reload %>"
                Restore="<%$ Resources:RadWindow, Restore%>" Cancel="<%$ Resources:RadWindow, Cancel %>"
                OK="<%$ Resources:RadWindow, OK %>" No="<%$ Resources:RadWindow, No %>" Yes="<%$ Resources:RadWindow, Yes %>" />


    But howto apply this to the RadWindows which are used in the RadEditor??

    Marc
  9. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 31 Mar 2011 Link to this post

    You can see how to change the localization of the Close button of the standalone image manager in this article: Changing the localization of RadWindow for ASP.NET AJAX.

    We will also provide a way to localize the close button of RadEditor dialogs trough the provided resx files in one of the upcoming builds of Telerik.Web.UI.dll

    Best wishes,
    Rumen
    the Telerik team
  10. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 01 Apr 2011 Link to this post

    OK this also goes for RadEditor dialogs

    FileBrowser pager slider tooltips: "Increase", "Decrease"
    FileBrowser grid column resize: "Drag to resize"

    Marc
  11. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 05 Apr 2011 Link to this post

    Hi Marc,

    I logged this issue in our bug tracking system. You can find the PITS Issue and check its status at Public URL.

    Best regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017