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

How to Localize The RadWindow - Without JavaScript?

5 Answers 175 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 06 May 2010, 04:41 PM
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





5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 10 May 2010, 02:10 PM
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.
0
Jeff
Top achievements
Rank 1
answered on 10 May 2010, 02:49 PM
Thanks,

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

Tim
0
Georgi Tunev
Telerik team
answered on 11 May 2010, 08:41 AM
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.
0
Vincent
Top achievements
Rank 1
answered on 05 Aug 2010, 03:54 AM
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
0
Georgi Tunev
Telerik team
answered on 05 Aug 2010, 02:13 PM
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
Tags
Window
Asked by
Jeff
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Jeff
Top achievements
Rank 1
Vincent
Top achievements
Rank 1
Share this question
or