M
M
maiskiykot2020-11-03 18:38:45
Prestashop
maiskiykot, 2020-11-03 18:38:45

How to convert string in prestashop 1.7?

I love Prestashop. Here are some gems all around:
{l s='Filter By' d='Shop.Theme.Actions'}
In order not to break the Moscow - maybe someone knows: how to convert such a construction into a regular variable? I need to convert the output in one place. "Weight" is displayed - I want to replace it with "Height" conditionally. In only one place, so I will not touch the translations.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petrov, 2020-11-20
@EvgenZZ

$this->title = $this->module->trans('My module title', [], 'Modules.Mymodule.Something');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question