Re: I18N Feature addition

From: Date: Thu, 07 Nov 2002 08:31:14 +0000
Subject: Re: I18N Feature addition
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10527@lists.php.net to get a copy of this message
You didn't get my idea, my fault cause I was not clear, what I sent was not a suggestion of the implementation but rather what the result should be, the implementation should be somthing like DB::getAssoc just as getAll is similar to DB::getAll() I hope i did not confuse you :) Yavor ----- Original Message ----- From: "Wolfram Kriesing" <lists@kriesing.de> To: "Yavor" <yavo@netsmart.com.cy> Cc: <pear-dev@lists.php.net> Sent: Thursday, November 07, 2002 1:07 AM Subject: Re: [PEAR-DEV] I18N Feature addition > 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 (#10527) next »