Add comparison operator to string translation filter

Created on 29 January 2018, about 7 years ago
Updated 8 February 2023, about 2 years ago

Problem/Motivation

At /admin/config/regional/translate, there is a string filter for finding translations. It defaults to a "contains" comparison operator, which is right for most situations, admittedly. But we recently ran into an issue in which we needed to find a specific short string that is common in several longer strings and it returned pages and pages of results.

Steps to reproduce

Go here: /admin/config/regional/translate
Note that it isn't possible to filter the list by
Attempt to filter the list to show

Proposed resolution

A views-like comparison operator within core/modules/locale/src/Form/TranslateFormBase.php would be a fantastic new feature.

Remaining tasks

User interface changes

On the translation admin page it will be possible to select whether the keyword search is for an exact match (default, to match existing functionality) or a partial match.

API changes

n/a

Data model changes

n/a

Feature request
Status

Needs work

Version

10.1

Component
Locale 

Last updated 4 days ago

Created by

🇺🇸United States ryan.gibson

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs usability review

    Used to alert the usability topic maintainer(s) that an issue significantly affects (or has the potential to affect) the usability of Drupal, and their signoff is needed. When adding this tag, make it easy to review the issue. Make sure the issue summary describes the problem and the proposed solution. Screenshots usually help a lot! To get sign-off on issues with the "Needs usability review" tag, post about them in the #ux channel on Drupal Slack, and/or attend a UX meeting to demo the patch and get direct feedback from designers/UX folks/product management on next steps. If an issue represents a significant new feature, UI change, or change to the general "user experience" of Drupal, use Needs product manager review instead. See the scope of responsibilities for product managers.

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