[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    Re: [SMARTY] I18N/L10N: Best practice
From:       Vicente Werner <vwerner () gmail ! com>
Date:       2005-08-09 7:12:25
Message-ID: 9de07d5e05080900121c09c723 () mail ! gmail ! com
[Download RAW message or body]

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.

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic