Re: new spin on translation package

From: Date: Wed, 20 Oct 2004 15:41:50 +0000
Subject: Re: new spin on translation package
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34006@lists.php.net to get a copy of this message
Markus Wolff wrote:
This has one gotcha though: In a large application, there can be a real lot of phrases - so the array can eat up quite a lot of memory. As my applications usually are built from several smaller "sub-applications" (or "modules", as I call them), I have divided the translation files as well - one file for each module. This can produce some duplicate entries across the files, but I can easily live with that.
What do you think is more efficient for a large scale application? a. Store all translations in a database and only call what is needed when needed (Many db transactions and large db tables) b. Store translations in files with arrays (Large arrays to store in memory) Have you done any performance testing comparing the 2 options? Thanks! Andrew

« previous php.pear.dev (#34006) next »