toArray()
toArray(\Gettext\Translations $translations, boolean $includeHeaders) : array
Returns a plain dictionary with the format [original => translation].
Parameters
\Gettext\Translations | $translations | |
boolean | $includeHeaders |
Trait used by all generators that exports the translations to plain dictionary (original => singular-translation).
toArray(\Gettext\Translations $translations, boolean $includeHeaders) : array
Returns a plain dictionary with the format [original => translation].
\Gettext\Translations | $translations | |
boolean | $includeHeaders |
fromArray(array $messages, \Gettext\Translations $translations)
Extract the entries from a dictionary.
array | $messages | |
\Gettext\Translations | $translations |