|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
onotole Smarty Rookie
Joined: 10 Apr 2015 Posts: 8
|
Posted: Fri Apr 10, 2015 4:33 pm Post subject: Smarty 2: Plugin into plugin |
|
|
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 |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Apr 10, 2015 10:23 pm Post subject: |
|
|
Тут вообще-то русский раздел есть.
А специально для разных языков (например) придумали compile_id.
P.S.
Строго советую переходить на Smarty3 как можно быстрее. |
|
Back to top |
|
onotole Smarty Rookie
Joined: 10 Apr 2015 Posts: 8
|
Posted: Sat Apr 11, 2015 6:06 am Post subject: |
|
|
AnrDaemon wrote: | Тут вообще-то русский раздел есть.
А специально для разных языков (например) придумали compile_id.
P.S.
Строго советую переходить на Smarty3 как можно быстрее. | Привет. Я видимо еще не проснулся тогда, и не увидел разделов с языками =) Создал тему в русской ветке. |
|
Back to top |
|
|
|
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
|