How to Localize The RadWindow - Without JavaScript?

6 posts, 0 answers
  1. Jeff
    Jeff avatar
    85 posts
    Member since:
    Feb 2008

    Posted 06 May 2010 Link to this post

    I have found the general answer for changing the radWindow items like the close tool tip text.

    Telerik.Web.UI.RadWindowUtils.Localization =        
    {       
        "Close" : "Close",       
        "Minimize" : "Minimize",       
        "Maximize" : "Maximize",       
        "Reload" : "Reload",       
        "PinOn" : "Pin on",       
        "PinOff" : "Pin off",       
        "Restore" : "Restore",       
        "OK" : "Custom text for OK",       
        "Cancel" : "Custom text for Cancel",       
        "Yes" : "Custom Text for Yes",       
        "No" : "Custom text for No"         
    };     
     


    This solution does not work for me, as the page can be hit by users of several locals.  So if I change "Close" to Spanish my English and German users will now see Spanish.  I can't win.

    Has the window been truly localized yet, allowing me to move this text into a resource file? 

    If not, can I please get a PITS ticket created for that request.

    Thanks
    Tim





  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 10 May 2010 Link to this post

    Hello Tim,

    This feature is in our ToDo list for Q2 which will appear in the beginning of July. Due to the small number of localization strings, we will be using properties for that purpose.
    By the way, with the current version, based on your localization logic, you could output different JavaScript depending on the language currently set, have you tried that? If so, what was the problem with this approach?

    Regards,
    Georgi Tunev
    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.
  3. Jeff
    Jeff avatar
    85 posts
    Member since:
    Feb 2008

    Posted 10 May 2010 Link to this post

    Thanks,

    No I haven't found/tried the localized java approach.  Do you have an example handy?

    Tim
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 May 2010 Link to this post

    Hello Tim,

    I attached a small sample that shows what I was talking about - I hope this helps.


    Greetings,
    Georgi Tunev
    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.
  5. Vincent
    Vincent avatar
    70 posts
    Member since:
    Jul 2008

    Posted 04 Aug 2010 Link to this post

    I just got another problem by using this way to localize the radwindow.

    I use radAlert and radConfirm a lot. In the radConfirm dialogue, I want to display "Yes", "Cancel" for the button text, but not radAlert. The tricky is after I use this js script, it also change the radAlert button text to "Yes". Can someone give a solution for this?


    Thanks
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 05 Aug 2010 Link to this post

    Hi Vincent,

    In such case I would suggest to hardcode the strings (e.g. change  ##LOC[OK]## to Yes ) directly in the templates. More information on how to use RadWindowManager's templates is available here:
    http://www.telerik.com/help/aspnet-ajax/window_dialogschangingthedialogtemplates.html




    Best wishes,
    Georgi Tunev
    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