A
A
Alexander Urich2015-04-09 16:20:23
Smarty
Alexander Urich, 2015-04-09 16:20:23

How can the Smarty plugin be used inside a plugin?

Hello. I got an old project that uses the Smarty template engine of the second version. Now my task is to translate the site into multilingual. So. Smarty plugins are displayed in many places in the template, for example:
{pluginname param1="value1" param2="value2"}
I wrote a smarty plugin that translates texts. I won't show the plug-in itself, because that's not the point of the question. In general, I need to do something like this:
{pluginname param1={translate section="ololo" message="Blablabla"}}
When I output in this form, the text is displayed accordingly, as I enter it. I tried in quotation marks - also no result.
I ask for help very much ^_^

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question