By GuillaumeTruttmann on
Hello everybody,
I just want to know if there is a function in drupal to know what language is configurated for the user which is currently visiting the website, so that i can print "welcome, you are reading an english text" or "welcome, you are reading a french text" ?
Thanks a lot
Comments
A function in Drupal or a
A function in Drupal or a browser/ os language setting?
Drupal handles locales like this;
Pobster
The $language object is your
The $language object is your friend. Have a look at it: