This project is archived and is in readonly mode.
"Validation failed" not available for translation
Reported by Jacob Burkhart | June 3rd, 2009 @ 05:29 PM | in 2.3.4
The automatic message formed by ActiveRecord::RecordInvalid is
"Validation failed: #{@record.errors.full_messages.join(", ")}"
It should be changed so that it is available for translation. Something like:
I18n.t('activerecord.errors.validation_failed', :full_messages => @record.errors.full_messages.join(I18n.t('support.array.words_connector'))
Comments and changes to this ticket
-
Sven Fuchs July 8th, 2009 @ 11:33 PM
- Assigned user set to Sven Fuchs
-
Sven Fuchs August 26th, 2009 @ 12:08 PM
- Milestone changed from 2.x to 2.3.4
- State changed from new to open
- Assigned user changed from Sven Fuchs to Jeremy Kemper
Ok, here's a patch for this issue
-
Jeremy Kemper August 26th, 2009 @ 05:46 PM
Hey Sven, patch doesn't apply cleanly to 2-3-stable.
Was this already solved on master?
-
Sven Fuchs August 26th, 2009 @ 06:11 PM
What? Umm, sorry. No it should go into 2.3.x as well. I've been heavily juggling branches and remotes recently, so maybe I've gotten something wrong. I'll redo and resubmit the patch.
-
Sven Fuchs August 26th, 2009 @ 06:30 PM
Jeremy, the patch should now apply. I'll delete the first version. Sorry for the hassle.
-
Repository August 26th, 2009 @ 07:28 PM
- State changed from open to committed
(from [a4838ee466b18ef04d0a244bec292c1d45c4bc0f]) allow ActiveRecord#RecordInvalid exception message to be localized
[#2754 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/a4838ee466b18ef04d0a244bec292c... -
Repository August 26th, 2009 @ 07:29 PM
(from [d672a14ee766e86c606db566dd073a3d2332cc60]) allow ActiveRecord#RecordInvalid exception message to be localized
[#2754 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/d672a14ee766e86c606db566dd073a...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 2754 "Validation failed" not available for translation [#2754 state:committed]
- 2754 "Validation failed" not available for translation [#2754 state:committed]