Re: Multi-language and Smarty

From: Date: Tue, 29 Jan 2002 15:39:16 +0000
Subject: Re: Multi-language and Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2606@lists.php.net to get a copy of this message
Hmm, even better, you could write a custom modifier: {#welcome#|eval} Then the contents of #welcome# could be treated just as if it were an included template :-) Monte Raymond Penners wrote: > > Valerio Santinelli wrote: > > > I see a problem with this kind of implementation. If you want to put > > variables in your messages? > > Like: "Welcome $name" > > How do you handle it with .conf files? > > No problem, just introduce a Smarty modifier/function "printfmt" and do > the following: > > {printfmt fmt=#welcome# name="Valerio"} > > Works great, > > -- > Raymond Penners -*- raymond@dotsphinx.com -*- www.dotsphinx.com > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#2606) next »