Re: I18N Feature addition

From: Date: Wed, 06 Nov 2002 23:07:31 +0000
Subject: Re: I18N Feature addition
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10519@lists.php.net to get a copy of this message
Yavor wrote:
Hi, am playing with I18N package. I need to get the string in key => value pairs, is it possible to add such a feature. this is what am using currently
    $strings = $translate->getAll($lang);
    foreach($strings as $string){
        $newstrings[$string['string']] = $string['translated'];
    }
I need to get something like the DB::getAssoc functionality, is this feasible. I could make the add-on if approved Yavor
i think it should be doable. but i also think that it's causing a lot of overhead to the normal functionality, may be there should be a different method-name for it. since the result might become big (not to say huge) and the way u suggested would take up about twice the memory. but i will have a closer look at it too and tell u my final opinion. -- Wolfram ... translating template system ... http://sourceforge.net/projects/simpletpl now also as PEAR-package available ... authentication system .... http://sf.net/projects/auth ... and more at .... http://opensource.visionp.de

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