private static function fromArray(array $messages, Translations $translations)
    {
        foreach ($messages as $original => $translation) {
            if ($original === '') {
                self::extractHeaders($translation, $translations);
                continue;
            }

            $translations->insert(null, $original)->setTranslation($translation);
        }
    }
private static function fromArray(array $messages, Translations $translations)
    {
        foreach ($messages as $original => $translation) {
            if ($original === '') {
                self::extractHeaders($translation, $translations);
                continue;
            }

            $translations->insert(null, $original)->setTranslation($translation);
        }
    }
private static function fromArray ( array $ messages , Translations $ translations ) { foreach ( $ messages as $ original => $ translation ) { if ( $ original === '' ) { self :: extractHeaders ( $ translation , $ translations ) ; continue ; } $ translations -> insert ( null , $ original ) -> setTranslation ( $ translation ) ; } }
Extract the entries from a dictionary.

@param array        $messages
@param Translations $translations
Extract the entries from a dictionary .