svenfuchs/i18n — pull request #153 by tigrish (2012-06-29 07:03:01+00:00)
Title: Implement filters into the translate method

Not really sure master is the correct branch to be submitting this to but since the API hasn't changed, I think it's probably OK.

Implemented filters as mentioned in #148 (mentioned as "processors").

Also, as a result the I18n::Backend#translate method has been somewhat refactored with the addition of the Translation class the stops us from having to pass hashes of options around.

Seems to me that Interpolations, Pluralizations and Transliteration could be implemented as filters to refactor the #translate method further, but with the tests the way that they are I'd like to discuss this before just going in and breaking it :)