forked from rails/rails
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up ActiveRecord i18n scoping
- Loading branch information
Iain Hecker
authored and
Sven Fuchs
committed
Aug 14, 2008
1 parent
d0ee883
commit ffeab4e
Showing
7 changed files
with
224 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
{ :'en-US' => { | ||
:active_record => { | ||
:error_messages => { | ||
:inclusion => "is not included in the list", | ||
:exclusion => "is reserved", | ||
:invalid => "is invalid", | ||
:confirmation => "doesn't match confirmation", | ||
:accepted => "must be accepted", | ||
:empty => "can't be empty", | ||
:blank => "can't be blank", | ||
:too_long => "is too long (maximum is {{count}} characters)", | ||
:too_short => "is too short (minimum is {{count}} characters)", | ||
:wrong_length => "is the wrong length (should be {{count}} characters)", | ||
:taken => "has already been taken", | ||
:not_a_number => "is not a number", | ||
:greater_than => "must be greater than {{count}}", | ||
:greater_than_or_equal_to => "must be greater than or equal to {{count}}", | ||
:equal_to => "must be equal to {{count}}", | ||
:less_than => "must be less than {{count}}", | ||
:less_than_or_equal_to => "must be less than or equal to {{count}}", | ||
:odd => "must be odd", | ||
:even => "must be even" | ||
} | ||
:activerecord => { | ||
:errors => { | ||
:messages => { | ||
:inclusion => "is not included in the list", | ||
:exclusion => "is reserved", | ||
:invalid => "is invalid", | ||
:confirmation => "doesn't match confirmation", | ||
:accepted => "must be accepted", | ||
:empty => "can't be empty", | ||
:blank => "can't be blank", | ||
:too_long => "is too long (maximum is {{count}} characters)", | ||
:too_short => "is too short (minimum is {{count}} characters)", | ||
:wrong_length => "is the wrong length (should be {{count}} characters)", | ||
:taken => "has already been taken", | ||
:not_a_number => "is not a number", | ||
:greater_than => "must be greater than {{count}}", | ||
:greater_than_or_equal_to => "must be greater than or equal to {{count}}", | ||
:equal_to => "must be equal to {{count}}", | ||
:less_than => "must be less than {{count}}", | ||
:less_than_or_equal_to => "must be less than or equal to {{count}}", | ||
:odd => "must be odd", | ||
:even => "must be even" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.