diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-30 18:40:24 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-01 12:54:52 +0200 |
commit | 13867a3f5f3e2248660a942956985a4eacacb283 (patch) | |
tree | bb6bc41d0f5bff725e379b712cb75751a9813a3f /activerecord/lib | |
parent | efba1d4227514a6ce4880910a6531b0a6c3c75aa (diff) | |
download | rails-13867a3f5f3e2248660a942956985a4eacacb283.tar.gz rails-13867a3f5f3e2248660a942956985a4eacacb283.tar.bz2 rails-13867a3f5f3e2248660a942956985a4eacacb283.zip |
Use %{} syntax in I18n (faster) instead of {{}}.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/locale/en.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/locale/en.yml b/activerecord/lib/active_record/locale/en.yml index 810359fef3..9d5cb54180 100644 --- a/activerecord/lib/active_record/locale/en.yml +++ b/activerecord/lib/active_record/locale/en.yml @@ -9,7 +9,7 @@ en: errors: messages: taken: "has already been taken" - record_invalid: "Validation failed: {{errors}}" + record_invalid: "Validation failed: %{errors}" # Append your own errors here or at the model/attributes scope. # You can define own errors for models or model attributes. @@ -18,7 +18,7 @@ en: # For example, # models: # user: - # blank: "This is a custom blank message for {{model}}: {{attribute}}" + # blank: "This is a custom blank message for %{model}: %{attribute}" # attributes: # login: # blank: "This is a custom blank message for User login" |