I need a helper function to get the current language code. I want to use it in a templete file, like /products/view.phtml, only for testing purposes.
Does it already exi
You can also use :
$languageCode = Mage::app()->getStore()->getLanguageCode();
Don't forget to configure your store locales in your admin. Go to menu :
System -> Configuration -> General -> Locale Options
And set the correct Locale for each Websites or stores