protected function addDictionaryInformation()
    {
        $translations = [];
        $this->dictionary->removeAllEntries();
        $this->getDictionaryInformation($this->manialink, $translations);

        foreach ($translations as $msgId => $messages) {
            foreach ($messages as $message) {
                $this->dictionary->setEntry($message['Lang'], $msgId, htmlspecialchars($message['Text']));
            }
        }
    }
protected function addDictionaryInformation()
    {
        $translations = [];
        $this->dictionary->removeAllEntries();
        $this->getDictionaryInformation($this->manialink, $translations);

        foreach ($translations as $msgId => $messages) {
            foreach ($messages as $message) {
                $this->dictionary->setEntry($message['Lang'], $msgId, htmlspecialchars($message['Text']));
            }
        }
    }
protected function addDictionaryInformation ( ) { $ translations = [ ] ; $ this -> dictionary -> removeAllEntries ( ) ; $ this -> getDictionaryInformation ( $ this -> manialink , $ translations ) ; foreach ( $ translations as $ msgId => $ messages ) { foreach ( $ messages as $ message ) { $ this -> dictionary -> setEntry ( $ message [ 'Lang' ] , $ msgId , htmlspecialchars ( $ message [ 'Text' ] ) ) ; } } }
Add translations to dictionary.
Add translations to dictionary .