localizing RecurrencePattern Interval of RecurrenceRule class

4 posts, 0 answers
  1. Anup
    Anup avatar
    11 posts
    Member since:
    Mar 2011

    Posted 13 May 2014 Link to this post

    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 ?
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 15 May 2014 Link to this post

    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.
     
  3. Anup
    Anup avatar
    11 posts
    Member since:
    Mar 2011

    Posted 15 May 2014 in reply to Yana Link to this post

    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.
  4. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 19 May 2014 Link to this post

    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.
     
Back to Top