<commit_before><?php

namespace WebCMS\Translation;

/**
 * @author <NAME> <tomas.voslar at webcook.cz>
 */
class Translator implements \Nette\Localization\ITranslator {
    
    /* @var TranslationArray */
    private $translations;

    public function __construct($translations) {
	$this->translations = $translations;
    }

    /**
     * Translates given message.
     * @param type $message
     * @param type $count
     */
    public function translate($message, $count = NULL) {
	return $this->translations[$message];
    }

}<commit_msg>Introduced #8 parameters into translations<commit_after><?php

namespace WebCMS\Translation;

/**
 * @author <NAME> <<EMAIL>as.voslar at webcook.cz>
 */
class Translator implements \Nette\Localization\ITranslator {
    
    /* @var TranslationArray */
    private $translations;

    public function __construct($translations) {
	$this->translations = $translations;
    }

    /**
     * Translates given message.
     * @param type $message
     * @param type $parameters
     */
    public function translate($message, $parameters = array()) {
	return vsprintf($this->translations[$message], $parameters);
    }

}
{'fraction_non_alphanumeric': 0.1296137339055794, 'fraction_numerical': 0.0008583690987124463, 'mean_word_length': 3.3507462686567164, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4416987', 'n_tokens_mistral': 356, 'n_tokens_neox': 342, 'n_words': 79}