Change alternate text

5 posts, 1 answers
  1. Daniel Laforest
    Daniel Laforest avatar
    15 posts
    Member since:
    May 2008

    Posted 01 Nov 2008 Link to this post

    Hi,

    I'd like to know if it is possible with the radWindow to change its alternate text. The alternate text for the close button is close, but I need to put it in a different language.

    Thank you
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 03 Nov 2008 Link to this post

    Hi,

    You can change the localization strings of the RadWindow "Prometheus" control by using the following Javascript code that should be placed after the RadWindow / RadWindowManager declaration:


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


    Regards,
    Shinu
  3. Daniel Laforest
    Daniel Laforest avatar
    15 posts
    Member since:
    May 2008

    Posted 03 Nov 2008 Link to this post

    Thanks for the answer,

    Is it possible to do this server-side?

    Thanks,

    Philippe
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 03 Nov 2008 Link to this post

    Hi Daniel,

    Currently RadWindow's localization is set via JavaScript only. In your scenario however, you can change the strings on the server and output the localization function on the page when you want to change the language.


    Regards,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Daniel Laforest
    Daniel Laforest avatar
    15 posts
    Member since:
    May 2008

    Posted 05 Jul 2009 Link to this post

    Sorry for the late thanks :-P

    It worked just fine.

    Bye
Back to Top