Page MenuHomePhabricator

Remove unused TimedMediaHandler messages
Closed, ResolvedPublic

Description

Several i18n messages in TimedMediaHandler appear to be unused. I discovered it as I was doing some informal auditing of Extensions used by Wikimedia in translatewiki and noticed that some TimedMediaHandler messages were documented as "May unused" (sic) by @Umherirrender in qqq.

I ran git grep and here's what I found:

These messages don't appear anywhere outside json files:

  1. mwe-embedplayer-loading_plugin
  2. mwe-embedplayer-select_playback
  3. mwe-embedplayer-link_back
  4. mwe-embedplayer-error_swap_vid
  5. mwe-embedplayer-add_to_end_of_sequence
  6. mwe-embedplayer-missing_video_stream
  7. mwe-embedplayer-next_clip_msg
  8. mwe-embedplayer-prev_clip_msg
  9. mwe-embedplayer-current_clip_msg
  10. mwe-embedplayer-download_segment
  11. mwe-embedplayer-download_right_click
  12. mwe-embedplayer-download_clip
  13. mwe-embedplayer-clip_linkback
  14. mwe-embedplayer-video_credits
  15. mwe-embedplayer-no-video_credits
  16. mwe-embedplayer-read_before_embed
  17. mwe-embedplayer-related_videos
  18. mwe-embedplayer-missing-source

These are mentioned in the code, but I couldn't find where exactly. If they can actually be seen by users, it would be great to document them properly in qqq. If they are not actually seen, the messages and the corresponding code must be removed:

  1. mwe-embedplayer-download_text
  2. mwe-embedplayer-about-library
  3. mwe-embedplayer-kaltura-platform-title

Similar task: T224429: Hunt and remove unused i18n messages in mediawiki core

Event Timeline

Change 783433 had a related patch set uploaded (by Amire80; author: Amire80):

[mediawiki/extensions/TimedMediaHandler@master] Remove unused messages

https://gerrit.wikimedia.org/r/783433

DJ might know better but also I want to mention we are soon dropping kultura (in a month or so) and you can remove waay more messages because of that.

DJ might know better but also I want to mention we are soon dropping kultura (in a month or so) and you can remove waay more messages because of that.

Oh, interesting. I was always confused about VideoJS, "New media player", MWEmbed, etc. It's a process that that has been going on for a while.

Which messages are Kaltura? Those under i18n/EmbedPlayer? Or something else?

If you can point me to the files, I'll move them to "Legacy" on translatewiki ASAP.

Can't say for sure but by glancing over the code, yes. All of i18n/EmbedPlayer can be removed \o/ If you want to follow the progress, you can subscribe to T248418: Roll out videojs as the only video/audio player on all Wikimedia wikis

Change 783447 had a related patch set uploaded (by Amire80; author: Amire80):

[translatewiki@master] Move TimedMediaHandler EmbedPlayer to Wikimedia - Legacy

https://gerrit.wikimedia.org/r/783447

Change 783447 merged by jenkins-bot:

[translatewiki@master] Move TimedMediaHandler EmbedPlayer to Wikimedia - Legacy

https://gerrit.wikimedia.org/r/783447

Change 783433 abandoned by Amire80:

[mediawiki/extensions/TimedMediaHandler@master] Remove unused messages

Reason:

https://gerrit.wikimedia.org/r/783433

Amire80 claimed this task.

Since the component is being deprecated anyway, moving it to Legacy on translatewiki is enough.