From 353e737c27780f3b7f2802a920b0247c72fc7f1c Mon Sep 17 00:00:00 2001 From: catch <6915-catch@users.noreply.drupalcode.org> Date: Sat, 31 Aug 2024 09:03:34 +0900 Subject: [PATCH] Issue #973772 by drupal_was_my_past, avpaderno, joachim, tstoeckler, quietone, EvanDonovan, zirvap: Hard to translate: "Required if you want to change the %mail or %pass below." --- core/modules/user/src/AccountForm.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/modules/user/src/AccountForm.php b/core/modules/user/src/AccountForm.php index 17e9d129fc14..07725a83ed7b 100644 --- a/core/modules/user/src/AccountForm.php +++ b/core/modules/user/src/AccountForm.php @@ -160,9 +160,7 @@ public function form(array $form, FormStateInterface $form_state) { // The user may only change their own password without their current // password if they logged in via a one-time login link. if (!$form_state->get('user_pass_reset')) { - $form['account']['current_pass']['#description'] = $this->t('Required if you want to change the %mail or %pass below. <a href=":request_new_url" title="Send password reset instructions via email.">Reset your password</a>.', [ - '%mail' => $form['account']['mail']['#title'], - '%pass' => $this->t('Password'), + $form['account']['current_pass']['#description'] = $this->t('Required if you want to change the <em>Email address</em> or the <em>Password</em> field below. <a href=":request_new_url" title="Send password reset instructions via email.">Reset your password</a>.', [ ':request_new_url' => Url::fromRoute('user.pass')->toString(), ]); } -- GitLab