C# uses the concept of Culture. Is this operationally similar to Locale in Java or are there significant differences in the underlying concepts?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- Sorting 3 numbers without branching [closed]
- How to maintain order of key-value in DataFrame sa
- Graphics.DrawImage() - Throws out of memory except
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).
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.