Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 855 Bytes

File metadata and controls

42 lines (33 loc) · 855 Bytes

Copycopter PHP Client

Nette Translator library for loading translates from copycopter.

Requirements

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