Jump to content

Add translation support to to override for SEO metas in Prestashop 1.6


prime1974

Recommended Posts

Hi again.

Now I have a more common problem which I already tried to resolve with a solution presented here. I am trying to add keyword translation support for my meta titles in /override/classes/Meta.php, overriding /classes/Meta.php

 

Trying to:

$this->l('My new text');

I receive the error:

Fatal error: Using $this when not in object context in /my/error/path/override/classes/Meta.php on line 171

Which is kind of normal, because there is no object context in Meta.php.

How can I get my translation into the Meta.php class?

 

Thank you for your help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...