فتحات العرب Joomla! • Index page: Extensions for Joomla! 2.5 • Re: Retrieving the language code with Falang

Sunday, December 22, 2013

Extensions for Joomla! 2.5 • Re: Retrieving the language code with Falang

Hello.



I'm using



$lang = JFactory::getLanguage();

$lan = $lang->getName();



to try to get the language selected for the user through the flags, but it always returns "English (United Kingdom)" in my case.



I have installed 2 languages, english and spanish.

All other functionalities work as expected, so I would say it is correctly intalled.



I'm using joomla 3.2.0 and falang 1.3



Why it doesnt returns the selected language from a custom php?



Thank you

Statistics: Posted by dansabrasil — Sun Dec 22, 2013 5:59 pm








via Joomla! http://forum.joomla.org/viewtopic.php?t=809364&p=3120416#p3120416

No comments:

Post a Comment