[wp-trac] [WordPress Trac] #52817: hello dolly does not delete the language file

WordPress Trac noreply at wordpress.org
Mon Mar 15 12:03:12 UTC 2021


#52817: hello dolly does not delete the language file
--------------------------+-----------------------------
 Reporter:  Otshelnik-Fm  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.8
Component:  Plugins       |     Version:  5.7
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  administration
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:   => needs-patch
 * milestone:  Awaiting Review => 5.8


Comment:

 Thanks for the ticket!

 Generally, plugin translations are deleted along with the plugin, see
 [29856] / #29860.

 It looks like Hello Dolly is a bit of an edge case here, as the file name
 (`hello.php`) does not match the plugin slug in the directory (`hello-
 dolly`). If you delete the plugin, reinstall it from the directory, and
 delete again, I believe that would delete the translation as well :)

 There is an exception for Hello Dolly in
 `_get_plugin_data_markup_translate()`, added in [19965] / #19597, to make
 sure its translation is loaded correctly.

 Perhaps another exception is needed in `delete_plugins()`. Or, maybe
 somewhere else too, so that the translation would only be downloaded when
 installing the plugin from the directory, since otherwise a `hello-dolly-
 ru_RU.po` file is simply redundant and unused, as the translation for
 Hello Dolly is already included in WordPress core language files (`admin-
 ru_RU.po` in this case).

 Just a reminder for anyone following the ticket, that this is not the
 place to suggest removing Hello Dolly from core, see #11538 for that.

 Some other tickets that may (or may not) also be related: #29540, #37351,
 and #49338.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52817#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list