Re: About returned values

From: Date: Wed, 05 Dec 2001 15:16:42 +0000
Subject: Re: About returned values
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2139@lists.php.net to get a copy of this message
It would make sense to use capture for this method of translation: <capture name=text> The world is flat. </capture> {$text|translate} If this was a paragraph or entire page of text, then the {"hello world"|translate} syntax wouldn't be too practical. Ricard Pillosu wrote: > > El mar, 04-12-2001 a las 18:32, Andrei Zmievski escribió: > > On Tue, 04 Dec 2001, Monte Ohrt wrote: > > > This has come up before... Andrei? > > > > > > Current workaround: > > > > > > {assign var="foo" val="hello world"} > > > {$foo|some_modifier} > > > > I'll see if I can make modifications to the parser. But why is it > > needed? > > Maybe only for consistency ... it's like: > > printf("%s", "hello world"); > > It seems stupid, but imagine aplications like: > > {"hello world"|translate} > > I know it's possible to make something like > > {translate str="hello world"} > > but only to Smarty users get free to use it as they want. > > --- > 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/É“3 > ¸ôÌývvOÚ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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