|
Home > Archive > Commerce Server General > February 2006 > Catalog Default language
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Catalog Default language
|
|
| senthilkumar 2006-02-22, 7:48 am |
| Hi,
How can we change Default language in catalog dynamically in code
behind.
If this could be done how?
Regards,
Senthilkumar
| |
| Sudha Raghavan [MSFT] 2006-02-22, 5:57 pm |
| I am not sure which version of Commerce Server you are on.
In Cs2002 or Cs2006, you could change the default language by using
productCatalog.DefaultLanaguge="fr-FR" //Make sure that "fr-FR" is added as
a language to the catalog before this.
productCatalog.Save();
Thanks
Sudha
--------------------
From: "senthilkumar" <senthilkumarj@gmail.com>
Newsgroups: microsoft.public.commerceserver.general
Subject: Catalog Default language
Date: 22 Feb 2006 05:10:07 -0800
Organization: http://groups.google.com
Lines: 9
Message-ID: <1140613807.505888.140200@f14g2000cwb.googlegroups.com>
NNTP-Posting-Host: 203.101.40.88
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1140613812 3536 127.0.0.1 (22 Feb 2006 13:10:12
GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 22 Feb 2006 13:10:12 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET
CLR 1.1.4322),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 squid.accelicimtech.com:3128 (squid/2.5.STABLE6)
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=203.101.40.88;
posting- account=0gKvzg0AAABjEgNFQ9y1CySyjBvRQUoX
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.gigan
ews.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:17565
X-Tomcat-NG: microsoft.public.commerceserver.general
Hi,
How can we change Default language in catalog dynamically in code
behind.
If this could be done how?
Regards,
Senthilkumar
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2005 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Have a Commerce Server “How To” question? Help is a click away at our
Chats, Newsgroups and Web logs
Chats (2nd Wednesday of the month from 11 to Noon):
http://www.msdn.microsoft.com/chats/
Public newsgroups:
http://www.microsoft.com/technet/co...r/commerce.mspx
Web logs and community:
http://www.microsoft.com/commercese...ty/default.mspx
Other resources:
http://www.microsoft.com/technet/pr...02/default.mspx
| |
| senthilkumar 2006-02-23, 2:53 am |
| Hi,
I am using CS2002.When i tried to do like that i got an Error as
follows
C:\Inetpub\wwwroot\ImportTest\Search.aspx.cs(65): Property or indexer
'Microsoft.CommerceServer.Runtime.Catalog.ProductCatalog.DefaultLanguage'
cannot be assigned to -- it is read only
Code actually written for Catalog
ProductCatalog productCatalog = new
ProductCatalog(CommerceContext.Current.CatalogSystem.GetCatalog("keywords");
productCatalog.DefaultLanguage = "en-GB";
productCatalog.save();
When i tried to add a method save() it is not showing in the help
dialog.
Is anything wrong in the code.i added all the references. i can able to
fetch products
from the catalog.But i want to change the default language.
Can u suggest on this.
Regards,
Senthilkumar
| |
| senthilkumar 2006-02-26, 10:46 am |
| Hi,
can somebody help me out.Still same problem.
Regards
Senthilkumar
senthilkumar wrote:
> Hi,
>
> I am using CS2002.When i tried to do like that i got an Error as
> follows
>
> C:\Inetpub\wwwroot\ImportTest\Search.aspx.cs(65): Property or indexer
> 'Microsoft.CommerceServer.Runtime.Catalog.ProductCatalog.DefaultLanguage'
> cannot be assigned to -- it is read only
>
> Code actually written for Catalog
>
> ProductCatalog productCatalog = new
> ProductCatalog(CommerceContext.Current.CatalogSystem.GetCatalog("keywords");
>
> productCatalog.DefaultLanguage = "en-GB";
>
> productCatalog.save();
>
> When i tried to add a method save() it is not showing in the help
> dialog.
>
>
> Is anything wrong in the code.i added all the references. i can able to
> fetch products
> from the catalog.But i want to change the default language.
>
>
>
> Can u suggest on this.
>
> Regards,
> Senthilkumar
| |
| Sudha Raghavan [MSFT] 2006-02-26, 10:46 am |
| Hi Senthilkumar,
You cannot use BCLs to set the default language. BCLs are used on the
runtime site and you can get the data in the language you want by setting
"ActiveLanguage".
However on the desgin time side, if you used either Bizdesk or the interop
APIs, you can set the default language on a catalog.
Hope this helps.
Thanks
Sudha
--------------------
From: "senthilkumar" <senthilkumarj@gmail.com>
Newsgroups: microsoft.public.commerceserver.general
Subject: Re: Catalog Default language
Date: 23 Feb 2006 21:59:56 -0800
Organization: http://groups.google.com
Lines: 42
Message-ID: <1140760796.156891.161210@i39g2000cwa.googlegroups.com>
References: <1140613807.505888.140200@f14g2000cwb.googlegroups.com>
<tz3fah$NGHA.3052@TK2MSFTNGXA01.phx.gbl>
<1140676685.992404.144970@z14g2000cwz.googlegroups.com>
NNTP-Posting-Host: 203.101.40.88
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1140760801 31009 127.0.0.1 (24 Feb 2006
06:00:01 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 24 Feb 2006 06:00:01 +0000 (UTC)
In-Reply-To: <1140676685.992404.144970@z14g2000cwz.googlegroups.com>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET
CLR 1.1.4322),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 squid.accelicimtech.com:3128 (squid/2.5.STABLE6)
Complaints-To: groups-abuse@google.com
Injection-Info: i39g2000cwa.googlegroups.com; posting-host=203.101.40.88;
posting- account=0gKvzg0AAABjEgNFQ9y1CySyjBvRQUoX
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!ne
wsfeed1.ip.tiscali.net!news.glorb.com!postnews.google.com!i39g2000cwa.google
groups.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:17588
X-Tomcat-NG: microsoft.public.commerceserver.general
Hi,
can somebody help me out.Still same problem.
Regards
Senthilkumar
senthilkumar wrote:
> Hi,
>
> I am using CS2002.When i tried to do like that i got an Error as
> follows
>
> C:\Inetpub\wwwroot\ImportTest\Search.aspx.cs(65): Property or indexer
> 'Microsoft.CommerceServer.Runtime.Catalog.ProductCatalog.DefaultLanguage'
> cannot be assigned to -- it is read only
>
> Code actually written for Catalog
>
> ProductCatalog productCatalog = new
>
ProductCatalog(CommerceContext.Current.CatalogSystem.GetCatalog("keywords");
>
> productCatalog.DefaultLanguage = "en-GB";
>
> productCatalog.save();
>
> When i tried to add a method save() it is not showing in the help
> dialog.
>
>
> Is anything wrong in the code.i added all the references. i can able to
> fetch products
> from the catalog.But i want to change the default language.
>
>
>
> Can u suggest on this.
>
> Regards,
> Senthilkumar
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2005 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Have a Commerce Server “How To” question? Help is a click away at our
Chats, Newsgroups and Web logs
Chats (2nd Wednesday of the month from 11 to Noon):
http://www.msdn.microsoft.com/chats/
Public newsgroups:
http://www.microsoft.com/technet/co...r/commerce.mspx
Web logs and community:
http://www.microsoft.com/commercese...ty/default.mspx
Other resources:
http://www.microsoft.com/technet/pr...02/default.mspx
| |
| senthilkumar 2006-02-26, 10:46 am |
| Hi Sudha,
Thank you I got it with ActiveLanguage Property.
Thanks a Lot.
Regards
Senthilkumar
|
|
|
|
|