Catalog Default language
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Catalog Default language




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Catalog Default language  
senthilkumar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-22-06 12:48 PM

Hi,

How can we change Default language in catalog dynamically in code
behind.
If this could be done how?

Regards,
Senthilkumar






[ Post a follow-up to this message ]



    RE: Catalog Default language  
Sudha Raghavan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-22-06 10: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



Attachment:
This has been downloaded 0 time(s).



[ Post a follow-up to this message ]



    Re: Catalog Default language  
senthilkumar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-23-06 07: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






[ Post a follow-up to this message ]



    Re: Catalog Default language  
senthilkumar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-06 03:46 PM

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






[ Post a follow-up to this message ]



    Re: Catalog Default language  
Sudha Raghavan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-06 03:46 PM

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



Attachment:
This has been downloaded 0 time(s).



[ Post a follow-up to this message ]



    Re: Catalog Default language  
senthilkumar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-06 03:46 PM

Hi Sudha,

Thank you I got it with ActiveLanguage Property.
Thanks a Lot.

Regards
Senthilkumar






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:26 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register