Replace string override example '@count min' => '@count minutes',

Created on 20 May 2023, over 1 year ago
Updated 31 May 2023, over 1 year ago

Problem/Motivation

The example in https://api.drupal.org/api/drupal/sites!default!default.settings.php/10.1.x uses '@count min' => '@count minutes',:

# $settings['locale_custom_strings_en'][''] = [
#   'Home' => 'Front page',
#   '@count min' => '@count minutes',
# ];

This is not a great example, since the actual translation in the .po files is split in two lines:

msgid_plural "@count min"
msgstr[0] "1 Minute"
msgstr[1] "@count Minuten"

From https://ftp.drupal.org/files/translations/all/drupal/drupal-10.x.de.po

The MR looks "interesting" currently :) So I'll paste the change, which is just a single line in sites/default/default.settings.php:

- #   '@count min' => '@count minutes',
+ #   'Enter your @s username.' => 'Enter your fantastic @s username.',

Steps to reproduce

Proposed resolution

Replace it with a simpler, and more easily accessible example, for example the login text under /user/login.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
Documentation 

Last updated less than a minute ago

No maintainer
Created by

🇩🇰Denmark ressa Copenhagen

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

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