It is not within the wiki because it does not exist for now.
But it is proposed and accepted for implementation after 1.0.
See here for details:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Translate+-+Thomas+Weidner
And yes... one request per string would be a complete overkill, even if the
database is fast because we also have the cost of connection.
And as translation is always cached internally there would be no need for
now.
Greetings
Thomas
I18N Team Leader
----- Original Message -----
From: "Shekar C Reddy" <[EMAIL PROTECTED]>
To: "Thomas Weidner" <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2007 4:53 PM
Subject: Re: [fw-general] Zend Framework Presentation
Hi Thomas,
I just wanted to peruse the SQL-Adapter proposal for Zend_Translate but
could
not locate it on the wiki:
http://framework.zend.com/wiki/display/ZFPROP/Home
Do you think it would be an *overkill *to hit the database for each string
for each page using a dB adapter?
Thanks,
On 6/14/07, Thomas Weidner <[EMAIL PROTECTED]> wrote:
Reading the MO file is as fast as reading the cache.
There is no difference because MO is a binary format and must not be
parsed.
And you can still store the Adapter within your own cache if you think
there
is a difference.
An SQL-Adapter is already proposed and is accepted for after 1.0.
I think with 1.2 or so it will be ready.
Greetings
Thomas
I18N Team Leader
----- Original Message -----
From: "Shekar C Reddy" <[EMAIL PROTECTED]>
To: "Thomas Weidner" <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2007 11:13 AM
Subject: Re: [fw-general] Zend Framework Presentation
> Thomas,
>
> While using translation with gettext, is it a good idea to cache the
> translations instead of hitting the .mo files for each page/string
> request?
> Will caching be faster than direct access to .mo files?
>
> Do you think a database adapter for translating strings is an overkill?
>
> Regards,
>
>
>
>
> On 6/12/07, Thomas Weidner <[EMAIL PROTECTED]> wrote:
>>
>> Hy fellows,
>>
>> I held an presentation about the Zend Framework some days ago.
>> As not all of you where there... I want to share the presentation
>> with you.
>>
>> You will find some generals about the Framework and some example about
>> how
>> to
>> use I18N core details.
>>
>> If you are interested take a look at:
>> http://www.slideshare.net/thomasw/phpbootcamp-zend-framework
>> and play around with ZF...
>>
>> Greetings
>> Thomas Weidner
>> I18N Team Leader for ZF
>>
>>
>