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

localizing RecurrencePattern Interval of RecurrenceRule class

3 Answers 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anup
Top achievements
Rank 1
Anup asked on 13 May 2014, 09:14 AM
Hi,
I am using RecurrenceRule class of Rad telerik in my project and i want to localize the Interval property of the same class to the language specified.

How can  do the localization for the same ?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 15 May 2014, 08:25 AM
Hello Anup,

The requirement is a little bit unclear, that's why I'd ask you to send us more details on the exact scenario.

Thanks in advance

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Anup
Top achievements
Rank 1
answered on 15 May 2014, 10:32 AM
I have written my code as shown below,

 return string.Format(CultureInfo.CurrentCulture, "Every {0} weeks on ", radRecurrenceRule.Pattern.Interval.ToString(CultureInfo.InvariantCulture))
                    + radRecurrenceRule.Pattern.DaysOfWeekMask.ToString();

lets say my current culture is set to hindi then the DaysOfWeekMask should return string in hindi format.
0
Yana
Telerik team
answered on 19 May 2014, 01:34 PM
Hi Anup,

Actually the days are values of the RecurrenceDays enum type, so they cannot be localized.

We're sorry for any inconvenience caused.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
Anup
Top achievements
Rank 1
Answers by
Yana
Telerik team
Anup
Top achievements
Rank 1
Share this question
or