Re: Multi-language and Smarty

From: Date: Tue, 29 Jan 2002 15:20:39 +0000
Subject: Re: Multi-language and Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2604@lists.php.net to get a copy of this message
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

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