View Full Version : Multilanguage web page
I would like to create a multilanguage page, for exemple english/german so when you click on german you've got the information in that language, you click back on english you've got the same information in english. How can I do it?
McCoy
12-02-2006, 11:03 PM
Make two versions of the webpage, one on the /eng subdirectory and one on the /ger subdirectory.
Then make the appropiate links in each version to the other version.
Can you be more specific? I tried something, it works on my computer but once I upload it on my domain, it doesn't work at all.
McCoy
12-03-2006, 08:30 AM
The english website should be in /public_html/eng on the server, and the german website, in /public_html/ger
Inside each of the webpages, the links to each version should look like this:
German version link to english version:
<a href="http://www.yourdomain.com/eng">Check out our english webpage</a>
English version link to german version:
<a href="http://www.yourdomain.com/ger">Check out our german webpage</a>
Hi McCoy,
Thanks for your help. I did create the folder GER for the german version in my /public_html/ on the server. I have one more question. On my computer, I was trying to use the images on my main assets folder for my english version of the website since the same images are going to be used for both version of the website, but the images links wasn't working. I created another folder assets inside the GER folder and load the same images in it and it was working fine. My question is, do I have to create assets folder olso inside the GER in my /public_html/ GER on the server? I'm thinking that the images are going to be load in that assets folder inside the GER folder on the server. Correct me if I'm wrong.
McCoy
12-06-2006, 11:07 AM
Yes, you have to copy all the files of the ENG site to the GER file, that includes images, downloadable files, flash content, et-cetera.
Although another option would be to create a COMMON directory in public_html and make the referencies to the images and all the content by using that common directory. For example, an image would be done like this:
<img src="../common/image.jpg" />
With ".." you are saying "go down one directory" (that is, go from ENG to PUBLIC_HTML, for example), and then go from that directory to common.
So the structure should be like this:
public_html/eng
public_html/ger
public_html/common
That way you don't have to duplicate all the content, but it means that you have to change all the file and images references in your actual code.
Thanks for all, I'll tell you later how it goes.
Thanks again
jadvanced
12-12-2006, 09:41 PM
I faced that barrier before and i found out the two best ways to do it is to link the main language page or by a drop drown box which is user friendly.
truly.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.