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.


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

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

Stay Tuned!