If you want to make it fully localizable, you can add a resource file called UiStrings to the project and add an entry for each of the Boolean values. Visual Studio will create a wrapper (using PublicResXFileCodeGenerator or ResXFileCodeGenerator) for the resource manager, which you can access using static properties.
Then you can use it as follows:
var booleanValue = true; var booleanText = booleanValue ? UiStrings.TrueValueText : UiStrings.FalseValueText; var messageText = UiString.ResultMessageText; var messageString = String.Format("{0}:{1}", messageText, booleanText);
The detailed code is intentional so that you can identify the different parts.
source share