svenfuchs/i18n — pull request #154 by lucasuyezu (2012-07-09 00:59:32+00:00)
Title: I18n.l(nil) now returns nil

Hi,

Is there any specific reason for l(nil) to throw an ArgumentError? If not, I've patched the code to return nil in these cases. This will help a lot in my projects since I localize dates a lot and I always have to nil-check them even though an nil interpolated into an empty string would be fine.

Please let me know if this should be backend-specific and if other pieces of the project rely on l(nil) throwing Exceptions.