Make WordPress Core

Opened 6 weeks ago

#66240 new enhancement

Show plugin translation completion and allow managing installed language packs

Reported by: blackstar1991 Owned by:
Priority: normal Milestone: Awaiting Review
Component: I18N Version:
Severity: normal Keywords:
Cc: Focuses:

Description

Summary
Improve translation management for installed plugins by showing translation availability and completion status directly on the Plugins → Installed Plugins screen, and allow administrators to remove unnecessary installed plugin language packs.

Problem

WordPress automatically downloads and updates translation packages for plugins when translations are available for the site's installed languages.
However, administrators currently have very little visibility or control over these plugin translations from the WordPress admin interface.

For an installed plugin, the administrator cannot easily see:

  • which plugin translations are currently installed;
  • how complete a translation is for a particular locale;
  • whether a translation package is available but not installed;
  • whether a translation is incomplete;
  • which translation packages are no longer needed on the site;
  • how to remove an unnecessary translation package without manually working with files in wp-content/languages/plugins/.

This becomes especially noticeable on multilingual sites, development environments, migrated sites, or sites where the active locale configuration has changed over time.
As a result, unused translation files may remain installed, while administrators have no convenient way to understand their status or manage them.

Proposed solution

Add a translation management interface for each plugin on the Installed Plugins screen.
For example, a new action such as:
Translations
could open an expandable section, modal, or another suitable interface showing available locales for the plugin.
Example:
Contact Form 7
Translations:

Ukrainian (uk)     100% translated    Installed
German (de_DE)      96% translated    Installed    [Remove]
Polish (pl_PL)      84% translated    Not installed
Spanish (es_ES)    100% translated    Installed    [Remove]

The exact UI could be discussed separately, but the important information would be:

  • locale / language name;
  • translation completion percentage;
  • whether a language pack is available;
  • whether it is currently installed;
  • when appropriate, an action to remove the installed language pack.

Translation completion percentage
It would be useful to expose the translation completion percentage because the current state is otherwise difficult to understand.
For example:

Ukrainian — 100%
German — 96%
Polish — 84%

This gives the administrator much more useful information than simply knowing that a translation exists.
It also helps explain why a particular plugin may still contain untranslated strings even though a translation package is installed.
Ideally, this information could be obtained from the WordPress.org translation infrastructure.
If the current translations API does not expose the translation completion percentage, this may require an associated WordPress.org Meta / Translation API change.
Managing installed language packs
Administrators should also be able to remove unnecessary plugin translation packages from WordPress admin.
Currently this generally requires direct filesystem access and knowledge of files stored under:

wp-content/languages/plugins/

A simple Remove translation action would make this functionality accessible without requiring FTP, SSH, hosting file managers, or manual file deletion.
The action should only remove the translation package for the selected locale and plugin.
It should not:

  • remove the plugin;
  • change the site's locale;
  • remove translations for other plugins;
  • affect translations bundled directly inside the plugin.

Possible use cases

  1. Site language was changed

A site previously used several locales and later switched to another language.
Old plugin translation packages may remain installed even though they are no longer required.

  1. Multilingual development site

During development or testing, several languages may be temporarily installed.
After testing is finished, administrators should be able to remove translations that are no longer needed.

  1. Understanding incomplete translations

A plugin may appear partially untranslated.
Displaying the completion percentage would help administrators understand whether this is caused by an incomplete community translation rather than by a problem with WordPress or the plugin itself.

  1. Better transparency

WordPress currently downloads plugin translations automatically, but the process is mostly invisible to site administrators.
Providing translation information directly in the plugin management interface would make this behaviour easier to understand.

Possible UI location

One possible implementation would be to add a new plugin row action:
Settings | Deactivate | Translations
Selecting Translations could expand a secondary row underneath the plugin, similar to other plugin information displayed on this screen.
Another possibility would be a dedicated modal or details screen.
The exact UI is less important than providing access to the information and management actions.

Scope

This proposal is mainly about:

  1. displaying plugin translation information in WordPress admin;
  2. exposing translation completion status where possible;
  3. showing which plugin language packs are installed;
  4. allowing administrators to remove unnecessary plugin language packs.

The proposal does not suggest changing how translations themselves are created or approved on translate.wordpress.org.

Technical considerations

WordPress already has infrastructure for:

  • discovering installed translations;
  • downloading language packs;
  • updating language packs;
  • removing plugin translations when a plugin itself is deleted.

Therefore, much of the underlying language-pack functionality already exists.
The main additions would likely involve:

  • exposing this information in the Installed Plugins UI;
  • providing a safe action for deleting a specific plugin language pack;
  • obtaining translation completion information from WordPress.org where available.

If translation completion percentages are not currently exposed by the WordPress.org translation API, that part may require a related WordPress.org Meta ticket.

Expected benefit

This would make plugin translation management more transparent and give site administrators greater control over automatically installed language resources.
It would also make WordPress easier to manage on multilingual sites and help administrators distinguish between plugin issues and incomplete community translations.

Change History (0)

Note: See TracTickets for help on using tickets.