Bug: Inconsistencies in calls to custom localization manager

5 posts, 0 answers
  1. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 24 Mar 2011 Link to this post

    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
  2. Mike
    Admin
    Mike avatar
    640 posts

    Posted 28 Mar 2011 Link to this post

    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
  3. DevCraft banner
  4. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 28 Mar 2011 Link to this post

    That does not help at all. No call comes in to my custom localization manager for the new keyword, and it remains untranslated.
  5. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 31 Mar 2011 Link to this post

    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
  6. Boby
    Admin
    Boby avatar
    595 posts

    Posted 05 Apr 2011 Link to this post

    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
Back to Top
DevCraft banner