Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Localization:Translating DB values in local languages

Reply
Thread Tools

Localization:Translating DB values in local languages

 
 
yashgt@gmail.com
Guest
Posts: n/a
 
      03-24-2007
In our ASP .NET 1.1 application, we query the database to obtain a
list of categories such as "Agriculture", "Business", etc. and display
them to the user, each against a checkbox. The names of categories are
obtained dynamically from the DB. The categories are stored in the DB
in English. We now want to support multiple languages in our
application. The DB values will remain unchanged, but the categories
will be displayed in different languages based on the Locale. The
categories will be translated to their local equivalents in the local
characters.
Ideally, I expect a facility by which I can translate such as:
Translate(MyStringFromDB,"zh-CHS")
This would lookup the translation table and find the Chinese word for
the English value contained in MyStringFromDB.
Where should these translations be stored and how should they be shown
in the local language. Should be use resource files to achieve this?
Any pointers to the technique to be used, will be greatly helpful.

Thanks,
Yash

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      03-24-2007
On Mar 24, 7:35 am, yas...@gmail.com wrote:
> In our ASP .NET 1.1 application, we query the database to obtain a
> list of categories such as "Agriculture", "Business", etc. and display
> them to the user, each against a checkbox. The names of categories are
> obtained dynamically from the DB. The categories are stored in the DB
> in English. We now want to support multiple languages in our
> application. The DB values will remain unchanged, but the categories
> will be displayed in different languages based on the Locale. The
> categories will be translated to their local equivalents in the local
> characters.
> Ideally, I expect a facility by which I can translate such as:
> Translate(MyStringFromDB,"zh-CHS")
> This would lookup the translation table and find the Chinese word for
> the English value contained in MyStringFromDB.
> Where should these translations be stored and how should they be shown
> in the local language. Should be use resource files to achieve this?
> Any pointers to the technique to be used, will be greatly helpful.
>
> Thanks,
> Yash


Do it in the database. It will be at least faster.

SQL Server?

TBL_Categories is your English categories

TBL_

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Error while parsing local languages using SAX/DOM parser. Sidhartha XML 1 09-15-2008 10:46 AM
.NET 2.0: Sending email on local domain to local exchange 2K server Jim in Arizona ASP .Net 8 01-24-2006 05:37 PM
Access local port or Running local exe file =?Utf-8?B?WVNVVA==?= ASP .Net 0 01-14-2006 12:41 AM
Browser link to local file works when local, not work when servedfrom http lurker HTML 1 04-05-2005 05:10 AM
Can't use 'local' to find sql server instances on local machine karim ASP .Net 1 06-26-2003 09:17 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57