Question : How to set language / locale in BasketSummary component of CommerceComponents dll

Hello,

we are developing web shop based on Microsoft Commerce Server 2007 StarterSite. It uses BasketSummary component to show summary of shopping cart on right side. Text is always displayed in english independent on selected language (StarterSite Options or Language settings in IE). We want to display that text in selected language.

CommerceComponents.dll is part of Commerce Server Starter Site.

Does anybody know hot to set used language or locale to that component? Must extra resource-DLLs be installed?

Thanks in advance for helpful answers.

Kind regards,
Tim
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
I tried following code in StandardLayout.Master.cs in OnInit but it did not help. Content of DefaultLanguageInfo is correct.
 
...
            UserObjectProfile userProfile = CurrentUser.GetUserProfile();
            if (userProfile != null)
            {
                Thread.CurrentThread.CurrentUICulture = userProfile.DefaultLanguageInfo;
                Thread.CurrentThread.CurrentCulture = userProfile.DefaultLanguageInfo;
            }
...

Answer : How to set language / locale in BasketSummary component of CommerceComponents dll

Hello,

I found solution by myself ....

As CommerceComponents.dll is part of CS Starter Site it comes with source code. Source code contains resource file ComponentResources.resx. If this file is duplicated and renamed to ComponentResources.de-DE.resx german translations can be added. After re-compilation of VisualStudio project and update of DLL in StarterSite Web-Application on IIS (automatically done by VS if existing solution is used) german texts are available in frontend.

Regards,
Tim
Random Solutions  
 
programming4us programming4us