This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I'm using WPF elements 5.0 04/16/12 nightly builded version, and I want to provide localized recurrence dialogs in my WPF code. I could find some examples for localization, but none of them are related to recurrence. Can you tell me how to do that? Thank you in advance. Sincerely, Hobin |
|
|
Hello Hobin Just to clarify, do you need to localise the text labels (such as "Monday" and "Ends at") as well as the date time formats? Jason Fauchelle |
|
|
Dear Jason, Yes, it contains "Subject", "Start time", "Save & Close", "Range of recurrence" as well as "Monday". Is it possible? Sincerely, Hobin |
|
|
Hello Hobin At the moment this is not possible, but we will look into a providing a convenient way of doing this and get back to you soon. Jason Fauchelle |
|
|
Hello Hobin We are still working on the solution to this which will be available early next week. Jason Fauchelle |
|
|
Hello Hobin Support for localizing the dialogs is now complete. In the next nightly build you will find some new properties on the SchedulerFormatter. You can set the ScheduleItemDialogStyle, RecurrenceDialogStyle and DeleteRecurrenceDialogStyle to customize the template of each dialog. By doing this, you are able to set all the labels however you like. I have attached a sample that includes the code for the default dialog styles in Window1.xaml. This code will give you a great place to start. If you need to run the sample, make sure to download the next nightly build and also include a reference to your copy of the Mindscape.WpfElements.dll. Most of the labels are set directly in xaml, so you can just swap them for the translated labels. Some of the things you'll need to localize are in the drop down of combo boxes. You can customize these by making a custom item template that uses a custom value converter. The month names will be automatically localized for you due to the IntegerToMonthStringConverter. On each custom dialog style, you can use a setter to set the Title property. This will let you localize the title of the dialog window. Another new property on the formatter you may find useful is the DefaultScheduleItemName. This will let you localize the default name of a newly created schedule item. These properties will be available in the next nightly build. This will be available at around 1200 GMT and can be downloaded through your account page: http://www.mindscapehq.com/store/myaccount Please let us know if you need help with any of this. Jason Fauchelle |
|
|
Dear Jason, Thank you so much for providing this feature. I'll try the example. Hobin |
|