Sunday, August 1, 2010

How do you fill in a resource string at run-time?

Programmer Question

I have an application I'd like to localise. However, the strings to be localised occasionally contain parts I'd like to provide at runtime, such as action links.



For example, I have a string like this: Please click here for help. I can't just split it into two resources since in different languages it'll be in a different location.



Is there any way to do this or should I stick to hard-coding the link to the controller/action in the resource itself?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails