Ciao Marcela,
I followed the same guide you are referring to and it works fine.
To your question: yes, you create a directory in your phpwcms home directory and copy this script into it (you can change the name if you don't like it):
To create the script you can use Notepad and copy the code into it.
The structure in phpwcms looks like this, if you want to take the example of
http://olsen-traductions.ch:
For every element of the structure, you need to define an alias in the admin section of phpwcms. The name after the language needs to be identical and you have to decide in which language you want them, or use a bilingual alias (may improve the search engine ranking, if important), as for example:
German: de_contact-kontakt (or just de_contact)
English: en_contact-kontakt (or just en_contact)
To have a different image on the top, I have created 2 different templates - 1 for the french (english in your case) and one for the german documents:
In my case the switch is done by clicking on the image in the top section (I don't use this area as "home" link):
For the french template to switch to german:
Code: Select all
<!-- switch -> deutsch -->
<a href="index.php?de{PHP:scripts/strip-prefix.php}" target="_self">{IMAGE:titre-d.jpg}</a>
respectlivley to switch back to french in the german template:
Code: Select all
<!-- switch -> français -->
<a href="index.php?fr{PHP:scripts/strip-prefix.php}" target="_self">{IMAGE:titre-f.jpg}</a>
I hope this helps
Cheers Pierre