$translationSaver
$translationSaver : \Translate\Service\TranslationSaverInterface
Service that saves translated messages to PO 7 MO files
Class Translator which overrides Zend\I18n\Translator\Translator So that it uses updated logic and attaches the translation saver
$translationSaver : \Translate\Service\TranslationSaverInterface
Service that saves translated messages to PO 7 MO files
setTranslationSaver(\Translate\Service\TranslationSaverInterface $translationSaver)
Set the translation saver
\Translate\Service\TranslationSaverInterface | $translationSaver | the class that updated the translation files |
getTranslationSaver() : \Translate\Service\TranslationSaverInterface
Get the translation saver
translate(string $message, string $textDomain = 'default', string $passedLocale = null) : string
Translate a message (string).
string | $message | the untranslated string |
string | $textDomain | the text domain passed to translate method (always default) |
string | $passedLocale | locale passed to translate method normally null since locale is defined in URI |
the translated message