Add new translations for user privilege modal

This commit is contained in:
Andreas Nedbal 2022-07-27 02:11:48 +02:00 committed by Andreas Nedbal
parent 6dac157aef
commit 76845a55c0
2 changed files with 11 additions and 6 deletions

View file

@ -1,15 +1,15 @@
.modal.fade#modal-privileges{ aria: { hidden: true, labelledby: 'modal-privileges-label' }, role: :dialog, tabindex: -1 }
.modal.fade#modal-privileges{ aria: { hidden: true, labelledby: "modal-privileges-label" }, role: :dialog, tabindex: -1 }
.modal-dialog
.modal-content
.modal-header
%h5.modal-title#modal-privileges-label
= raw t('views.actions.privilege', user: user.screen_name)
= t(".title", user: user.screen_name)
%button.close{ data: { dismiss: :modal }, type: :button }
%span{ aria: { hidden: true } } ×
%span.sr-only= t 'views.actions.close'
%span.sr-only= t("voc.close")
%ul.list-group
- if current_user.has_role?(:administrator)
= render 'modal/privileges/item', privilege: 'moderator', description: t('views.modal.privilege.moderator'), user: user
= render 'modal/privileges/item', privilege: 'admin', description: t('views.modal.privilege.admin'), user: user
= render "modal/privileges/item", privilege: "moderator", description: t(".role.moderator"), user: user
= render "modal/privileges/item", privilege: "admin", description: t(".role.admin"), user: user
.modal-footer
%button.btn.btn-primary{ name: 'checked-privileges', type: :button, data: { dismiss: :modal } }= t 'views.actions.done'
%button.btn.btn-primary{ name: "checked-privileges", type: :button, data: { dismiss: :modal } }= t("voc.close")

View file

@ -170,6 +170,11 @@ en:
placeholder: "List name"
item:
members: "%{count} members"
privileges:
title: "Manage roles for %{user}"
role:
moderator: "Someone trustworthy enough to help managing reports."
admin: "This user is part of the core team."
password:
title: "Save account changes"
ban: