How can I translate hyperlink tooltip correctly?

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

    Posted 28 Mar 2012 Link to this post

    RadRichTextBox generates a tooltip for any hyperlink inserted in a rich text document. The tooltip typically looks like the following:
    Click to follow link

    Or in edit mode:
    Ctrl + Click to follow link

    Now, I have implemented a custom localization manager where i provide custom translations for these tooltips. The default resource string looks like this:
      <data name="Documents_RadRichTextBox_HyperlinkToolTipFormatString" xml:space="preserve">
    {1} to follow link</value>

    Where {0} is replaced by the url and {1} is replaced by either "Click" or "Ctrl + Click".

    My problem is that while I can easily replace " to follow link" in my custom translation, I cannot find a way to replace the text inserted at position "{1}". The result is that the first part of the text is in english and the second part is translated to the users preferred language.

    For example, the tooltip when translated to swedish should say "Klicka för att följa länken". Instead it says "Click för att följa länken". And in edit mode it says "Ctrl + Click för att följa länken"

    Please change the mechanism so that there is a keyword for the phrases "click" and "ctrl + click" so that we can translate these also. In the meantime, can you think of a workaround?

  2. Christian
    Christian avatar
    52 posts
    Member since:
    Apr 2011

    Posted 28 Mar 2012 Link to this post

    Same problem over here...
  3. Mike
    Mike avatar
    640 posts

    Posted 30 Mar 2012 Link to this post

    Hello, Henrik, Christian

    Thank you for pointing out this issue. We have added it to our to-do list and we will make sure we provide resource strings instead of this hard-coded string in the Latest Internal Build next week.
    Let us know if we can help with anything else.

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top