HEADER_LANGUAGE
HEADER_LANGUAGE
Class to manage a collection of translations.
__callStatic( $name, $arguments) : \Gettext\Translations
Magic method to create new instances using extractors For example: Translations::fromMoFile($filename, $options);.
| $name | ||
| $arguments |
offsetSet(mixed $index, \Gettext\Translation $value) : \Gettext\Translation
Control the new translations added.
| mixed | $index | |
| \Gettext\Translation | $value |
If the value is not an instance of Gettext\Translation
find(string|\Gettext\Translation $context, string $original = '') : \Gettext\Translation|false
Search for a specific translation.
| string|\Gettext\Translation | $context | The context of the translation or a translation instance |
| string | $original | The original string |
insert(string $context, string $original, string $plural = '') : \Gettext\Translation
Creates and insert/merges a new translation.
| string | $context | The translation context |
| string | $original | The translation original string |
| string | $plural | The translation original plural string |
The translation created
mergeWith(\Gettext\Translations $translations, integer $options = \Gettext\Merge::DEFAULTS) : self
Merges this translations with other translations.
| \Gettext\Translations | $translations | The translations instance to merge with |
| integer | $options |