#13 new
Thilo Utke

localize and translate should return an empty string when used with nil

Reported by Thilo Utke | March 14th, 2009 @ 08:28 PM

To avoid constructs like @@@ I18.l @user.date_of_birth if if @user.date_of_birth @@@ the two methods should return an empty string when called with nil.

I happy to provide a test and fix myself if you agree with my suggestion.

Comments and changes to this ticket

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 ยป

Internationalization API for Ruby.

This library is used in Ruby on Rails but also suited for use in other contexts.

People watching this ticket

Tags

Pages