Print current base language in tpl.php I statically linked an anchor to my /cart page on page.tpl.php, but since it's a multi language website, when I'm on http://localhost/fr it still goes to http://localhost/cart instead of http://localhost/fr/cart

I'd like to know how to print the current base language path or base_url and concatenate it with /cart

thanks.
If you want to display the cart link in template you better do it with l or url function, example:

in page.tpl.php file:

&lt;ul class=""&gt;
  &lt;li&gt;&lt;?php print l(t('Cart', 'cart')) ?&gt;&lt;/li&gt; // first way
  &lt;li&gt;&lt;a href="&lt;?php print url('cart') ?&gt;"&gt;Cart&lt;/a&gt;&lt;/li&gt; // the second way
&lt;/ul&gt;