C# uses the concept of Culture. Is this operationally similar to Locale in Java or are there significant differences in the underlying concepts?
问题:
回答1:
Working in terms of Culture rather than Locale is an attempt at finding the correct level of abstraction — considering things in terms of groups of people who do things in similar ways, rather than talking about geographic areas and languages and somewhat derangedly thinking those correspond reliably to sets of cultural conventions.
They're similar in intent, just "Culture" is trying to find the abstraction sweet spot that "Locale" dramatically missed.
回答2:
I am not particularly familiar with Java, but from what I can tell CultureInfo is roughly equivalent Locale in Java.
In short, it provides functionalty for formatting of numbers and dates, writing systems, string sorting and calendar functionality according to regional rules, regional meaning a combination of language or language and geographical region (and in some cases language, geographical region and alphabet).