how to detect current language to show the other(s) in the menu I'm using i8n to host a bilingual site and I only like to display the inactive language in the top bar. What php code do I need to detect the current language so I place the inactive language in the template? 
Thanks:

&lt;a href=
&lt;?php
global $language; 
if (($language -&gt; name) == 'English') { 
print "\"http://www.mangallery.net/fr\""."&gt;french";
} else {
print '"http://www.mangallery.net"'."&gt;english";
}
?&gt;
&lt;/a&gt;
Use the global variable $language

https://api.drupal.org/api/drupal/developer%21globals.php/global/language/7