Making WordPress.org

Opened 14 months ago

Last modified 14 months ago

#7376 new defect (bug)

Plugin translation file missing plugin description if it is found in JS also

Reported by: swissspidy's profile swissspidy Owned by:
Milestone: Priority: normal
Component: Translate Site & Plugins Keywords:
Cc:

Description

Originally reported at https://github.com/swissspidy/preferred-languages/issues/883

The Preferred Languages plugin contains the string "Choose languages for displaying WordPress in, in order of preference." in 3 places:

  • readme.txt
  • The description in the main plugin file header
  • A JS file

The translation platform splits plugin translation files into MO and JSON files depending on the occurrence of the source string.

Since the plugin description doesn't have a source file reference but only a comment, the translation platform doesn't recognize that it needs to keep it in the MO file. So what happens is that the string is missing from there and the plugin description is not translated.

I see a couple of ways to solve this:

  1. In wp i18n make-pot add a source file reference for plugin/theme metadata
  2. Or, here on dotorog, try to improve the file splitting so that these strings are always included in the MO file as well.

Change History (2)

Note: See TracTickets for help on using tickets.