Improve transcript description string ids for i18n

This commit is contained in:
syeopite
2025-05-10 20:47:52 -07:00
parent 6ecae19477
commit 66dbd750c2
2 changed files with 6 additions and 6 deletions

View File

@@ -1,13 +1,13 @@
<% if captions %>
<div class="description-widget description-show-transcript-widget">
<h4><%=HTML.escape(translate(locale, "video_description_show_transcript_section_label"))%></h4>
<h4><%=HTML.escape(translate(locale, "video_description_toggle_transcript_widget_label"))%></h4>
<% if transcript %>
<% hide_transcripts_param = env.params.query.dup %>
<% hide_transcripts_param.delete_all("show_transcripts") %>
<a class="pure-button pure-button-secondary" href="/watch?<%= hide_transcripts_param %>"><%=HTML.escape(translate(locale, "video_description_show_transcript_section_button_hide"))%></a>
<a class="pure-button pure-button-secondary" href="/watch?<%= hide_transcripts_param %>"><%=HTML.escape(translate(locale, "video_description_toggle_transcript_widget_button_label_hide"))%></a>
<% else %>
<a class="pure-button pure-button-secondary" href="/watch?<%= env.params.query %>&show_transcripts=1"><%=HTML.escape(translate(locale, "video_description_show_transcript_section_button"))%></a>
<a class="pure-button pure-button-secondary" href="/watch?<%= env.params.query %>&show_transcripts=1"><%=HTML.escape(translate(locale, "video_description_toggle_transcript_widget_button_label_show"))%></a>
<% end %>
</div>
<% end %>