Hi all,
Is it possible to send parameters along with the call to a resource string?
example: I have a string I wish to display in the UI: "You have xx new messages".
In my .resx file, I have 2 key/values, "You have" and "new messages". The code sticks them together with the xx parameter to get the result I need.
It seems a little tedious, and quickly becomes complicated if I have to code
resource.string01 + getNumberOfMessages() + resource.string02
Is there a way to send a parameter to the resource provider, so that I only have to maintain one key/value for the above entry? I was figuring my key/value could look something like "You have {0} messages", and the call to the resource would replace the {0} with whatever parameter I provide. Possible out of the box, or do I have to implement my own resource provider to get this?
/Mort