Include selected language in a href I have a few hardcoded links in a block on my homepage.

&lt;a href="/info"&gt;Info&lt;/a&gt;


But I want them to include the selected language.

e.g. Wen french is selected I want it to link to

&lt;a href="/fr/info"&gt;Info&lt;a&gt;


How can I do this?
You need to use l function to print links in Drupal... It has support for language

global $language;
print l("Info", "info",  array('language' =&gt; $language-&gt;language));