473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 3200

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Aditya Ivaturi | last post by:
We have a CMS which is written is based on php & mysql. Recently we received a request to support multiple languages so that sites in that particular laguage can be created. I did some search on...
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
2
by: kensmtih1976 | last post by:
I have done multi lingual support in C++ and now I am trying to figure out how to do in C#. In C++, there were the string tables where you could enter text in multiple languages, and now I want...
0
by: Josh K. | last post by:
Whats the best way to support multiple languages in a 3 tier .NET app? SQL server on the back end using National values NVARCHAR, NTEXT, etc.. a .NET component in the middle tier and then ASP.NET...
3
by: 00_CuMPe3WaR3D12 | last post by:
I know there is Culture feature with Asp.net, but what I want to know is how to organize/design a web application that supports multiple languages. What is the best approach? Do I use "If,...
1
by: vinoraja | last post by:
There are a number of reasons we don't implement Multiple Implementation Inheritance directly. (As you know, we support Multiple Interface Inheritance). However, I should point out that it's...
1
by: Kevin Burrowes | last post by:
We are working on a large enterprise application and the client recently request the site support multiple language, including many of the Asian languages. While this doesn't have to be supported...
0
by: dtsearch | last post by:
A new beta build offers 64-bit developer access to dtSearch's "terabyte indexer," and preliminary MS Word 2007 and Excel 2007 support (in both 64-bit and 32-bit versions) BETHESDA, MD (July 22,...
40
by: JeffP | last post by:
Is this a holiday week? There are way too many unanswered posts! I dont' care if the person asked a dumb or un-comprehensible question, they deserve a response even if it is to clarify or...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.