active language in template.php

Pooya <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <CAHHGm167J1BvnEgqdsZWWi=Uzr=Ja0KQJdOP4OB9Y40Xz6vhQg@mail.gmail.com>
Quick and simple:
is there a way to get the active language user is viewing site in
template.php, sth like $language->language in page.tpl.php?

I want to use it in a condition like this:
function rouzdarou_breadcrumb($breadcrumb) {

if(arg(0) == 'news'){
  global $base_url;
  if($language->language=='en'):
    $breadcrumb[0] = l('Home', $base_url);
    $breadcrumb[1] = l('News', 'news');
  endif;
}
 return theme_breadcrumb($breadcrumb);
}


but dsm($language->language); returns nothing in template.php. If any1 knows
another way to achieve this share :)
Thanks in advanced.

-- 
Pooya Sanooei
Twitter <http://twitter.com/sourcesoft> -
Facebook<http://facebook.com/pooya.sanooei>-
Website <http://www.sanooei.com>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.