-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
herbgobbler gets confused in devise/registrations/edit.html.erb #22
Comments
That's hard. It very situational. Distinguishing between your snippet and Unhappy? <%= button_to "Yes" %> or <%= button_to "No" %>? is hard to do in a generic way. |
Well, you'd have basically 3 translations. Unhappy? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Herbgobbler gets confused on the following line:
Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %>
This is what it generates
<%= t '.unhappy', :button_to => (button_to (t '.cancel_my_1'), registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete) %>
en.yml:
cancel_my_1: "Cancel my account"
unhappy: "Unhappy? %{button_to}"
In my opinion, this would be simpler like this:
t('.unhappy') <%= button_to t('.cancel_my'), registration_path(resource_name), data: { confirm: t('.are_you_sure')}, method: :delete %>
The text was updated successfully, but these errors were encountered: