Problem with localization of some windows

6 posts, 0 answers
  1. Ernesto
    Ernesto avatar
    22 posts
    Member since:
    Sep 2010

    Posted 17 Nov 2011 Link to this post

    Hi guys,

    In some cases tooltip for close button in rad windows is not localized. For example it can be reproduced when opening RadFileUpload window and also when creating new folder in RadFileExplorer.

    Steps to reproduce:

    1. Culture used is: de-DE (Deutch)
    2. All resource files from Resources folder (Telerik.Web.UI project) are included into App_GlobalResources folder of our web application.
    3. Telerik version used is 2011.02.0915.20

    We also found in RadWindowLocalization class  of Telerik.Web.UI project properties which are marked with Localize attribute. But for some reason it is not working.

    Any ideas how to localize this tooltip? We think the problem is related to RadWindow localization.

    Probably some additional resource file or new resource line should be added to App_GlobalResources for RadWindow localization?

    On this screenshot you can see a problem. (tooltip on 'close' button)



    Thanks in advance,
    Ernesto.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4526 posts

    Posted 18 Nov 2011 Link to this post

    Hello Ernesto,

    Thank you for reporting this. This is indeed an omission in the RadFileExplorer and I have updated your Telerik points for reporting it to us. I have logged it in our database and it will be fixed for one of the upcoming releases.

    For the time being I can suggest several ways to work around this:

    - use the Localization of the RadWindowManager that is exposed by the RadFileExplorer, e.g.:
    protected void Page_Load(object sender, EventArgs e)
    {
        RadFileExplorer1.WindowManager.Localization.Close = "Schliessen";
    }

    - use a global localization for all RadWindows on the page via JavaScript by placing the following script at the end of the page:
    Telerik.Web.UI.RadWindowUtils.Localization =  
        "Close" : "Close"
    };


    All the best,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. Yuri
    Yuri avatar
    2 posts
    Member since:
    Nov 2011

    Posted 21 Nov 2011 Link to this post

    Marin, thank you for workaround. It works for RadFileExplorer.
    But we found the same problem in Html editor popups (for example: Document manager and Image manager - upload file, delete confirmation popup)
    Can you help with it?
  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4526 posts

    Posted 22 Nov 2011 Link to this post

    Hello Yuri,

    Can you confirm you have all the necessary *.resx files in your App_GlobalResources folder? Namely the RadEditor.Dialogs files? I tried this localization and things seem to be working fine on my end: http://screencast.com/t/LSQSLUU92. Please examine the following help article for more information on localizing the RadEditor: http://www.telerik.com/help/aspnet-ajax/editor-using-global-resource-files.html. It shows the list with the needed files as well. You can also examine the other articles in the Localization section as they also provide some insight on the way this mechanism works and the options it provides.

    Greetings,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Yuri
    Yuri avatar
    2 posts
    Member since:
    Nov 2011

    Posted 23 Nov 2011 Link to this post

    Marin, thank you for reply.Image manager and document manager are localized, the problem present in "Close" tooltip (see attachement) that is in popups
    that opens from Image manager and document manager.
    I use server side fix for RadFileExplorer 'Close' tooltip localization - it works.
    But for RadEditor I not found any 'Localization.Close' member for server side fix,
    I also tried the javascript fix 
    Telerik.Web.UI.RadWindowUtils.Localization = 
    {
        "Close" : "CloseTranslation",
    };
    I tried to put this code on page loaded event and on 'onclientcommandexecuting' RadEditor event, but it is to early.
    The Telerik.Web.UI.RadWindowUtils.Localization values inits after my fix and fix does not works.









  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4526 posts

    Posted 23 Nov 2011 Link to this post

    Hi Yuri,

    Thank you for the additional information. This is the same issue as the original post - a missing localization string in the RadFileExplorer. This is logged and it will be fixed for the RadFileExplorer and this means that the fix will be available in the RadEditor as well, as the RadFileExplorer is used in the manager dialogs. The JavaScript fix did not work in this scenario, as the dialogs load their content in iframes, so their context is different. 

    If you do not wish to wait you can externalize the RadEditor's dialogs as explained in this help article and place the JavaScrtipt fix at the end of the FileBrowser.ascx control.


    Kind regards,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top