summaryrefslogtreecommitdiff
path: root/app/views/devise/registrations/edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/devise/registrations/edit.html.erb')
-rw-r--r--app/views/devise/registrations/edit.html.erb14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb
index f379e71ae5b..a6c8ec06253 100644
--- a/app/views/devise/registrations/edit.html.erb
+++ b/app/views/devise/registrations/edit.html.erb
@@ -1,4 +1,4 @@
-<h2>Edit <%= resource_name.to_s.humanize %></h2>
+<h2>编辑 <%= resource_name.to_s.humanize %></h2>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
<%= devise_error_messages! %>
@@ -9,20 +9,20 @@
<div><%= f.label :name %><br />
<%= f.text_field :name %></div>
- <div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
+ <div><%= f.label :password %> <i>(留空表示不修改密码)</i><br />
<%= f.password_field :password %></div>
<div><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></div>
- <div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
+ <div><%= f.label :current_password %> <i>(需要输入当前密码确认修改操作)</i><br />
<%= f.password_field :current_password %></div>
-<div><%= f.submit "Update", class: "input_button" %></div>
+<div><%= f.submit "更新", class: "input_button" %></div>
<% end %>
-<h3>Cancel your account</h3>
+<h3>取消账号</h3>
-<p>Unhappy? <%= link_to "Cancel your account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %>.</p>
+<p>不开心?<%= link_to "取消账号", registration_path(resource_name), data: { confirm: "确定要继续么?" }, method: :delete %>.</p>
-<%= link_to "Back", :back %>
+<%= link_to "返回", :back %>