PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

DataSet.xsd and Locale

 
 
Dimitris Milonas
Guest
Posts: n/a
 
      29th Nov 2007
Hello,

When I build a DataSet with the DataSet Designer (DataSet.xsd) every
DataTable has the property "Locale" which is set (I guess) to the current
collate of the table of the SQL Server (I'm using MSSQL). I want to build a
web application which is language neutral or translated in two or more
languages.
Is this property of the DataTable in the Designer going to be a problem? If
it is a problem, then how to overcome it?
At the beginning, I wrote "I guess" because I really don't where this locale
property came from? The MSSQL has collate sequence for "Latin1" for Western
European languages but in the DataSet Designer the "locale" property of the
DataTable doesn't have any value of "Latin1" instead it lists all the
different countries and languages.

Regards
Dimitris Milonas



 
Reply With Quote
 
 
 
 
Bryan Porter
Guest
Posts: n/a
 
      29th Nov 2007
Dimitris,

The DataTable Locale property contains a CultureInfo that describes how
strings should be compared within the table. When you begin to localize your
application, one of the things you would probably want to do is to set the
Locale property to the current users locale when you create an instance of
the object.

Here is the relevant documentation:

http://msdn2.microsoft.com/en-us/library/system.data.datatable.locale(VS.71).aspx

--
Regards,

Bryan Porter
http://www.bryanporter.com/

"What A Horrible Night To Have A Curse!" - S. Belmont
"Dimitris Milonas" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hello,
>
> When I build a DataSet with the DataSet Designer (DataSet.xsd) every
> DataTable has the property "Locale" which is set (I guess) to the current
> collate of the table of the SQL Server (I'm using MSSQL). I want to build
> a web application which is language neutral or translated in two or more
> languages.
> Is this property of the DataTable in the Designer going to be a problem?
> If it is a problem, then how to overcome it?
> At the beginning, I wrote "I guess" because I really don't where this
> locale property came from? The MSSQL has collate sequence for "Latin1" for
> Western European languages but in the DataSet Designer the "locale"
> property of the DataTable doesn't have any value of "Latin1" instead it
> lists all the different countries and languages.
>
> Regards
> Dimitris Milonas
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Property DataSet.Locale barzot@msn.com Microsoft ADO .NET 0 11th Oct 2007 12:08 PM
DataSet Locale problem Matt F Microsoft VB .NET 4 8th Feb 2007 12:34 PM
Problem with DataSet.Locale settings. schaf Microsoft C# .NET 0 9th Oct 2006 06:01 PM
Typed Dataset Reserved Word: Locale Michael McHenry Microsoft ADO .NET 4 20th Jun 2005 06:10 PM
Terminal Client over VPN locale printer locale drives Sveeny Microsoft Windows 2000 Terminal Server Clients 2 26th Nov 2003 10:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.