mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-06-28 09:58:25 +00:00
Improve transcript description string ids for i18n
This commit is contained in:
parent
6ecae19477
commit
66dbd750c2
@ -502,9 +502,9 @@
|
|||||||
"carousel_slide": "Slide {{current}} of {{total}}",
|
"carousel_slide": "Slide {{current}} of {{total}}",
|
||||||
"carousel_skip": "Skip the Carousel",
|
"carousel_skip": "Skip the Carousel",
|
||||||
"carousel_go_to": "Go to slide `x`",
|
"carousel_go_to": "Go to slide `x`",
|
||||||
"video_description_show_transcript_section_label": "Transcripts",
|
"video_description_toggle_transcript_widget_label": "Transcripts",
|
||||||
"video_description_show_transcript_section_button": "Show transcript",
|
"video_description_toggle_transcript_widget_button_label_show": "Show transcript",
|
||||||
"video_description_show_transcript_section_button_hide": "Hide transcript",
|
"video_description_toggle_transcript_widget_button_label_hide": "Hide transcript",
|
||||||
"error_transcripts_none_available": "No transcripts are available",
|
"error_transcripts_none_available": "No transcripts are available",
|
||||||
"transcript_widget_title": "Transcript",
|
"transcript_widget_title": "Transcript",
|
||||||
"transcript_widget_no_js_change_transcript_btn": "Swap"
|
"transcript_widget_no_js_change_transcript_btn": "Swap"
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<% if captions %>
|
<% if captions %>
|
||||||
<div class="description-widget description-show-transcript-widget">
|
<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 %>
|
<% if transcript %>
|
||||||
<% hide_transcripts_param = env.params.query.dup %>
|
<% hide_transcripts_param = env.params.query.dup %>
|
||||||
<% hide_transcripts_param.delete_all("show_transcripts") %>
|
<% 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 %>
|
<% 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 %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
Reference in New Issue
Block a user