Skip to content

Commit

Permalink
[#34316] fix incomprehensible statement in User Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
EinLama authored and oliverguenther committed Sep 27, 2024
1 parent 4fc3840 commit 51388aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/views/users/_consent.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<section class="form--section">
<h3 class="form--section-title"><%=t('consent.title')%></h3>
<% consent_link = admin_settings_users_path(anchor: 'consent_settings') %>
<%= render ::Components::OnOffStatusComponent.new({
is_on: @user.consented_at.present?,
on_text: format_time(@user.consented_at),
on_description: t('consent.user_has_consented'),
on_description: link_translate('consent.user_has_consented', links: { consent_settings: consent_link }),
off_text: t(:label_never),
off_description: t('consent.not_yet_consented')
off_description: link_translate('consent.not_yet_consented', links: { consent_settings: consent_link })
}) %>
</section>
4 changes: 2 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1503,8 +1503,8 @@ en:
failure_message: Consent failed, cannot proceed.
title: User Consent
decline_warning_message: You have declined to consent and have been logged out.
user_has_consented: User has consented to your configured statement at the given time.
not_yet_consented: User has not consented yet, will be requested upon next login.
user_has_consented: The user gave their consent to your [configured consent information text](consent_settings).
not_yet_consented: The user has not yet given their consent to your [configured consent information text](consent_settings). They will be reminded the next time they log in.
contact_mail_instructions: Define the mail address that users can reach a data controller to perform data change or removal requests.
contact_your_administrator: Please contact your administrator if you want to have your account deleted.
contact_this_mail_address: Please contact %{mail_address} if you want to have your account deleted.
Expand Down

0 comments on commit 51388aa

Please sign in to comment.