diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-09-13 20:28:01 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-09-13 20:28:01 +0100 |
commit | a17027d13a48e1e64b14a28e7d58e341812f8cb4 (patch) | |
tree | 09699984d7a4f612689f19e3e0ccb663ae207d3f /activerecord/lib/active_record/locale | |
parent | 96055414d6197b9705e408c17236f79372a007e5 (diff) | |
download | rails-a17027d13a48e1e64b14a28e7d58e341812f8cb4.tar.gz rails-a17027d13a48e1e64b14a28e7d58e341812f8cb4.tar.bz2 rails-a17027d13a48e1e64b14a28e7d58e341812f8cb4.zip |
Merge docrails
Diffstat (limited to 'activerecord/lib/active_record/locale')
-rw-r--r-- | activerecord/lib/active_record/locale/en-US.yml | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/locale/en-US.yml b/activerecord/lib/active_record/locale/en-US.yml index 8148f31a81..421f0ebd60 100644 --- a/activerecord/lib/active_record/locale/en-US.yml +++ b/activerecord/lib/active_record/locale/en-US.yml @@ -25,9 +25,30 @@ en-US: even: "must be even" # Append your own errors here or at the model/attributes scope. + # You can define own errors for models or model attributes. + # The values :model, :attribute and :value are always available for interpolation. + # + # For example, + # models: + # user: + # blank: "This is a custom blank message for {{model}}: {{attribute}}" + # attributes: + # login: + # blank: "This is a custom blank message for User login" + # Will define custom blank validation message for User model and + # custom blank validation message for login attribute of User model. models: - # Overrides default messages - - attributes: - # Overrides model and default messages. + + # Translate model names. Used in Model.human_name(). + #models: + # For example, + # user: "Dude" + # will translate User model name to "Dude" + + # Translate model attribute names. Used in Model.human_attribute_name(attribute). + #attributes: + # For example, + # user: + # login: "Handle" + # will translate User attribute "login" as "Handle" |