C
C#3y ago
Sygmond

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.
6 Replies
Susko3
Susko33y ago
nl_BE is a real culture, provided by Windows, and nl-BE is a "fake" one see if the formatting is any different eg. of numbers, dates by fake culture I mean dotnet creating cultures when you pass eg. "fa-KE"
Sygmond
SygmondOP3y ago
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 I can't have two separate resource files for BE and NL, because I can't name them with underscore.
Susko3
Susko33y ago
try naming the resx with a dash nl-BE but keep the underscore elsewhere
Sygmond
SygmondOP3y ago
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
Susko33y ago
wait try lower case .nl-be.resx
Sygmond
SygmondOP3y ago
tried that too. Not working also
Want results from more Discord servers?
Add your server