Problems with CultureInfo for Norway

I am currently doing globalization in my application. Part of it works with CultureInfo and RegionInfo. There is one problem that puzzles me. Maybe someone can outshine the light:

var ci1 = new CultureInfo("de"); // Correct, gives a neutral CultureInfo var ci2 = new CultureInfo("de-CH"); // Correct, gives a specific CultureInfo var ci3 = new CultureInfo("fr-CH"); // Correct, gives a specific CultureInfo var ci4 = new CultureInfo("no"); // Correct, gives a neutral CultureInfo var ci5 = new CultureInfo("nb-NO"); // Correct, gives a specific CultureInfo var ci6 = new CultureInfo("nn-NO"); // Correct, gives a specific CultureInfo var ci7 = new CultureInfo("ch"); // Failure! Can't create a neutral Swiss culture. 

The point here is that Norway and Swizerland are multilingual countries, but, unlike Norway, I cannot create a neutral Swiss CultureInfo.

Is it due to historical reasons or is it just a mistake in the implementation of Microsoft?

EDIT: This seems to be some kind of “political” issue, not a technical one. So I would like to rephrase my question: any good ideas how to solve this problem technically? Just ignore " CultureInfo (no) "? Interestingly, " CultureInfo (" no ") " exposes the parent element CultureInfo.TwoLetterISOLanguageName "from 'nb'.

So for me this is pretty confusing. Any good ideas?

+7
source share
3 answers

A neutral culture is a culture associated with the language, but not with the country / region. See: http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo(v=vs.71).aspx

You are trying to create a language culture with ch, but there is no Swiss language. You use de-CH for German (language) - Switzerland (country). Similarly, you use it-CH or fr-CH for Italian and French in Switzerland.

And, as Mellellier points out, there is no Canadian language, but in the Canadian region they say fr (ench) or en (glish).

+7
source

"no" has a different behavior from "ch" because "no" is a language, Norwegian, while "ch" does not refer to any language.

Although it is true that Norway is a multilingual country, the official languages ​​in Norway are; Norwegian, Sami and Kven. Sami and Quen are recognized as minority languages. Neither "nb" nor "nn" refer to languages ​​that are officially recognized in Norway, because neither bokmål nor nynorsk are languages.

Confusion stems from two facts. Norwegian, unlike most languages, has two official written rules: Bokmol and Nynorsk. In ISO 639, Norwegian is considered a macro language for two norms, and ISO 639 assigns a separate written code to two written norms, i.e. "nb" and "nn". And the language code for Norwegian “no” is the same as the country code for Norway “NO”.

+1
source

In accordance with the ISO standard nno nn Norwegian Nynorsk; nob nb Bokmål, Norwegian; nor norwegian

From Wikipedia " https://en.wikipedia.org/wiki/Norwegian_language " Nynorsk and Bokmol provide standards for writing the Norwegian language, but not to speak that language. There is no officially sanctioned standard of oral Norwegian, and most Norwegians speak their dialects under any circumstances. Thus, unlike many other countries, the use of any Norwegian dialect, regardless of whether it matches written norms or not, is accepted as the correct spoken Norwegian language.

not. nn and nb are recorded forms

on the website, if you see no-no, you can assume that it is nb-no.

-2
source

All Articles