Robert Goldsmith <rgoldsm...@...> writes:

> I'm not sure why you would assume the gettext translation would already be
> in memory - the mo file will need to be read in for each page impression
> unless you have a shared memory system such as memcache or apc. This
> means an extra hit on the disk and time to process the mo file 
> (for each mo file).
> Robert

Well, if you use gettext as a PHP extension, mo files are loaded in
memory when apache starts. There's no extra hit on the file system then.
Even if its pretty fast, you still have the overhead of calling a function
to translate the string, which could be avoided because translated strings
are not supposed to be changed on a request basis.

PHPTAL mailing list

Reply via email to