Hi, I'm new in making and changing modules. Can someone tell how do I check the current language inside a module code?I want something like this:

if (the interface is in language1)
{
do something;
}
if (the interface is in language2)
{
do something else;
}

Thank you!!

Comments

pobster’s picture

  global $locale;
  print $locale;

Pobster

enkara’s picture

Thank you