Skip navigation
nermalg
Currently Being Moderated

Multi language web site

Nov 19, 2013 2:51 PM

Tags: #language_swap

Multi language web site

 

What is the best way to have my web site switchable (initially from links on the main index.html page) between different languages?

 

Do I simply clone the English version (including all the sub-directories and structure) into a sub-directory and translate each page and put a link on the main index.html page to a translated copy of the index.html page in the German sub-directory

 

That would mean I effectively have two websites to maintain.

More when it is translated into more languages.

 

Currently all the English pages are made from a template (dwt file)

 

I assume this adds a level of complication to the design.

 

Or is there a better/easier way?

 

thanks

 
Replies
  • Currently Being Moderated
    Nov 20, 2013 8:30 AM   in reply to nermalg

    Hello,

     

    --------- deleted: my answer was clearly unnecessary ---------.

     

    Hans-Günter

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 19, 2013 4:19 PM   in reply to nermalg

    This is a website that the client did not continue with http://ncca.com.au/new/, hence it has not been finished.

     

    In the top right hand corner are two flags, Dutch and English. By clicking on a flag, the language session variable is changed. This session variable is used througout the website to determine the content as in

    if ($_SESSION['lang'] == 'en') {include("home_en.php");}

    if ($_SESSION['lang'] == 'nl') {include("home_nl.php");}

    If there are more languages it is better to use the select switch rather than an if statement.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points