#8 new
Sven Fuchs

Bug: check for blank Strings as keys

Reported by Sven Fuchs | August 19th, 2008 @ 10:11 AM

"If you pass an empty string ('') as the key to I18n.t(), then it returns the entirety of your locale translation Hash!

Not too pretty."

Comments and changes to this ticket

  • Clemens Kofler

    Clemens Kofler September 10th, 2008 @ 04:13 PM

    How about just raising an I18n::ArgumentError? This should definitely be implemented in the i18n gem - whatever the actual implementation will be.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff