Last post Aug 21, 2008 11:33 AM by Hovgaard
Aug 21, 2008 08:22 AM|Hovgaard|LINK
Ouch, i'm almost spamming with questions today. Sorry - just can't find the answers anywhere today [:$]
My application gets all text from globalresources. My problem is.. I need to write out a text like this:
"Click here to return to the main menu."
The word "here" will be a hyperlink, but my problem is. How can I easily let my translators translate this string? I could split the text into 3 strings: BeforeLink, Link and AfterLink, but this just don't seem to be the right way to do it? There must be some
Thanks for your time :)
Aug 21, 2008 08:36 AM|ganseki|LINK
Aug 21, 2008 09:19 AM|Hovgaard|LINK
Correct, but I need to add the "here" word a hyperlink function. And I can't see any smart way to include this to the globalresource string, without hardcoding a <a>-tag directly into the value of the globalresource string.
Aug 21, 2008 09:49 AM|ganseki|LINK
I realise its side-stepping the question a bit... but why not have "return to the main menu" the hyperlink. Using "click here" is not a best practice as it does not give any indication of what the link is for.
That way the whole string can be translated and used as the text for the hyperlink
Aug 21, 2008 11:33 AM|Hovgaard|LINK
I'm fearing that this could be the only way out, yes. The reason why I'm trying to find a solution for this is, that a large part of the whole application uses alot of these "one word links" (I'm converting a classic ASP app to .NET).
I hoped that there was some kind of parameter way to solve this or other neat stuff :P