I'm working on internationalizing and localizing an ASP.NET app, and I'm running into problems with cases where string literals are mixed with markup. Like this example:
Acme Carpet Retailers <a href="#" class="link" id="ssoLoginUrl"
runat="server">click here</a> to log into the site.
For most string literals I'm using the Localize
control. I can embed this in a Localize control, tags and all, but the problem is then the link isn't a server control anymore. (It's referenced on the page by its ID.)
I can't really split up the strings ("Acme Carpet Retailers", "click here", etc.) because the word order could be different in a different language.
I've seen several suggestions on how to do this, but they all assume that the text with embedded link is assigned in code, not in markup, and that it's not a server control.
Any advice on how to localize this successfully?