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

Is it more efficient to put all static content in lang file?

 
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
HarryAdney
Smarty n00b


Joined: 25 Jan 2015
Posts: 2

PostPosted: Sun Jan 25, 2015 11:24 am    Post subject: Is it more efficient to put all static content in lang file? Reply with quote

Hi guys, complete newbie to Smarty here.

I'm just wondering if it's more efficient to place the static content in the .tpl file or call it using {$LANG.whatever} from the appropriate language file. My website is for English speakers primarily so...

Or should I be placing static content in the .php file instead?

Thanks in advance.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sun Jan 25, 2015 12:27 pm    Post subject: Reply with quote

There's no easy answer to this question.
Should you place them in config files? Or call language resources using external plugin? What to do if your site need to support both RTL and LTR rendering?
Moreover, why should you use only one scheme?
Do as you see fit. Just don't overengineer it.
Back to top
View user's profile Send private message
HarryAdney
Smarty n00b


Joined: 25 Jan 2015
Posts: 2

PostPosted: Sun Jan 25, 2015 1:51 pm    Post subject: Reply with quote

Thanks AnrDaemon,

I was just wondering if there's a "right" way to do it. I guess I'll do a few different versions and see how much difference each approach makes.
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