How to generate url with language code in drupal7?
You can get the URL by using following code

global $language ;
$lang_name = $language-&gt;language ;

$url_current = $GLOBALS['base_url']/$lang_name;