|
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 |
stegobi Smarty n00b
Joined: 02 Jun 2011 Posts: 3
|
Posted: Thu Jun 02, 2011 8:38 pm Post subject: what does {l s="something"] do? |
|
|
Hi guys, I'm new to smarty and was wondering if someone could help explain what the following snippet does the following do:
{l s="something"}
I recently got started developing a site with a prestashop backend and while looking through template code for some modules I kept seeing that snippet show up. Any help would be appreciated! |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Jun 03, 2011 7:33 am Post subject: |
|
|
This is not a standard Smarty tag. It must be a custom plugin or registered function specific to prestashop.
You should ask in the forum of prestashop. |
|
Back to top |
|
stegobi Smarty n00b
Joined: 02 Jun 2011 Posts: 3
|
Posted: Fri Jun 03, 2011 7:43 am Post subject: |
|
|
Thank you for the reply U.Tews....don't know why I didn't think of that. |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
Posted: Fri Jun 03, 2011 10:25 am Post subject: |
|
|
Without knowing sh*t about prestashop: {l s="foo"} is most likely their language plugin (internationalization, multi-language, y'know). |
|
Back to top |
|
stegobi Smarty n00b
Joined: 02 Jun 2011 Posts: 3
|
Posted: Sat Jun 04, 2011 1:24 am Post subject: |
|
|
You were right Globe. The code ‘{l s=”literal” m=”modulename”}’ was referring to prestashop's translation service. |
|
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
|