Re: [fw-general] Feature-Request for Zend_Translate

2007-03-22 Thread Thomas Weidner

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:

translate('mystring', $locale); ?>


With the change you can do:

print('mystring', $locale); ?>


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 



[fw-general] Feature-Request for Zend_Translate

2007-03-22 Thread Thomas Weidner

Hy fellows,

a user in the general list had an idea for simplification for 
Zend_Translate.
Background is to increase readability and simplification of Zend_Translate 
by making it possible to autoecho the translation.


Please see related issue ZF-1096.
http://framework.zend.com/issues/browse/ZF-1096

As Zend_Translate is a class which is also used within the view to output 
the translated content this issue would not break the MVC Pattern in my 
opinion.


We would like to collect opinions from others than Alex and me as we have 
different opinions for this issue ;-)


We hope to get enough opinions, to make a decission before 0.9.1 or 0.9.2 to 
have this included or declined before 1.0. So please give us feedback ;-)


Greetings
Thomas
I18N Team Leader