Development Software
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementDevelopment Software

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 26th, 2007, 07:47 PM
blurzbelle blurzbelle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 86 blurzbelle User rank is Private First Class (20 - 50 Reputation Level)blurzbelle User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 h 42 m 23 sec
Reputation Power: 5
Exclamation Creating a Multi-Language Version Website

Hi,

I currently is doing a website that requires to be in English and Chinese.

I am wondering that is there any other ways to the website rather than having 2 identical sites that is in different languages?

I have tried to do some research but there is nothing much i can find. Some of the ideas i have as far are

1. Do 2 different website (i really don't hope i will be using this)
2. Using Database to retrieve the contents (i think it will require long loading time for the web pages)
3. Use XML (i think this is possible, BUT I HAVE NO IDEAS ON HOW TO START... i don't really have much experience working with xml)

Thanks for any comments and suggestions provided.

Reply With Quote
  #2  
Old February 27th, 2007, 03:46 PM
DorkRawk's Avatar
DorkRawk DorkRawk is offline
I [heart] Toxic Waste
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Here
Posts: 416 DorkRawk User rank is First Lieutenant (10000 - 20000 Reputation Level)DorkRawk User rank is First Lieutenant (10000 - 20000 Reputation Level)DorkRawk User rank is First Lieutenant (10000 - 20000 Reputation Level)DorkRawk User rank is First Lieutenant (10000 - 20000 Reputation Level)DorkRawk User rank is First Lieutenant (10000 - 20000 Reputation Level)DorkRawk User rank is First Lieutenant (10000 - 20000 Reputation Level)DorkRawk User rank is First Lieutenant (10000 - 20000 Reputation Level)DorkRawk User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 19184 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 20 h 11 m 16 sec
Reputation Power: 159
MySpace
You could possibly write a function that would take in text in English and translate it into Chinese (maybe using some online translator, I'm not sure). Have all the text displayed on your site be available in a variable. If a flag it set run the function on the text variable before displaying the text. Something like this....

PHP Code:
echo "<p>";
if (
$chinese_flag)
{
  
$text_content text_to_chinese($text_content);
}
echo 
$text_content;

echo 
"</p>"
__________________
"Nobody wins in a butter eating contest."

My band, The American Autumn and on MySpace
Dinosaurs Eat Everybody
Team Hamster Hat
.digits - Every number is the answer to something...

Reply With Quote
  #3  
Old February 28th, 2007, 07:01 PM
blurzbelle blurzbelle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 86 blurzbelle User rank is Private First Class (20 - 50 Reputation Level)blurzbelle User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 h 42 m 23 sec
Reputation Power: 5
Cool

Thanks for the reply.

but i am using jsp to do my website and currently i having some problem on the xml design and how should the pages retrieve its content.... now i trying using javascript to retrieve the info, but i having some problem....

Reply With Quote
  #4  
Old February 28th, 2007, 08:05 PM
afro afro is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 31 afro User rank is Sergeant (500 - 2000 Reputation Level)afro User rank is Sergeant (500 - 2000 Reputation Level)afro User rank is Sergeant (500 - 2000 Reputation Level)afro User rank is Sergeant (500 - 2000 Reputation Level)afro User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 17 h 53 m 42 sec
Reputation Power: 10
Hi, sorry I can't be of direct help as it's been a while since I had a go at this..

Anyway since you are using jsp's then you should be able to take advantage of java ResourceBundle's.

Try searching for information on properties, resource bundles and locales (within a java context) and see where they take you. I did a little experiment a while back to make a small site in english and german and this was the way I was guided to go....

PS: You will probably have more joy if you post this in the java forum.
afro


Quote:
Originally Posted by blurzbelle
Hi,

I currently is doing a website that requires to be in English and Chinese.

I am wondering that is there any other ways to the website rather than having 2 identical sites that is in different languages?

I have tried to do some research but there is nothing much i can find. Some of the ideas i have as far are

1. Do 2 different website (i really don't hope i will be using this)
2. Using Database to retrieve the contents (i think it will require long loading time for the web pages)
3. Use XML (i think this is possible, BUT I HAVE NO IDEAS ON HOW TO START... i don't really have much experience working with xml)

Thanks for any comments and suggestions provided.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementDevelopment Software > Creating a Multi-Language Version Website


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT