p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Databases (http://p2p.wrox.com/forumdisplay.php?f=62)
-   -   Multi language web site (http://p2p.wrox.com/showthread.php?t=18625)

asifqua September 20th, 2004 05:59 AM

Multi language web site
 
Hi all,
i want to design a multi language web site just like www.un.org . i wants that a user select the desire langauge and then the page should translate into that language autometically.

i have all the text in english. is it possible that all the text of the translat autometically into the particular langauge when a user select the desire language.i.e french , arabic ,chinees , spenish etc.

regards,
Asif Hameed

qazi_nomi September 20th, 2004 06:19 AM

Dear Asif there is I think no methode to translte the web pages and as for as this web site which you mention is concern in it each web page is separately build in each language.




Numan
--------------------------------------------------
Love is the most precious thing of this world. So find it and grab it!

happygv September 22nd, 2004 06:51 PM

You should have the content ready in different languages and store them all into database, that is well designed, and pull the data pertaining to that language based on user's selection on the web page, this is how all such multilingual websites be working.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection

netcrawler September 30th, 2004 09:15 AM

here is one easy way to do the language switch thats the one I use and it works like a charm:

Create an ASP page and name it language.asp. Store it in the root of your Web site. Include the following code before the HTML tag on the page.

Code:

<%@ LANGUAGE="VBSCRIPT" %>
<%
sString = Request.ServerVariables("HTTP_REFERER")
sFullFileName = Mid (sString, Instr (sString, ".asp"))
iLen = Instr (sString, ".asp")-2
sFileName = Mid (sString, 1, iLen)
sExtension = Mid (sString, iLen+1, 1)
if (sExtension = "e") Then
sExtension = "f"
else
sExtension = "e"
end if
sNewFileName= sFileName & sExtension & sFullFileName
Response.Redirect sNewFileName
%>




theSCIENTIST October 13th, 2004 08:59 AM

netcrawler: how does your code work on a multi language file that has a directory structure like this:

- languages
| - en
| files
| - pt
| files
| ...

We have language files with the same constants defined and all that changes between them are the values of each constant, with it's own language specific value.

This multi-language feature, seams to be a real problem to do with ASP since dynamic includes are not possible, any help will be highly apprecitted. Thx.


happygv October 14th, 2004 02:00 AM

When one want to switch between different languages, where you have all content updated in different languages organised in the folder structure as mentioned in your post, you will have to just redirect to the equivalant page of the other language. That should do. But as I have read a lot on that, it is little difficult in terms of maintenance. Coding for such setup is easy, after which maintenance is a headache as one has to constantly update all versions of language contents in all such folders.

In netcrawler's suggested code, it should work this way. All the file names corresponding to English are prefixed with "e<FILENAME>.ASP". So when one request to change to that version of the page, it redirects to "e<FILENAME>.ASP"

As per my understanding, in your case, you should redirect to "en\<FILENAME.ASP" or "pt\<FILENAME.ASP". Should alter the code a bit, that was posted here.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection

Kabe January 13th, 2005 12:49 PM

Hi Vijay G

Is it possible to point me to some essays to read myself more about setting up a db for a multilingual website.

Cause I'm wrestling too with this for the first time, and just want to read some case studies.

My main question is what content do I put in a database and what not. There's a lot of static content which is stored in xml-files and there's other more dynamic content (menu for example) which I'll put in db.
If it's not much more effort to put all in db, why not, but what is the best way to take. For example a screen with a big table of 5 rows and 20 lines. How to store data shown onscreen in a table, with top headers and left column a number counter for each line.

You see, a lot of quetion I have, before starting up a databse design

Any suggestion, essays, documentation, ... ?

Thx a lot
Kabe

Vadivel January 18th, 2005 12:52 AM

Check out Microsoft's Web Font Wizard (popularly known as WEFT) and Bitstream.com. Almost some 4 years back I have used these tools for creating multilingual sites.

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com

andreaARG September 25th, 2006 10:43 PM

Check Out this website, it has an interesting explanation of diferent methods for multilanguage websites
http://www.indiawebdevelopers.com/te...ge_support.asp

Best Regards,
Andrea


rashmipant December 5th, 2006 04:34 AM

[V]Hi this is Rashmi working with php.Will u pls tell me how i can skip to the first page of my web-site.Actually we hev link in our home page but what i want is that if no click event is generated for the first page then autometically we will move to first page of our site after some time(ex. after 4-5 min)


Quote:

quote:Originally posted by happygv
 When one want to switch between different languages, where you have all content updated in different languages organised in the folder structure as mentioned in your post, you will have to just redirect to the equivalant page of the other language. That should do. But as I have read a lot on that, it is little difficult in terms of maintenance. Coding for such setup is easy, after which maintenance is a headache as one has to constantly update all versions of language contents in all such folders.

In netcrawler's suggested code, it should work this way. All the file names corresponding to English are prefixed with "e<FILENAME>.ASP". So when one request to change to that version of the page, it redirects to "e<FILENAME>.ASP"

As per my understanding, in your case, you should redirect to "en\<FILENAME.ASP" or "pt\<FILENAME.ASP". Should alter the code a bit, that was posted here.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection


All times are GMT -4. The time now is 12:39 PM.

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