nedryse / translateable-template-factory
Proper way how to load translator into the presenters and controls template in the Nette framework based applications
Installs: 3 877
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.1
- nette/application: ~2.4
Requires (Dev)
- latte/latte: ^2.4
- phpunit/phpunit: 4.3.*
This package is not auto-updated.
Last update: 2022-06-28 09:14:06 UTC
README
#nedryse/translateable-template-factory (cc)# Pavel Železný (2bfree), 2014 (pavelzelezny.cz)
Requirements
Nette Framework 2.4.0 or higher
Documentation
Proper way how to load translator into the presenters and controls template in the Nette framework based applications
Instalation
Prefered way to intall is by the Composer
composer require nedryse/translateable-template-factory:~1.1
Or by manualy adding into the composer.json
{
"require":{
"nedryse/translateable-template-factory": "~1.1"
}
}
Setup
Add following code into the config.neon
common:
services:
nette.templateFactory: Nedryse\Nette\Bridges\ApplicationLatte\TranslatableTemplateFactory
Usage
At the moment of the template creation in the presenter or in the control, the translator is already loaded in it