Commit dc305989 authored by Tugce Nur Tas's avatar Tugce Nur Tas Committed by Tuğçe Nur Taş
Browse files

adapt translations for user deletion

parent 6101c2d4
......@@ -50,7 +50,7 @@ class UsersController < ApplicationController
authorize @user
@user.destroy
respond_to do |format|
format.html { redirect_to users_url, notice: t('user_destroyed') }
format.html { redirect_to users_url, notice: t('user_destroyed', email: @user.email) }
end
end
......
......@@ -3,4 +3,4 @@ tr
td= t("role.#{user.role}")
td
- if policy(user).destroy?
= link_to t_action(:destroy), user, data: { confirm: t('are_you_sure')}, method: :delete
= link_to t_action(:destroy), user, data: { confirm: t('are_you_sure_delete_user', email: user.email)}, method: :delete
......@@ -10,4 +10,4 @@
.row
.col-xs-12
p= link_to t('back'), clients_path, class: 'btn btn-default'
p= link_to t('back'), users_path, class: 'btn btn-default'
......@@ -279,6 +279,7 @@ de:
add_relative: Verwandte hinzufügen
are_you_sure: Sind Sie sicher?
are_you_sure_invitation: Sind Sie sicher, dass Sie eine Einladung verschicken möchten?
are_you_sure_delete_user: 'Sind Sie sicher, dass sie %{email} löschen möchten?'
back: Zurück
change_my_password: Ihr Passwort ändern
change_password: Ihr Passwort ändern
......
......@@ -178,6 +178,7 @@ en:
add_relative: Add family member
are_you_sure: Are you sure?
are_you_sure_invitation: Are you sure you want to send an invitation?
are_you_sure_delete_user: 'Are you sure you want to delete %{email}?'
back: Back
change_my_password: Change my password
change_password: Change your password
......@@ -210,7 +211,7 @@ en:
show_profile: Show profile
show_my_profile: My profile
users: Users
user_destroyed: User was successfully deleted.
user_destroyed: '%{email} was successfully deleted.'
voluntary_platform: Voluntaries Platform
when: Time
working_days: Working days
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment