Op Friday 28 August 2009 13:18:16 schreef Thomas Weidner: > Why would you need to use multiple instances of Zend_Translate ? > You should use one application wide instance which holds your translations. > You can add translations manually (addTranslation) when you splitted them > model-based. > > Or do you think that "Enter your name" is different between models ? > It's always the same translation regardless of the model behind. > > Greetings > Thomas Weidner, I18N Team Leader, Zend Framework > http://www.thomasweidner.com >
Hi Thomas, Thanks for you fast answer! What you mean are things I manage inside my view (I agree "enter your name" is a more global managed translation). I mean the models I fetch from db. E.g. having a blog post. That's a model Blog_Model_Post, having a title, lead and body text. All three are translated. Ideal, I'd like to have in my view "echo $blog->getTitle()" and the model itself fetches the right translation of the title. Therefore, it has some translation logic inside. But for every model the translation of "title" is completely different, so having the same instance is not possible. What's you opinion about these more "dynamic" translations fetched from the database? Thanks in advance, Jurian -- Jurian Sluiman Soflomo.com
signature.asc
Description: This is a digitally signed message part.
