Re: [SMARTY] I18N/L10N: Best practice

From: Date: Tue, 09 Aug 2005 07:12:25 +0000
Subject: Re: [SMARTY] I18N/L10N: Best practice
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12933@lists.php.net to get a copy of this message
Actually, I'm using a DB based translation service. The system works in a two pass way, the first pass a block function stores the list of strings to translate and substitutes them by a a string easily matched through a regexp. On the second pass the translation is made with the help of an output filter. Strings with variable parts are translated directly in the first pass. The sql is made to minimize impact on the db. Test have shown that it takes roughly 0.019 secs to translate a page with 2500 translatable terms -- Vicente Werner y Sánchez Lead Developer at Dinahosting S.L.

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