Use title callback for reset route title

Created on 4 November 2022, about 2 years ago
Updated 27 September 2024, about 2 months ago

Problem/Motivation

The page title is currently set as following:

 $route->setDefaults([
        '_title' => 'Choose a new password',
        '_controller' => '\Drupal\simple_pass_reset\Controller\User::resetPass',
      ]);

While this is correct, translatable string extractors like potx don't pick it up as translatable string.

Proposed resolution

When using a title callback, we can wrap it in the t function and translation can be completed at https://localize.drupal.org/

💬 Support request
Status

RTBC

Version

1.0

Component

Code

Created by

🇧🇪Belgium andreasderijcke Antwerpen / Gent

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024