<commit_before><?php
/**
 * Nooku Framework - http://www.nooku.org
 *
 * @copyright	Copyright (C) 2011 - 2013 <NAME> and Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		git://git.assembla.com/nooku-framework.git for the canonical source repository
 */

use Nooku\Library;
use Nooku\Component\Pages;

/**
 * Default Module Html View
 *
 * @author  <NAME> <http://nooku.assembla.com/profile/johanjanssens>
 * @package Component\Pages
 */
class PagesModuleDefaultHtml extends Pages\ModuleDefaultHtml
{
    /**
     * Renders and echo's the views output
     *
     * @return PagesModuleDefaultHtml
     */
    public function render()
    {
        JFactory::getLanguage()->load($this->getIdentifier()->package, $this->module->name);
        return parent::render();
    }
}<commit_msg>re #302 Automatically load module language files.<commit_after><?php
/**
 * Nooku Framework - http://www.nooku.org
 *
 * @copyright	Copyright (C) 2011 - 2013 <NAME> and Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		git://git.assembla.com/nooku-framework.git for the canonical source repository
 */

use Nooku\Library;
use Nooku\Component\Pages;

/**
 * Default Module Html View
 *
 * @author  <NAME> <http://nooku.assembla.com/profile/johanjanssens>
 * @package Component\Pages
 */
class PagesModuleDefaultHtml extends Pages\ModuleDefaultHtml
{
    /**
     * Renders and echo's the views output
     *
     * @return PagesModuleDefaultHtml
     */
    public function render()
    {
        // Load language
        $this->getObject('translator')->load(array($this->module->name => $this->getIdentifier()->package));
        return parent::render();
    }
}
{'fraction_non_alphanumeric': 0.14957507082152974, 'fraction_numerical': 0.01189801699716714, 'mean_word_length': 3.276029055690073, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5321972', 'n_tokens_mistral': 599, 'n_tokens_neox': 565, 'n_words': 122}