For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > August 2005 > Re: [SMARTY] I18N/L10N: Best practice









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] I18N/L10N: Best practice
Vicente Werner

2005-08-09, 4:04 am

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

--=20
Vicente Werner y S=E1nchez
Lead Developer at Dinahosting S.L.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com