aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
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 /actionpack/lib/action_view/helpers/form_helper.rb
parentefba1d4227514a6ce4880910a6531b0a6c3c75aa (diff)
downloadrails-13867a3f5f3e2248660a942956985a4eacacb283.tar.gz
rails-13867a3f5f3e2248660a942956985a4eacacb283.tar.bz2
rails-13867a3f5f3e2248660a942956985a4eacacb283.zip
Use %{} syntax in I18n (faster) instead of {{}}.
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index d3604925e8..b2470edf00 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -1165,13 +1165,13 @@ module ActionView
# submit button label, otherwise, it uses "Update Post".
#
# Those labels can be customized using I18n, under the helpers.submit key and accept
- # the {{model}} as translation interpolation:
+ # the %{model} as translation interpolation:
#
# en:
# helpers:
# submit:
- # create: "Create a {{model}}"
- # update: "Confirm changes to {{model}}"
+ # create: "Create a %{model}"
+ # update: "Confirm changes to %{model}"
#
# It also searches for a key specific for the given object:
#