Make WordPress Core

Opened 3 months ago

Last modified 2 months ago

#64188 new defect (bug)

Admin: Plugin search does not match translated plugin names in “Installed Plugins” list

Reported by: malimart's profile malimart Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Plugins Keywords: needs-patch
Focuses: administration Cc:

Description

When WordPress is used in a non-English language, the Plugins > Installed Plugins screen in the WP admin dashboard displays translated plugin names (from .mo files) if they exist. However, the search box at the top of that screen only matches the plugin’s original (English) name, not its translated name. If you search a plugin by the translated name from the list you get no results.

Expected behavior

When doing a search using the plugin's translated name, the plugin should appear, because the displayed (translated) name matches the search query.

Benefits

  • Improves usability for non-English users.
  • Aligns the admin search with localized UI expectations.
  • Avoids confusion when users see translated names but get no search results.

Technical details

I believe the issue is that the WP_Plugins_List_Table search logic in class-wp-plugins-list-table.php uses the raw plugin headers ($plugin_data['Name'], etc.) from the plugin files, without passing them through translation functions. Therefor, only the original English strings are searchable.

Related tickets

The issue is similar to #1496, except it's not related to the plugin directory but the plugin search inside the wp admin.

Attachments (4)

Add Plugin Screen Search.png (263.2 KB) - added by nikunj8866 2 months ago.
Add Plugin Search
Plugin List Page.png (184.8 KB) - added by nikunj8866 2 months ago.
Plugin List Page Search.png (100.0 KB) - added by nikunj8866 2 months ago.
Plugin List Page Search with English.png (145.6 KB) - added by nikunj8866 2 months ago.

Download all attachments as: .zip

Change History (8)

#2 @nikunj8866
3 months ago

  • Keywords reporter-feedback added

@malimart Could you please provide a specific plugin to reproduce this issue?

I tested using Allow Cyrillic Usernames in Russian, but the Installed Plugins page still displays the plugin name in English (https://prnt.sc/0IUyzf4Cq_nJ).

#3 @malimart
3 months ago

I think plugin names should not be translated, but if they are, plugins should be searchable by the translated name that is displayed on the plugin list.

Steps to reproduce the issue:

  1. Install Event Organiser (https://wordpress.org/plugins/event-organiser/)
  2. Go to wp-admin/options-general.php and change Site Language to Polish (Polski)
  3. Go to wp-admin/plugins.php. The Event Organizer plugin is now displayed with its Polish name (Organizator wydarzeń)
  4. Copy and paste that name in the plugin search bar. You will get 0 results.
  5. You can find the plugin by using its original name Event Organiser.

Screenshots

Searching by the original name, 1 result:

https://i.imgur.com/4FwVegb.png

Searching by the translated name, 0 results:

https://i.imgur.com/jOcFHva.png

Last edited 3 months ago by malimart (previous) (diff)

#4 @nikunj8866
2 months ago

  • Keywords needs-patch added; reporter-feedback removed

✅ Reproduced
I was able to reproduce this issue. On the Plugins → Installed Plugins screen, the search functionality only matches against the original English plugin names.

If the plugin list displays translated plugin names (from .mo files), those names are not searchable, which can be confusing for users viewing the admin in a non-English language.

Notably, the Add Plugins screen search does work with translated plugin names, so the behavior is inconsistent across plugin-related screens.

@nikunj8866
2 months ago

Add Plugin Search

Note: See TracTickets for help on using tickets.