Application Integration
In This Article
@todo
Usage in a zend-mvc Application
Installation
Usage with zend-component-installer
Composer
Manual Installation
Composer
Register Module
Create Translation File
Create a file for the translation messages. For example languages/de_DE.php
:
return [
'Welcome to zend-mvc!' => 'Willkommen bei zend-mvc!',
];
Using Translator
Using Translator in View Script
echo $this->translate('Welcome to zend-mvc!', 'default', 'de_DE');
Found a mistake or want to contribute to the documentation? Edit this page on GitHub!