C#
C#

help

Root Question Message

Sygmond
Sygmond9/6/2022
Difference between nl-BE and nl_BE?

What is the major difference and why there are two cultures available in .NET, one with dash and one with underscore?

I want to change my app from "nl_BE" to "nl-BE" but I can't find any article about the implications of doing this.
Susko3
Susko39/6/2022
nl_BE is a real culture, provided by Windows, and nl-BE is a "fake" one
Susko3
Susko39/6/2022
see if the formatting is any different
Susko3
Susko39/6/2022
eg. of numbers, dates
Susko3
Susko39/6/2022
by fake culture I mean dotnet creating cultures when you pass eg. "fa-KE"
Sygmond
Sygmond9/6/2022
I defined all cultures with underscore but I got now in the situation that I have nl_BE and nl_NL and the resource files .nl.resx because I CAN'T name resources with .nl_be.resx and .nl_nl.resx
Sygmond
Sygmond9/6/2022
I can't have two separate resource files for BE and NL, because I can't name them with underscore.
Susko3
Susko39/6/2022
try naming the resx with a dash nl-BE
Susko3
Susko39/6/2022
but keep the underscore elsewhere
Sygmond
Sygmond9/6/2022
I did that. ResourceManager can't find the resource file if is named with dash eg nl-BE when the current culture is nl_BE
Susko3
Susko39/6/2022
wait try lower case .nl-be.resx
Sygmond
Sygmond9/6/2022
tried that too. Not working also
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy