-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: don't let the player be translated except captions #7474
Conversation
@OwenEdwards do you have any thoughts on this? Basically, we have issues if translations mess with our elements, but keeping captions translatable seems worthwhile. |
Codecov Report
@@ Coverage Diff @@
## main #7474 +/- ##
=======================================
Coverage 79.72% 79.73%
=======================================
Files 116 116
Lines 7296 7297 +1
Branches 1754 1754
=======================================
+ Hits 5817 5818 +1
Misses 1479 1479
Continue to review full report at Codecov.
|
@gkatsev honestly, I don't know anything about the And, I'm confused about the captions being translated as opposed to a separate subtitles track being present with the video?! |
@OwenEdwards so, the I've tried it out locally, and it does work not to translate the player itself but only the captions, though, I didn't test how well it worked during playback (if new cues will get translated or not) Hope that makes sense. |
@gkatsev I'm trying to understand how this would work in practice, so these are just my thoughts, rather than me saying what I think should be done: it seems like it could get really complicated, because, in the example you give of a Spanish page with Spanish captions, there might be an English captions track (strictly speaking, a subtitles track), which would make more sense for the user to select than automatically translating the Spanish captions. Also, come to think of it, if there is an English text track for a video on a page that's in Spanish, does video.js mark the And then, there's also the issue of what language each text track's |
@OwenEdwards yeah, I was thinking the scenario of only Spanish captions without English captions. Theoretically, English->English in that case would be a no-op. The items in the text track menu won't get translated because they're covered by the main |
@gkatsev you wrote:
Wouldn't it make sense to put Broadly, I understand the #6699 identifies a specific case where using Google Translate to translate a page that includes video.js causes a problem, and applying |
Maybe, if we can get just the text isolated enough. Since, we wouldn't want to introduce issues where translate replaces the elements and using the menu doesn't work anymore. Yup, applying If there's no objections with proceeding with this PR, I'd like to merge it in. |
Also, I guess the alternative is to only do |
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi
Hi friends |
This is another follow-up to videojs#6699. Potentially, it means we could get rid of videojs#6977
This is another follow-up to #6699.
Potentially, it means we could get rid of #6977