I would like to modify a core component of Joomla by setting up a condition based on the language the website is displaying. My code changes don't seem to work and I'm not sure what I'm doing wrong.
<?php
defined('JPATH_BASE') or die;
$lang = JFactory::getLanguage();
?>
<div class="Home">
<?php if ($lang->language == 'en-US') : ?>Home:
<?php elseif ($lang->language = 'fr-fr') : ?>Accueil :
<?php endif; ?>
</div>