Michał Kuliński
Michał Kuliński

Reputation: 1976

Is this possible to have translation resources in theme skin file in ASP.NET?

I need move "Hoy" and "Cancelar" strings to Resources file for translation purposes (I want to provide per user custom translations of Telerik controls, not build ones.)

Part of Default.skin file:

....

<telerik:RadDatePicker runat="server" >
   <Calendar>
   <FastNavigationSettings TodayButtonCaption="Hoy"
                           CancelButtonCaption="Cancelar">
   </FastNavigationSettings>
</Calendar>
....

Is there any possibilty to achieve that?

Upvotes: 0

Views: 1000

Answers (3)

lnu
lnu

Reputation: 1414

You can't localize text in .skin file. A similar question has been asked here. However, maybe you can achieve what you want by importing RadDatePicker resx file in the App_GlobalResouce folder of your project. It works for the RadGrid and some other controls.

Upvotes: 1

Ravi Gadag
Ravi Gadag

Reputation: 15861

You can check this example, as it supports localization. There are many demo samples in their site.

Demo examples

Localization of telerik rad datepicker

Upvotes: 0

Davide Piras
Davide Piras

Reputation: 44605

No you should not do this the way you said. Telerik controls fully support localization and globalization so probably you should just set thread culture and UICulture and everything would work with no manual replacements of strings from your side.

Upvotes: 0

Related Questions