[wp-meta] [Making WordPress.org] #7376: Plugin translation file missing plugin description if it is found in JS also

Making WordPress.org noreply at wordpress.org
Sat Dec 16 09:19:09 UTC 2023


#7376: Plugin translation file missing plugin description if it is found in JS
also
--------------------------------------+--------------------
 Reporter:  swissspidy                |      Owner:  (none)
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:
Component:  Translate Site & Plugins  |   Keywords:
--------------------------------------+--------------------
 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.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/7376>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list