469,622 Members | 2,120 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

How can ASP support multiple languages?

CM
Hi, there:

I have some questions, I hope someone can briefly describe how ASP (not
ASP.Net) to do the following things:

1) Get real-time information from other web site such as tracking via
Fed-Ex;

2) Real-time credit card charging via a payment gateway such as WorldPay;

3) How to support multiple languages.

Thanks a lot!

CM
Jul 19 '05 #1
5 3044

"CM" <cm***@hotmail.com> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
Hi, there:

I have some questions, I hope someone can briefly describe how ASP (not
ASP.Net) to do the following things:

1) Get real-time information from other web site such as tracking via
Fed-Ex;
Your best bet is to research with Fed Ex to see if they offer a component,
rather than trying to use xmlhttp to try to "screen scrape" their site or
something like that.

2) Real-time credit card charging via a payment gateway such as WorldPay;
Your processor should either provide you with a component to use on your
server a link to their server and transactions will take place there.

3) How to support multiple languages.


Write your pages in multiple langues. :/

Ray at work
Jul 19 '05 #2
CM
Thank you very much for the quick answer!
So, for the multiple languages question, that means ASP doesn't support
multiple languages. But ASP.Net can, Am I right?
CM

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:u%***************@TK2MSFTNGP11.phx.gbl...

"CM" <cm***@hotmail.com> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
Hi, there:

I have some questions, I hope someone can briefly describe how ASP (not
ASP.Net) to do the following things:

1) Get real-time information from other web site such as tracking via
Fed-Ex;
Your best bet is to research with Fed Ex to see if they offer a component,
rather than trying to use xmlhttp to try to "screen scrape" their site or
something like that.

2) Real-time credit card charging via a payment gateway such as

WorldPay;
Your processor should either provide you with a component to use on your
server a link to their server and transactions will take place there.

3) How to support multiple languages.


Write your pages in multiple langues. :/

Ray at work

Jul 19 '05 #3
By multiple languages, you mean English and Portuguese, for example, not
vbscript and jscript, yes?

What I believe that some people do is put all their page contents in a
database, and have a table (or column, or whatever) for each language. And
to determine the language to default to, you can use
request.SErvervariables("HTTP_ACCEPT_LANGUAGE"). Maybe something like:

<%
Dim sLanguage
sLanguage = UCase(Left(Request.sErverVariables("HTTP_ACCEPT_LA NGUAGE"), 2))
sSQL = "SELECT [PageContent] FROM [" & sLanguage & "] WHERE [PageID]=1"
Set oADO = Server.CreateObject("ADODB.Connection")
oADO.Open YourConnectionString
Set rsContent = oADO.Execute(sSQL)
sContent = rsContent.Fields.Item(0).Value
rsContent.Close : Set rsContent = Nothing
oADO.Close : Set oADO = Nothing
Response.Write sContent
%>

This is where you'd have a database with a table named EN and a table named
PT, and those tables would contain the content in the appropriate language.
This, of course, isn't how you'd have to structure your DB, but in theory,
this is one way to do it.

Ray at work

"CM" <cm***@hotmail.com> wrote in message
news:Os**************@tk2msftngp13.phx.gbl...
Thank you very much for the quick answer!
So, for the multiple languages question, that means ASP doesn't support
multiple languages. But ASP.Net can, Am I right?
CM

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:u%***************@TK2MSFTNGP11.phx.gbl...

"CM" <cm***@hotmail.com> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
Hi, there:

I have some questions, I hope someone can briefly describe how ASP (not ASP.Net) to do the following things:

1) Get real-time information from other web site such as tracking via
Fed-Ex;


Your best bet is to research with Fed Ex to see if they offer a component, rather than trying to use xmlhttp to try to "screen scrape" their site or something like that.

2) Real-time credit card charging via a payment gateway such as

WorldPay;

Your processor should either provide you with a component to use on your
server a link to their server and transactions will take place there.

3) How to support multiple languages.


Write your pages in multiple langues. :/

Ray at work


Jul 19 '05 #4
CM
Thanks a lot! This is just what I want to know.
CM

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
By multiple languages, you mean English and Portuguese, for example, not
vbscript and jscript, yes?

What I believe that some people do is put all their page contents in a
database, and have a table (or column, or whatever) for each language. And to determine the language to default to, you can use
request.SErvervariables("HTTP_ACCEPT_LANGUAGE"). Maybe something like:

<%
Dim sLanguage
sLanguage = UCase(Left(Request.sErverVariables("HTTP_ACCEPT_LA NGUAGE"), 2)) sSQL = "SELECT [PageContent] FROM [" & sLanguage & "] WHERE [PageID]=1"
Set oADO = Server.CreateObject("ADODB.Connection")
oADO.Open YourConnectionString
Set rsContent = oADO.Execute(sSQL)
sContent = rsContent.Fields.Item(0).Value
rsContent.Close : Set rsContent = Nothing
oADO.Close : Set oADO = Nothing
Response.Write sContent
%>

This is where you'd have a database with a table named EN and a table named PT, and those tables would contain the content in the appropriate language. This, of course, isn't how you'd have to structure your DB, but in theory,
this is one way to do it.

Ray at work

"CM" <cm***@hotmail.com> wrote in message
news:Os**************@tk2msftngp13.phx.gbl...
Thank you very much for the quick answer!
So, for the multiple languages question, that means ASP doesn't support
multiple languages. But ASP.Net can, Am I right?
CM

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:u%***************@TK2MSFTNGP11.phx.gbl...

"CM" <cm***@hotmail.com> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
> Hi, there:
>
> I have some questions, I hope someone can briefly describe how ASP (not > ASP.Net) to do the following things:
>
> 1) Get real-time information from other web site such as tracking via > Fed-Ex;

Your best bet is to research with Fed Ex to see if they offer a component, rather than trying to use xmlhttp to try to "screen scrape" their site or something like that.

>
> 2) Real-time credit card charging via a payment gateway such as

WorldPay;

Your processor should either provide you with a component to use on your server a link to their server and transactions will take place there.
> 3) How to support multiple languages.

Write your pages in multiple langues. :/

Ray at work



Jul 19 '05 #5
Distinguish between these languages in the user interface, or in the data
you capture and present. These are different issues.

In the latter case, I use UTF-8 as the charset, which ACCESS supports. I'm
handling Cyrillic, Arabic and Hebrew, and the CJK far-eastern languages as
well as the western ones, in an English ASP user interface. No sweat. HTH.

AS


Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Aditya Ivaturi | last post: by
22 posts views Thread by Matthew Louden | last post: by
2 posts views Thread by kensmtih1976 | last post: by
3 posts views Thread by 00_CuMPe3WaR3D12 | last post: by
1 post views Thread by Kevin Burrowes | last post: by
40 posts views Thread by JeffP | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.