aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorLawrence Pit <lawrence.pit@gmail.com>2010-05-03 16:44:32 +1000
committerJosé Valim <jose.valim@gmail.com>2010-05-03 13:37:32 +0200
commit9bd91b00b85c77bc294ae2a99beae203cc163227 (patch)
treeec5b8bc9d4d2053ebddfec174b9afa4e9c00239b /actionpack
parent8ae9b05fa0ca579ecabcd563e6ba75ea0f44f074 (diff)
downloadrails-9bd91b00b85c77bc294ae2a99beae203cc163227.tar.gz
rails-9bd91b00b85c77bc294ae2a99beae203cc163227.tar.bz2
rails-9bd91b00b85c77bc294ae2a99beae203cc163227.zip
Favor %{} in all code instead of (deprecated) {{}} as interpolation syntax for I18n
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb2
-rw-r--r--actionpack/test/template/form_helper_test.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index b2470edf00..6e26ae6c29 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -1179,7 +1179,7 @@ module ActionView
# helpers:
# submit:
# post:
- # create: "Add {{model}}"
+ # create: "Add %{model}"
#
def submit(value=nil, options={})
value, options = nil, value if value.is_a?(Hash)
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index 47ac911540..2234fbece9 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -33,11 +33,11 @@ class FormHelperTest < ActionView::TestCase
I18n.backend.store_translations 'submit', {
:helpers => {
:submit => {
- :create => 'Create {{model}}',
- :update => 'Confirm {{model}} changes',
+ :create => 'Create %{model}',
+ :update => 'Confirm %{model} changes',
:submit => 'Save changes',
:another_post => {
- :update => 'Update your {{model}}'
+ :update => 'Update your %{model}'
}
}
}