Service ‘visualPaginatorFactory’: Service of type Nette\Localization\ITranslator needed by
- akinyeleolubodun
- Member | 4
I am trying to use Zeleznypa visual paginator. After installing it through composer and adding below to my services
` visualPaginatorFactory:
implement: \Zeleznypa\Nette\Utils\IVisualPaginatorFactory`
I am getting below error. How can I start Nette\Localization\ITranslator service.
`Service ‘visualPaginatorFactory’: Service of type Nette\Localization\ITranslator needed by Zeleznypa\Nette\Utils\VisualPaginator::__construct() not found. Did you register it in configuration file? `
Can someone help?
- Azathoth
- Member | 495
It seems like this visual paginator has translator as a dependency, but you
do not use any translator on your website.
So you will have to implement Nette\Localization\ITranslator interface, or,
which is faster, use some translation addon to nette, for example install
Kdyby\Translation https://github.com/…/Translation
which should not take long.
- akinyeleolubodun
- Member | 4
Thanks for your response. It gives me another hope for this project.
I tried implementing the Nette\Localization\ITranslator interface but I still got some other error stuffs. I think the best thing for me is to use some other visual paginator or what do you think?