|
|
@@ -1,4 +1,4 @@
|
|
|
-<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
|
|
+<h2><%= t('.title', resource: resource.model_name.human) %></h2>
|
|
|
|
|
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
|
|
<%= render "devise/shared/error_messages", resource: resource %>
|
|
|
@@ -9,15 +9,15 @@
|
|
|
</div>
|
|
|
|
|
|
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
|
|
- <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
|
|
+ <div><%= t('.currently_waiting_confirmation_for_email', email: resource.unconfirmed_email) %></div>
|
|
|
<% end %>
|
|
|
|
|
|
<div class="field">
|
|
|
- <%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
|
|
+ <%= f.label :password %> <i>(<%= t('.leave_blank_if_you_don_t_want_to_change_it') %>)</i><br />
|
|
|
<%= f.password_field :password, autocomplete: "new-password" %>
|
|
|
<% if @minimum_password_length %>
|
|
|
<br />
|
|
|
- <em><%= @minimum_password_length %> characters minimum</em>
|
|
|
+ <em><%= t('devise.shared.minimum_password_length', count: @minimum_password_length) %></em>
|
|
|
<% end %>
|
|
|
</div>
|
|
|
|
|
|
@@ -27,17 +27,17 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="field">
|
|
|
- <%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
|
|
+ <%= f.label :current_password %> <i>(<%= t('.we_need_your_current_password_to_confirm_your_changes') %>)</i><br />
|
|
|
<%= f.password_field :current_password, autocomplete: "current-password" %>
|
|
|
</div>
|
|
|
|
|
|
<div class="actions">
|
|
|
- <%= f.submit "Update" %>
|
|
|
+ <%= f.submit t('.update') %>
|
|
|
</div>
|
|
|
<% end %>
|
|
|
|
|
|
-<h3>Cancel my account</h3>
|
|
|
+<h3><%= t('.cancel_my_account') %></h3>
|
|
|
|
|
|
-<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>
|
|
|
+<p><%= t('.unhappy') %> <%= button_to t('.cancel_my_account'), registration_path(resource_name), data: { confirm: t('.are_you_sure') }, method: :delete %></p>
|
|
|
|
|
|
-<%= link_to "Back", :back %>
|
|
|
+<%= link_to t('devise.shared.links.back'), :back %>
|