toArray()
toArray(\Gettext\Translations $translations, boolean $includeHeaders, boolean $forceArray = false) : array
Returns a multidimensional array.
Parameters
\Gettext\Translations | $translations | |
boolean | $includeHeaders | |
boolean | $forceArray |
Trait used by all generators that exports the translations to multidimensional arrays (context => [original => [translation, plural1, pluraln.
..]]).
toArray(\Gettext\Translations $translations, boolean $includeHeaders, boolean $forceArray = false) : array
Returns a multidimensional array.
\Gettext\Translations | $translations | |
boolean | $includeHeaders | |
boolean | $forceArray |
fromArray(array $messages, \Gettext\Translations $translations)
Extract the entries from a multidimensional array.
array | $messages | |
\Gettext\Translations | $translations |