With Zend Framework it's easy to log strings that haven't got a translation.
My question: how do you log the strings that do have a translation?
Thanks!!
With Zend Framework it's easy to log strings that haven't got a translation.
My question: how do you log the strings that do have a translation?
Thanks!!
Copyright © 2021 Jogjafile Inc.
There is no ability to log translate() calls in Zend_Translate but you can create your own helper that will proxify all calls to original translate() helper and use it for your needs.
Here is some example of helper method:
and use it like:
instead of
Then you can add any custom functionality to that method to log information you need.
This solution is not very fast but allows you to do the trick.
I've created this method while trying to workaround this issue:
http://framework.zend.com/issues/browse/ZF-5547