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

Localization mechanism doesn't work on RadDiagnostics

1 Answer 36 Views
Diagnostics
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 17 Jan 2014, 09:09 AM

Hi



I have read the localization mechanism.







I have localized following Keys in my own Resourcefile (TelerikControlsLocalizedResources.resx)



- Diagnostic_MessageBox_Content

- Diagnostic_MessageBox_Title

- MBNoText

- MBYesText



I added following line in Application_Launching:



InputLocalizationManager.Instance.ResourceManager = TelerikControlsLocalizedResources.ResourceManager;



But the message text (and title) is not localized!



As Workaround I have set the properties explicit in code behind:



var diag = new RadDiagnostics();
diag.EmailTo = "mg@hsig.ch";
diag.MessageBoxInfo = new MessageBoxInfoModel()
{
    Title = TelerikControlsLocalizedResources.Diagnostic_MessageBox_Title,
    Content = TelerikControlsLocalizedResources.Diagnostic_MessageBox_Content,
    Buttons = MessageBoxButtons.YesNo
};
diag.Init();




But the buttontext (yes/no) still aren't translated!



With other controls (e.g. DatePicker) works fine!



I use this assembly:

Assembly Telerik.Windows.Controls.Primitives.dll, v2013.3.1127.3040




Thanks for a fix!

Best regards

Michael



1 Answer, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 17 Jan 2014, 12:49 PM
Hello Michael,

Thank you for writing.

The documentation contains a sample with the InputLocalizationManager, but it is used only by controls which reside in the assembly Telerik.Windows.Control.Input (like RadDatePicker). For controls which reside in the assembly Telerik.Windows.Controls.Primitives (like RadDiagnostics), you need to use the PrimitivesLocalizationManager.

Let us know if you need further assistance.

Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Diagnostics
Asked by
Michael
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or