You are here: gettext vs custom ways « PHP Programming Language « IT news, forums, messages
gettext vs custom ways

Posted by Mike P2 on 05/11/07 00:02

Hi. Does anyone here have experience with PHP gettext functions? I'd
like to know how they work better. Also, is gettext more efficient
than serializing the language strings into language files and
unserializing them at each request?

I found this on Google saying that some guy sped up gettext, but I
have no idea how fast it was in the first place:
http://savannah.nongnu.org/forum/forum.php?forum_id=3648

I was planning to just unserialize the appropriate language file at
each page request and then use the strings kind of like phpBB does
(language strings are assigned to constants and the needed strings are
assigned to the template engine per-page). It seems to me that this
would be easier to deal with than using _() and an English string to
encode every string before sending it to the template engine.

-Mike PII

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация