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
Afaik there is no such helper function, but you could of course build your own using:
Mage::getStoreConfig('general/locale/code', Mage::app()->getStore()->getId());