|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. ![]() |
|
#2
|
||||
|
||||
|
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:
__________________
"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... |
|
#3
|
|||
|
|||
|
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.... |
|
#4
|
|||
|
|||
|
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:
|
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Development Software > Creating a Multi-Language Version Website |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|