Multilanguage Links

If you needed to create a multilanguage site using our Content Managment System you surely came across this problem:

How can i make absolute links keeping the current user’s language?

Easily done: just use php’s variable $aDirectoryLingua[$lang] inside your anchor.

Exemple:

<a href=”http://www.keycode.it/<? echo $aDirectoryLingua[$lang]; ?>/index.php”>Text Here</a>

Using this code your link will keep the user’s selected language.

Stay Tuned!