|
-
July 17th, 2009, 06:31 PM
#1
Formtting text within resource bundle .properties files
So I have a resource bundle with key/value pairs, e.g.
alert.NoPromoCodeRequired=No promotion code required.
If I wanted to bold, say, the "promotion code" phrase within the first sentence of the text value above, how would I accomplish that? Can I just dump html into the properties file, like so?
alert.NoPromoCodeRequired=No <span class="baseCopyEm">promotion code</span> required.
This strikes me as NOT a best practice but I canot find any guidance.
Conversely creating three separate key values ("No", "promotion code" and "required") pulling them each into the web page than applying html around the second text value does not seem like the way to go either.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|