2
4

1 回答 1

3

The System.Globalization namespace doesn't include punctuation rules. Punctuation really is part of linguistic rules (alongside grammar), whereas the globalization namespace is more about national standards.

I don't know if it helps much, but the example you showed can be solved through regular localization. You could --and should-- include format strings (obviously only those that you use to construct display text) in the resources so that localizers can make changes not just to the punctuation, but to anything else that is necessary (another example being the ordering of the substrings, which may need to be reversed in some languages).

string.Format(MyResources.FormatNameAndAssociatedQuantity, this.nameOfAGuy, this.quantityAssociatedWithTheGuy);

with the English version of this string being "{0}: {1}" and its French localization "{0} : {1}" (with a space before the colon).

于 2012-05-25T09:05:03.470 回答