Re: [SMARTY] smarty and GNU gettext

From: Date: Tue, 30 May 2006 13:53:48 +0000
Subject: Re: [SMARTY] smarty and GNU gettext
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13444@lists.php.net to get a copy of this message
On 5/30/06, Marcus Bointon <marcus@synchromedia.co.uk> wrote:
On 30 May 2006, at 14:22, Vicente Werner wrote: Personally I think gettext is a clunky way of working anyway! I'm using a DB-based one at present - it's nice to have a separate web interface for translators to use independent of web apps.
There're other issues I considered, as the need to reboot apache when you change the .po files so they're loaded and the hit just for initilizing the system. I've done it as both block and function - I find functions are tidier
for small things like field titles. I've yet to come up with a nice way of handling embedded variables like gettext does, especially with numbered params. Any ideas on that?
What I did was a modification of the block function so it could get a list of vars that were substitued on the string. Marcus
-- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Vicente Werner y Sánchez

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