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

what does {l s="something"] do?

 
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 -> General
View previous topic :: View next topic  
Author Message
stegobi
Smarty n00b


Joined: 02 Jun 2011
Posts: 3

PostPosted: Thu Jun 02, 2011 8:38 pm    Post subject: what does {l s="something"] do? Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Jun 03, 2011 7:33 am    Post subject: Reply with quote

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
View user's profile Send private message
stegobi
Smarty n00b


Joined: 02 Jun 2011
Posts: 3

PostPosted: Fri Jun 03, 2011 7:43 am    Post subject: Reply with quote

Thank you for the reply U.Tews....don't know why I didn't think of that.
Back to top
View user's profile Send private message
rodneyrehm
Administrator


Joined: 30 Mar 2007
Posts: 674
Location: Germany, border to Switzerland

PostPosted: Fri Jun 03, 2011 10:25 am    Post subject: Reply with quote

Without knowing sh*t about prestashop: {l s="foo"} is most likely their language plugin (internationalization, multi-language, y'know).
Back to top
View user's profile Send private message Visit poster's website
stegobi
Smarty n00b


Joined: 02 Jun 2011
Posts: 3

PostPosted: Sat Jun 04, 2011 1:24 am    Post subject: Reply with quote

You were right Globe. The code ‘{l s=”literal” m=”modulename”}’ was referring to prestashop's translation service.
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 -> General 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