marten / nette-babelfish
Nette translator
0.2
2015-03-31 17:07 UTC
Requires
- php: >=5.4.0
- nette/nette: ~2.2.0
This package is not auto-updated.
Last update: 2024-11-05 05:56:35 UTC
README
Gettext translator for Nette framework based on Zend gettext with tweaks and caching options.
How to wire it to Nette
Add these lines to your config file
parameters:
translator:
defaultLanguage: en_US
files:
0 = 'core'
cache.service = 'memcache'
cache.level = 1
panel = false
services:
translator:
factory: Marten\Babelfish\Babelfish::getTranslator(@container, %translator%)