This is a migrated thread and some comments may be shown as answers.

Change alternate text

4 Answers 103 Views
Window
This is a migrated thread and some comments may be shown as answers.
Daniel Laforest
Top achievements
Rank 1
Daniel Laforest asked on 01 Nov 2008, 04:20 PM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 03 Nov 2008, 11:30 AM
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
0
Daniel Laforest
Top achievements
Rank 1
answered on 03 Nov 2008, 02:57 PM
Thanks for the answer,

Is it possible to do this server-side?

Thanks,

Philippe
0
Georgi Tunev
Telerik team
answered on 03 Nov 2008, 04:04 PM
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.
0
Daniel Laforest
Top achievements
Rank 1
answered on 05 Jul 2009, 10:16 PM
Sorry for the late thanks :-P

It worked just fine.

Bye
Tags
Window
Asked by
Daniel Laforest
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Daniel Laforest
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or