Update translation.rb

Rails 4 Compatiblity