Use placeholders instead of placeholder for I18n, following the conventions

This commit is contained in:
Carlos Antonio da Silva 2010-09-24 00:51:57 -03:00
parent 6a7841d9e3
commit e143376f8f
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ module SimpleForm
end
def placeholder
@placeholder ||= options[:placeholder] || translate(:placeholder)
@placeholder ||= options[:placeholder] || translate(:placeholders)
end
end
end

View File

@ -231,7 +231,7 @@ class FormBuilderTest < ActionView::TestCase
end
test 'placeholder should not be generated when set to false' do
store_translations(:en, :simple_form => { :placeholder => { :user => {
store_translations(:en, :simple_form => { :placeholders => { :user => {
:name => 'Name goes here'
} } }) do
with_form_for @user, :name, :placeholder => false

View File

@ -59,7 +59,7 @@ class InputTest < ActionView::TestCase
end
test 'input should use i18n to translate placeholder text' do
store_translations(:en, :simple_form => { :placeholder => { :user => {
store_translations(:en, :simple_form => { :placeholders => { :user => {
:name => 'Name goes here'
} } }) do
with_input_for @user, :name, :string