ataxo / copycopter-php-client
Nette Translator library for loading translates from copycopter.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 7
Forks: 1
Open Issues: 0
pkg:composer/ataxo/copycopter-php-client
Requires
- php: >= 5.3.0
- kdyby/curl: dev-master
- nette/nette: >= 2.0.0
This package is not auto-updated.
Last update: 2025-10-11 19:50:36 UTC
README
Nette Translator library for loading translates from copycopter.
Requirements
- Nette Framework 2.0.7 or higher. (PHP 5.3 edition)
- Kdyby/Curl - Curl wrapper for Nette Framework.
Usage
Place class into libs dir. To load translator we recommend implement class initialization into config.neon and load as context variable into templates.
common: parameters: copycopterApiKey: yourApiKey services: translator: Translator(%copycopterApiKey%)
In BasePresenter.php:
startup(){
$this->template->setTranslator($this->context->translator);
}
In PHP:
t('string to translate')
Copyright
Ondrej Podolinský, 2013, Ataxo Interactive a.s.
License
LGPL