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]
|