title: how to get joomla languages list
body: <p>i need to get languages list to all languages installed in my joomla site to use the list in drop down list.</p>
  
  <pre><code>$lg = &amp;JFactory::getLanguage();
  foreach ($lg-&gt;getKnownLanguages() as $l)
  echo $l-&gt;getName() . ', ';
  </code></pre>
  
  <p>what shall i do?</p>