Easy trick to have text in another language

Didier31

Avatar: Didier31

2008-12-30 08:53

After a few tests, I found an easy trick to have the same site in say two languages.

For example, English and French (or English and Polish).

As the language selection changes the architecture and design, it should not be used. So, the trick is to save the en.php file under another name, then rename the fr.php file (or the pl.php) to en.php.

That way, the site does not change, but most of the text and all messages are in the new language.

If someone can write a small script to do that, a button could be added on the main page to allow the user to swap from en to fr or from en to pl.

Of course, all embedded texts within forms will stay in English (for the moment)

» Quick.Cart v3.x

26 years of DEC support, that is a wonderful job.

Back to top
about us | contact