Remove unnecessary context

Created on 16 May 2024, 7 months ago
Updated 30 May 2024, 7 months ago

Problem/Motivation

As pointed out by apaderno here :

    $form['relying_party']['name'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Name', [], ['context' => 'WebAuthn']),
      '#description' => $this->t('The name for the site under WebAuthn context. Defaults to Drupal site name.', [], ['context' => 'WebAuthn']),
      '#required' => TRUE,
      '#default_value' => $config->get('relying_party.name') ?? $this->config('system.site')
        ->get('name'),
    ];
The translation of the string does not change because the provided context. If I were to translate it in Italian, I would use the same translation, with or without that context.
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇯🇵Japan ptmkenny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024