Declaration
public TrStringNum(
string[] translations,
bool[] isNumber
)
Summary
Constructs a new translatable string with the specified translations.
Parameters
string[] | translations |
Specifies the translations for this string. The number of elements is expected to be equal to the number of
strings as defined by your native language's NumberSystem, multiplied by the number of elements in isNumber that are true. |
bool[] | isNumber |
Specifies which of the interpolated variables are integers. |
Example
The following example code demonstrates how to instantiate a string that interpolates both a string (file
name) and an integer (number of bytes) correctly.
TrStringNum MyString = new TrStringNum(
new[] { "The file {0} contains {1} byte.", "The file {0} contains {1} bytes." },
new[] { false, true }
);