Update translation.rb

Rails 4 compatiblility