Does string override work with singular / plural form?

Created on 11 March 2024, 9 months ago
Updated 18 June 2024, 5 months ago

I am trying to override two strings with a singular and plural form.

One file only.

Maximum @count files.

In this case I have no change when I override these strings.

Does string override work with singular / plural form strings?

💬 Support request
Status

RTBC

Version

1.0

Component

Code

Created by

🇩🇪Germany demonde

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

Comments & Activities

  • Issue created by @demonde
  • Status changed to RTBC 6 months ago
  • 🇨🇦Canada RobLoach Earth

    Yes, you'll have to add both cases. The exact string that's passed through the t() function.

  • 🇩🇪Germany demonde

    Thanks for the info.

  • 🇮🇳India userguest123

    In search_api contrib module,

    File : search_api/src/Plugin/views/filter/SearchApiFulltext.php

    $msg = $this->formatPlural($this->options['min_length'], 'You must include at least one keyword to match in the content, and punctuation is ignored.', 'You must include at least one keyword to match in the content. Keywords must be at least @count characters, and punctuation is ignored.');

    I am seeing no change, when I override both strings of $msg.

Production build 0.71.5 2024