Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty 2: Plugin into plugin

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
onotole
Smarty Rookie


Joined: 10 Apr 2015
Posts: 8

PostPosted: Fri Apr 10, 2015 4:33 pm    Post subject: Smarty 2: Plugin into plugin Reply with quote

Now I have a problem is to translate the site multilingual. So. In many places the template output plugins Smarty, as an example:
Code:
{pluginname param1 = "value1" param2 = "value2"}

I wrote a plugin for Smarty, which translates texts. The plugin will not show because the essence of the issue is not that. I need to do something like this:
Code:
{pluginname param1 = {translate section = "ololo" message = "Blablabla"}}

When I bring in a form that displays the text accordingly, as I introduce. In quotes tried - also no result
Please help very much ^ ^
P.S. Smarty version 2.6.28.
P.P.S. Sorry for my bad English. I'm from Russia
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Fri Apr 10, 2015 10:23 pm    Post subject: Reply with quote

Тут вообще-то русский раздел есть.
А специально для разных языков (например) придумали compile_id.

P.S.
Строго советую переходить на Smarty3 как можно быстрее.
Back to top
View user's profile Send private message
onotole
Smarty Rookie


Joined: 10 Apr 2015
Posts: 8

PostPosted: Sat Apr 11, 2015 6:06 am    Post subject: Reply with quote

AnrDaemon wrote:
Тут вообще-то русский раздел есть.
А специально для разных языков (например) придумали compile_id.

P.S.
Строго советую переходить на Smarty3 как можно быстрее.
Привет. Я видимо еще не проснулся тогда, и не увидел разделов с языками =) Создал тему в русской ветке.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP