Avoiding resource (localizable string) duplication with String.Format
- by Hrvoje Prgeša
I'm working on a application (.NET, but not relevant) where there is large potential for resource/string duplication - most of these strings are simple like:
Volume: 33
Volume: 33 (dB)
Volume
33 dB
Volume (dB)
Command - Volume: 33 (dB)
where X, Y and unit are the same.
Should I define a new resource for each of the string or is it preferable…