P
peuramaki
Hello all,
a client of mine requires their web site to work with sami language,
which is spoken throughout northern parts of scandinavia. I'm trying
to set up the culture with ISO 639-1 compliant abbreviation se-FI
which works just fine in my development environment. Nevertheless, in
production environment I get error
Culture name 'se-fi' is not supported.
Parameter name: name
which I have tracked down to row 3 in the code snippet below, the
CultureInfo constructor throws an exception.
1 private static void SetCulture(string cultureName)
2 {
3 CultureInfo culture = new CultureInfo(cultureName);
4 SetCulture(culture);
5 }
6 private static void SetCulture(CultureInfo culture)
7 {
8 //Set the new culture
9 System.Threading.Thread.CurrentThread.CurrentCulture = culture;
10 System.Threading.Thread.CurrentThread.CurrentUICulture =
culture;
11 }
Development and production environments should be identical but
obviously they are not. Any help?
TIA,
Panu
a client of mine requires their web site to work with sami language,
which is spoken throughout northern parts of scandinavia. I'm trying
to set up the culture with ISO 639-1 compliant abbreviation se-FI
which works just fine in my development environment. Nevertheless, in
production environment I get error
Culture name 'se-fi' is not supported.
Parameter name: name
which I have tracked down to row 3 in the code snippet below, the
CultureInfo constructor throws an exception.
1 private static void SetCulture(string cultureName)
2 {
3 CultureInfo culture = new CultureInfo(cultureName);
4 SetCulture(culture);
5 }
6 private static void SetCulture(CultureInfo culture)
7 {
8 //Set the new culture
9 System.Threading.Thread.CurrentThread.CurrentCulture = culture;
10 System.Threading.Thread.CurrentThread.CurrentUICulture =
culture;
11 }
Development and production environments should be identical but
obviously they are not. Any help?
TIA,
Panu