Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 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)

#1 @johnbillion
6 years ago

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

#2 @pavelevap
6 years ago

  • Cc pavelevap@… added

#3 follow-up: @nacin
6 years ago

Fairly sure we already do?

#4 in reply to: ↑ 3 @johnbillion
6 years ago

Replying to nacin:

Fairly sure we already do?

Only for active plugins currently.

#5 @dd32
6 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?

#6 @johnbillion
6 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 6 years ago by johnbillion (previous) (diff)

#7 @dd32
6 years ago

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