Language pack resources aren't used

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

I have a localized german Windows XP SP3 with .Net 3.5 SP1 and german and french language packs for the Framework installed.

When I use the following code the DisplayName information for the ga-ie culture I get the NativeName instead of the localized ones for the CurrentUICultures I have previously set, except for de-de.

MsgBox(System.Threading.Thread.CurrentThread.CurrentUICulture.Name)
System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo("de-de")
MsgBox(System.Threading.Thread.CurrentThread.CurrentUICulture.Name & ": " & (New System.Globalization.CultureInfo("ga-ie")).DisplayName)
MsgBox(System.Threading.Thread.CurrentThread.CurrentUICulture.Name & ": " & (New System.Globalization.CultureInfo("en-ie")).DisplayName)
System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo("fr-fr")
MsgBox(System.Threading.Thread.CurrentThread.CurrentUICulture.Name & ": " & (New System.Globalization.CultureInfo("ga-ie")).DisplayName)
MsgBox(System.Threading.Thread.CurrentThread.CurrentUICulture.Name & ": " & (New System.Globalization.CultureInfo("en-ie")).DisplayName)
System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo("en-us")
MsgBox(System.Threading.Thread.CurrentThread.CurrentUICulture.Name & ": " & (New System.Globalization.CultureInfo("ga-ie")).DisplayName)
MsgBox(System.Threading.Thread.CurrentThread.CurrentUICulture.Name & ": " & (New System.Globalization.CultureInfo("en-ie")).DisplayName)

I've also tested with the Windows 7 RC + all operating system language packs installed and I only get the correct localized DisplayNames for the CurrentUICulture that is the current users default.

For example, when I install the spanish and japanese Windows 7 language packs I have to set the whole user profile to spanish or japanese to get the localized DisplayNames.
How can I retrieve the localiued DisplayNames without changing the system/user profile?

It shouldn't matter what system (XP/Vista/7/x86/x64) you use to reproduce this but you should have at least 2 languages for .Net installed. Either through a .Net language pack (like http://www.microsoft.com/downloads/details.aspx?displaylang=fr&FamilyID=8489ed13-b831-4855-96f7-dd35e4c02a20) or with Vista and obove an operating system MUI pack.


Kind regards,

Peter
.



Relevant Pages

  • Re: Language pack resources arent used
    ... I've also tested with the Windows 7 RC + all operating system language packs installed and I only get the correct localized DisplayNames for the CurrentUICulture that is the current users default. ... when I install the spanish and japanese Windows 7 language packs I have to set the whole user profile to spanish or japanese to get the localized DisplayNames. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Language pack resources arent used
    ... I've also tested with the Windows 7 RC + all operating system language packs installed and I only get the correct localized DisplayNames for the CurrentUICulture that is the current users default. ... when I install the spanish and japanese Windows 7 language packs I have to set the whole user profile to spanish or japanese to get the localized DisplayNames. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Language pack resources arent used
    ... I was not able to install the Dutch Language pack on my computer. ... You experience problems installing .Net language packs on Vista unless you have the equivalent MUI pack installed. ... FYI: If you install the redistributable/full .Net 3.5SP1 package it automatically tries to download the language pack related to the current MUI during install if you do not specify /LANG:ENU as a parameter to the setup. ... I've also tested with the Windows 7 RC + all operating system language packs installed and I only get the correct localized DisplayNames for the CurrentUICulture that is the current users default. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: MUI pack resources arent used
    ... It seems like the Framework doesn't retrieve the localized DisplayNames from the operating system's language packs. ... FYI: If you install the redistributable/full .Net 3.5SP1 package it automatically tries to download the language pack related to the current MUI during install if you do not specify /LANG:ENU as a parameter to the setup. ... If you now log on using the dutch MUI you get the correct localized DisplayName for the ga-ie culture in dutch, but after changing the CurrentUICulture to fr-fr you don't get the french localized DisplayName for the ga-ie culture. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Advanced Internet Options
    ... language pack so I don't have a "before" version of the registry. ... If I decline to load a pack, I wont be asked again if I revisit that ... As far as reversing "Never install any language packs." ...
    (microsoft.public.windows.inetexplorer.ie6.setup)