Jump to content

Set language


Carlos

Recommended Posts

I have some customized pages in Prestashop 1.6

One module writes on the left column, but this module does not kown the language of the page, so this  module only writes on the default language.

 

I have this code:

 

$controller=new ContentPageCutomized();
$controller->init();
$controller->setMedia();
$controller->initHeader();
$controller->displayHeader();
$controller->initContent();

 

 

 

I am looking for something like:

 

 $this->context->smarty->assign(array(
            'lang_iso' => 'fr',
            'lang_id' => '5',
            'language_code' => 'fr'
                        ));

 

to put inside inside displayHeader()

 

Any idea?

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...