Re: [SMARTY] I18N/L10N: Best practice

Vicente Werner <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.