Wrox Programmer Forums
|
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. 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 XML 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 March 13th, 2005, 04:54 PM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using XML for multilanguage?

I am working on an app which needs to be multilangual.
Would it be a good idea to store the language strings in an XML file and add it in on page creation?

I thought about creating xml files for each language (english.xml, french.xml, german.xml and so on).
The english one would look like:
Code:
<language>
<yes>Yes</yes>
<no>No</no>
...
</language>
and the french one would look like:
Code:
<language>
<yes>Oui</yes>
<no>Non</no>
...
</language>
What would be the best method to access the strings?
Is there a better/faster method?

Thanks in advance for any ideas or suggestions.
 
Old May 10th, 2005, 03:28 PM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You may try to have a look at this site:
http://fxmods.com/ open source ASP/XML Portal using Multilang. XML

I'm in the proces of turning an ASP site into multilanguage and is looking for a straight forward solution.

Let me know, if you find a solution.
Henrik

 
Old May 19th, 2005, 08:19 AM
Authorized User
 
Join Date: Jun 2003
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kabe
Default

hi, have a look at this

http://deba.bernaert.net:8080/

also multilingual, and I strived not using any querysting.

for english version of a page you'll have this url:
http://deba.bernaert.net:8080/en/page.asp
for a dutch version:
http://deba.bernaert.net:8080/nl/page.asp

based on the 'path_info' (en/page.asp) I know always that first 2 characters = language code.

Like this, I can use just a copy of page.asp for each language ...
To load the right xml-language file, i'm using this repository

xml/languages/xx/pages.xml

xx = language code, like this, i can load the right xml language.

I'm not collecting all languages in one document. not interesting to handle with translation offices.
just to give u an idea ....
shoot if u have more questions ...

grzz, kabe

ps: mentioned site comes live one of these days on www.deba.biz
 
Old May 19th, 2005, 10:10 AM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi - I came across this page, which might one solution:

Multilingual Web Pages with ASP and XML

http://archive.devx.com/xml/articles/kc1100/cox01-1.asp

Henrik






Similar Threads
Thread Thread Starter Forum Replies Last Post
MultiLanguage Support toshesh ASP.NET 1.0 and 1.1 Basics 0 March 22nd, 2007 11:11 AM
Meaning Of MultiLanguage nir_pankaj C# 8 March 8th, 2007 01:10 PM
Multilanguage software tiyyob .NET Framework 2.0 1 June 14th, 2006 08:51 AM
Multilanguage Error jap ASP.NET 1.0 and 1.1 Professional 1 September 6th, 2005 04:32 AM
Multilanguage Olaf_l Classic ASP Basics 3 March 23rd, 2005 06:13 AM





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