Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2003, 07:54 PM
Registered User
 
Join Date: Nov 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default A different language

Can someone guide about using a different language other than english for my web pages. I would like the user to be able to select their language and have the pages render in that particular language.
I don't quite know all the details on what I need to do and what, if anything the users would have installed other than the language set itself.
I know that I have to use meta-equiv and pick the character set.
I understood that by doing so, it would render my html automatically to that language if I that particular character set installed on my computer.
So far, I haven't gotten it to work and I think I just don't quite understand all that I am to do in order for it to work.
any help/guidance would be apperciated.
thank you:-)

 
Old December 2nd, 2003, 04:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

The meta charset just sets the character encoding (that's which numbers represent which characters), it sounds like you expect it to translate the text - it doesn't.

You have to translate the pages into all languages you expect to support, then provide some sort of structure to enable users to navigate pages in their required language, for example:
- replicate your site under different directories, where each directory represents a language,
- or build all the pages dynamically from a database which stores all the text keyed by language.

You may need to change the charset for some languages too, it just depends which ones you intend to support.

hth
Phil
 
Old December 2nd, 2003, 08:19 AM
Registered User
 
Join Date: Nov 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you, I thought I was full of baloney about it automagically translating them.
Now, I have another question concerning this.
The user would be entering their name and other information in their language. I would want to store it in the db as english, but be able to display it back to them in their chosen language.
How do you suggest I do this ?
Also, I know I would need to display error message to them in their language, but my underlying code (server side) could remain them same
as to inserting a record or recording a value. Correct?
Except for contact information, I use values from listboxes and store the value in a db (MS Sql Server) so basically that would not change, only the text value I display in the listbox.
It sounds as if I need to have a seperate db in the language?
How do I set my computer to use a different language, I think I have to only set up the keyboard charset?
thanks for helping me :-)



 
Old December 4th, 2003, 09:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Maybe its just a terminology problem, but you need to be clear in your mind about the difference between languages and character encodings.
For example:
Quote:
quote:
The user would be entering their name and other information in their language. I would want to store it in the db as english, but be able to display it back to them in their chosen language.
How do you suggest I do this ?
When you say you want to store it in the db as english, do you mean your db uses english character encoding (like windows-1252 or iso-8859-1), or do you mean you want to translate the text (e.g. from hola to hello)?

Which languages are you intending to support?
 
Old December 5th, 2003, 11:02 AM
Registered User
 
Join Date: Nov 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry it has taken me so long to reply - got swamped.
well, I guess what I am saying is that I want to be able to dispaly the pages in their language such as french, german etc. But there will be english reading people who will view the data entered as well as those in their language. For example, I may be only to understand french, so i would want the dat to be displayed in french. But maybe my sponsor can only understand english, so I would wnat the french data to display to them in english?
Does that help to explain ??
and again, thanks for your help.:-)

 
Old December 5th, 2003, 11:23 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

If users are entering data in their own language and you want to be able to display that data in other languages you cannot get away from the issue that someone is going to have to physically translate that data and enter it into the database under the different language codes.

Its the same with all of the content of your web pages. You can set up a structure to support different languages, but the only way it will appear in other languages is if someone physically translates it. I don't know of any software that can reliably translate text.
 
Old December 5th, 2003, 04:03 PM
Authorized User
 
Join Date: Nov 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is a web site:
http://www.freetranslation.com/
which has a translation demo. This might clarify the difference between the language and the character set.


Sandra MacGregor
 
Old December 5th, 2003, 04:47 PM
Registered User
 
Join Date: Nov 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you for answering. That is a really interesting site.
gives me some real good ideas and a better handle on all this.
Is a tad bit confusing at first. So easy to have misconceptions.
thanks again:D






Similar Threads
Thread Thread Starter Forum Replies Last Post
Which language would be best for... GeckOblue925 Intro Programming 4 February 20th, 2007 01:04 AM
Which language to use? SkyBlueshoes Intro Programming 1 March 9th, 2006 08:51 AM
Which language should I use ? avico General .NET 2 November 28th, 2005 08:02 AM
Which language is better? sario777 VS.NET 2002/2003 4 April 17th, 2005 01:35 PM
c language help!!! kernel_zap C# 2 April 29th, 2004 09:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.