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

Bug: Inconsistencies in calls to custom localization manager

4 Answers 91 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 24 Mar 2011, 11:55 AM
Hi. I have implemented my own custom LocalizationManager to provide translations for the silverlight controls. This works fine most of the time, but for one particular keyword in the RadRichTextBox it does not work as expected. I will try to explain:

At Application_Startup when my styles are loaded (I have a default style for RadRichTextBox there), a call to the localization manager is made for the keyword Documents_RadRichTextBox_HyperlinkToolTipFormatString. At this point in time my custom translations have not yet been loaded, so I cannot return anything in my localization manager.

Later, when the richtextboxes are actually rendered and used, calls are made for a different, but similar, keyword: Documents_HyperlinkToolTipFormatString. At this point in time my translations are loaded, and I can return the correct translation. However, this keyword does not seem to be used, ever. Instead the component uses the translation returned for the first keyword, which is still empty. No further calls for the first keyword are made. It seems that the correct keyword to use would be Documents_HyperlinkToolTipFormatString. Am I right?

I am hoping that this can be fixed in an internal build. If not, is there a workaround?

Best regards,
/Henrik

4 Answers, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 28 Mar 2011, 09:10 AM
Hello hwsoderlund,

We will review this issue see if we can improve the behavior. In the meanwhile you can set this exact string using the property of RadRichTextBox:
HyperlinkToolTipFormatString 

Let us know if this works for you.

Regards,
Mike
the Telerik team
0
hwsoderlund
Top achievements
Rank 1
answered on 28 Mar 2011, 01:31 PM
That does not help at all. No call comes in to my custom localization manager for the new keyword, and it remains untranslated.
0
Iva Toteva
Telerik team
answered on 31 Mar 2011, 01:07 PM
Hi hwsoderlund,

There seems to be an issue with the localization of the tooltip string. We will revise the behavior and, hopefully, fix it in a timely manner.
Mike's suggestion comes as a workaround for manually setting the property to the translated value of the string, since it is not possible to localize it at the time being.
We are sorry for the inconvenience.

Regards,
Iva
the Telerik team
0
Boby
Telerik team
answered on 05 Apr 2011, 05:20 PM
Hi Henrik Söderlund,

The correct value that you have to provide in your custom localization manager to localize hyperlink tooltip is Documents_RadRichTextBox_HyperlinkToolTipFormatString. Calls with Documents_HyperlinkToolTipFormatString are considered a bug and should be removed in the 2011 Q1 SP1 version.
Please note that the first value is needed for control's initialization (in RadRichTextBox static constructor), so you have to set your custom localization manager before control's creation. If you need to change this value later, you can directly set RadRichTextBox.HyperlinkToolTipFormatString property.
For your convenience, I have attached a resource file with all strings and keys that have to be localized for RadRichTextBox.

Regards,
Boby
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Mike
Telerik team
hwsoderlund
Top achievements
Rank 1
Iva Toteva
Telerik team
Boby
Telerik team
Share this question
or