mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
Improve locale keys for comments disabled messages
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
7caa9da988
commit
9665b82fb5
@ -76,10 +76,10 @@ function get_youtube_comments() {
|
||||
if (!video_data.comments_enabled) {
|
||||
comments.innerHTML = `
|
||||
<div id="comments-turned-off-on-video-message" class="h-box v-box">
|
||||
<p><b>${video_data.youtube_comments_disabled_text}</b></p>
|
||||
<p><b>${video_data.comments_youtube_disabled_text}</b></p>
|
||||
|
||||
<p><b><a href="javascript:void(0)" data-comments="reddit" id="try-reddit-comments-link">
|
||||
${video_data.youtube_comments_disabled_try_reddit}
|
||||
${video_data.comments_youtube_disabled_try_reddit}
|
||||
</a></b></p>
|
||||
</div>`;
|
||||
|
||||
|
@ -213,9 +213,9 @@
|
||||
"View Reddit comments": "View Reddit comments",
|
||||
"Hide replies": "Hide replies",
|
||||
"Show replies": "Show replies",
|
||||
"youtube_comments_disabled_text": "Comments are turned off on this video",
|
||||
"youtube_comments_disabled_try_reddit": "Try reddit comments?",
|
||||
"invidious_comments_disabled_text": "Comments are hidden as per configuration",
|
||||
"comments_youtube_disabled_text": "Youtube comments are disabled on this video",
|
||||
"comments_youtube_disabled_try_reddit": "Try reddit comments?",
|
||||
"comments_invidious_disabled_text": "Comments are hidden as per user preferences",
|
||||
"Incorrect password": "Incorrect password",
|
||||
"Wrong answer": "Wrong answer",
|
||||
"Erroneous CAPTCHA": "Erroneous CAPTCHA",
|
||||
|
@ -62,8 +62,8 @@ we're going to need to do it here in order to allow for translations.
|
||||
"youtube_comments_text" => HTML.escape(translate(locale, "View YouTube comments")),
|
||||
"reddit_comments_text" => HTML.escape(translate(locale, "View Reddit comments")),
|
||||
"reddit_permalink_text" => HTML.escape(translate(locale, "View more comments on Reddit")),
|
||||
"youtube_comments_disabled_text" => HTML.escape(translate(locale, "youtube_comments_disabled_text")),
|
||||
"youtube_comments_disabled_try_reddit" => HTML.escape(translate(locale, "youtube_comments_disabled_try_reddit")),
|
||||
"comments_youtube_disabled_text" => HTML.escape(translate(locale, "comments_youtube_disabled_text")),
|
||||
"comments_youtube_disabled_try_reddit" => HTML.escape(translate(locale, "comments_youtube_disabled_try_reddit")),
|
||||
"comments_text" => HTML.escape(translate(locale, "View `x` comments", "{commentCount}")),
|
||||
"hide_replies_text" => HTML.escape(translate(locale, "Hide replies")),
|
||||
"show_replies_text" => HTML.escape(translate(locale, "Show replies")),
|
||||
@ -300,7 +300,7 @@ we're going to need to do it here in order to allow for translations.
|
||||
<div id="comments" class="comments">
|
||||
<% if (params.comments <=> ["", ""]) == 0 %>
|
||||
<div id="comments-disabled-message" class="h-box v-box">
|
||||
<p><b><%=HTML.escape(translate(locale, "invidious_comments_disabled_text"))%></b></p>
|
||||
<p><b><%=HTML.escape(translate(locale, "comments_invidious_disabled_text"))%></b></p>
|
||||
</div>
|
||||
<% else %>
|
||||
<% if video.comments? %>
|
||||
@ -315,12 +315,12 @@ we're going to need to do it here in order to allow for translations.
|
||||
<% end %>
|
||||
<% else %>
|
||||
<div id="comments-turned-off-on-video-message" class="h-box v-box">
|
||||
<p><b><%=HTML.escape(translate(locale, "youtube_comments_disabled_text"))%></b></p>
|
||||
<p><b><%=HTML.escape(translate(locale, "comments_youtube_disabled_text"))%></b></p>
|
||||
|
||||
<p>
|
||||
<b>
|
||||
<a href="javascript:void(0)" data-comments="reddit" id="try-reddit-comments-link">
|
||||
<%=HTML.escape(translate(locale, "youtube_comments_disabled_try_reddit"))%>
|
||||
<%=HTML.escape(translate(locale, "comments_youtube_disabled_try_reddit"))%>
|
||||
</a>
|
||||
</b>
|
||||
</p>
|
||||
|
Loading…
Reference in New Issue
Block a user