aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/locale
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-04-30 18:40:24 +0200
committerJosé Valim <jose.valim@gmail.com>2010-05-01 12:54:52 +0200
commit13867a3f5f3e2248660a942956985a4eacacb283 (patch)
treebb6bc41d0f5bff725e379b712cb75751a9813a3f /activerecord/lib/active_record/locale
parentefba1d4227514a6ce4880910a6531b0a6c3c75aa (diff)
downloadrails-13867a3f5f3e2248660a942956985a4eacacb283.tar.gz
rails-13867a3f5f3e2248660a942956985a4eacacb283.tar.bz2
rails-13867a3f5f3e2248660a942956985a4eacacb283.zip
Use %{} syntax in I18n (faster) instead of {{}}.
Diffstat (limited to 'activerecord/lib/active_record/locale')
-rw-r--r--activerecord/lib/active_record/locale/en.yml4
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"