Print current base language in tpl.php
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;