Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#20320 closed enhancement (invalid)

Display localised plugin name/description for inactive plugins

Reported by: johnbillion Owned by: johnbillion
Milestone: Priority: normal
Severity: normal Version:
Component: I18N Keywords:
Focuses: Cc:


Fairly sure that we can display localised plugin data (name, description, etc) on the Plugins screen for inactive plugins if the plugin includes a Text Domain and a Domain Path header.

Patch coming up at some point.

Change History (7)

comment:1 @johnbillion3 years ago

  • Owner set to johnbillion
  • Status changed from new to assigned

comment:2 @pavelevap3 years ago

  • Cc pavelevap@… added

comment:3 follow-up: @nacin3 years ago

Fairly sure we already do?

comment:4 in reply to: ↑ 3 @johnbillion3 years ago

Replying to nacin:

Fairly sure we already do?

Only for active plugins currently.

comment:5 @dd323 years ago

Then it sounds like a bug, as although I haven't tested it, there's no switch in the code to only translate it for active plugins.

It might be that the load_plugin_textdomain() calls in wp-admin/includes/plugin.php isn't the same as what the plugin would be doing, resulting in it translating when the plugin is active, but not when it's inactive?

comment:6 @johnbillion3 years ago

  • Resolution set to invalid
  • Status changed from assigned to closed

False alarm. My test plugin had an erroneous Domain Path header. Translations are shown for all plugins regardless of activation status.

Last edited 3 years ago by johnbillion (previous) (diff)

comment:7 @dd323 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.