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.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ptmkenny created an issue. See original summary.

ptmkenny credited apaderno.

ptmkenny’s picture

  • ptmkenny committed e372569f on 1.0.x
    Issue #3447527 by ptmkenny, apaderno: Remove unnecessary context
    
ptmkenny’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.