Skip to content

Commit

Permalink
rip off config/locales/helpers, use plain strings instead
Browse files Browse the repository at this point in the history
It's not worth it, i18n for `submit` tag is dumb and nonflexible:

* https:/rails/rails/blob/v4.2.2/actionview/lib/action_view/helpers/form_helper.rb#L1883-L1884

It relies on a model, so you can't define it depending on the current view.
Such behavior is very fragile, see: https:/fs/rails-base/pull/287/files#r33035107
  • Loading branch information
vast committed Jun 24, 2015
1 parent 44782dd commit ed4e559
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/views/users/passwords/edit.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
= f.input :password_confirmation, required: true

.form-actions
= f.button :submit
= f.button :submit, 'Update password'

.medium-6.columns.end
= render 'users/shared/links'
2 changes: 1 addition & 1 deletion app/views/users/registrations/edit.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
required: true

.form-actions
= f.button :submit
= f.button :submit, 'Update'

.medium-6.columns.end
h6
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/registrations/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
= f.input :password_confirmation, required: true

.form-actions
= f.button :submit
= f.button :submit, 'Sign up'

.medium-6.columns.end
= render 'users/shared/links'
6 changes: 0 additions & 6 deletions config/locales/helpers.en.yml

This file was deleted.

0 comments on commit ed4e559

Please sign in to comment.