I´m not sure if this really makes a big difference  ;)

There is a difference when you are using views:

Now you have to do it so:
<BODY>
<?php print $myclass->translate('mystring', $locale); ?>
</BODY>

With the change you can do:
<BODY>
<?php $myclass->print('mystring', $locale); ?>
<BODY>

I dont know how much views you have, but I think there is a simplification and a benefit for the users. ;-) It may be a small benefit for you, but a big for another one... depends on how often you are using it.

Whats about a flag?
$tranlsate->print = true;
$tranlsate->_(....

No... a flag would break the API and you would have problems when you use Zend_Translate not only for output generation. Two strict seperated function are much more simpler from API's view than having a flag.

Greetings
Thomas
I18N Team Leader

Reply via email to