Invidious is an alternative front-end to YouTube
Add other missing translations
Samantaz Foxf29ab53aff8a
diff --git a/locales/en-US.json b/locales/en-US.jsonindex de3b375d..a9ae042d 100644--- a/locales/en-US.json+++ b/locales/en-US.json@@ -90,6 +90,7 @@"preferences_comments_label": "Default comments: ","youtube": "YouTube","reddit": "Reddit",+ "invidious": "Invidious","preferences_captions_label": "Default captions: ","Fallback captions: ": "Fallback captions: ","preferences_related_videos_label": "Show related videos: ",@@ -439,6 +440,8 @@"4k": "4K","location": "Location","hdr": "HDR",+ "purchased" : "Purchased",+ "360" : "360°","filter": "Filter","Current version: ": "Current version: ","next_steps_error_message": "After which you should try to: ",@@ -449,5 +452,14 @@"footer_source_code": "Source code","footer_original_source_code": "Original source code","footer_modfied_source_code": "Modified Source code",- "adminprefs_modified_source_code_url_label": "URL to modified source code repository"+ "adminprefs_modified_source_code_url_label": "URL to modified source code repository",+ "none": "none",+ "videoinfo_started_streaming_x_ago": "Started streaming `x` ago",+ "videoinfo_watch_on_youTube": "Watch on YouTube",+ "videoinfo_youTube_embed_link": "Embed",+ "videoinfo_invidious_embed_link": "Embed Link",+ "download_subtitles": "Subtitles - `x` (.vtt)",+ "user_created_playlists": "`x` created playlists",+ "user_saved_playlists": "`x` saved playlists",+ "Video unavailable": "Video unavailable"}diff --git a/src/invidious/views/components/video-context-buttons.ecr b/src/invidious/views/components/video-context-buttons.ecrindex daa107f0..ddb6c983 100644--- a/src/invidious/views/components/video-context-buttons.ecr+++ b/src/invidious/views/components/video-context-buttons.ecr@@ -1,6 +1,6 @@<div class="flex-right"><div class="icon-buttons">- <a title="<%=translate(locale, "Watch on YouTube")%>" href="https://www.youtube.com/watch<%=endpoint_params%>">+ <a title="<%=translate(locale, "videoinfo_watch_on_youTube")%>" href="https://www.youtube.com/watch<%=endpoint_params%>"><i class="icon ion-logo-youtube"></i></a><a title="<%=translate(locale, "Audio mode")%>" href="/watch<%=endpoint_params%>&listen=1">diff --git a/src/invidious/views/feeds/playlists.ecr b/src/invidious/views/feeds/playlists.ecrindex 868cfeda..a59344c4 100644--- a/src/invidious/views/feeds/playlists.ecr+++ b/src/invidious/views/feeds/playlists.ecr@@ -6,7 +6,7 @@<div class="pure-g h-box"><div class="pure-u-2-3">- <h3><%= translate(locale, "`x` created playlists", %(<span id="count">#{items_created.size}</span>)) %></h3>+ <h3><%= translate(locale, "user_created_playlists", %(<span id="count">#{items_created.size}</span>)) %></h3></div><div class="pure-u-1-3" style="text-align:right"><h3>@@ -23,7 +23,7 @@<div class="pure-g h-box"><div class="pure-u-1">- <h3><%= translate(locale, "`x` saved playlists", %(<span id="count">#{items_saved.size}</span>)) %></h3>+ <h3><%= translate(locale, "user_saved_playlists", %(<span id="count">#{items_saved.size}</span>)) %></h3></div></div>diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecrindex 9cf00393..b85ea59d 100644--- a/src/invidious/views/watch.ecr+++ b/src/invidious/views/watch.ecr@@ -103,7 +103,7 @@ we're going to need to do it here in order to allow for translations.</h3><% elsif video.live_now %><h3>- <%= video.premiere_timestamp.try { |t| translate(locale, "Started streaming `x` ago", recode_date((Time.utc - t).ago, locale)) } %>+ <%= video.premiere_timestamp.try { |t| translate(locale, "videoinfo_started_streaming_x_ago", recode_date((Time.utc - t).ago, locale)) } %></h3><% end %></div>@@ -112,8 +112,8 @@ we're going to need to do it here in order to allow for translations.<div class="pure-u-1 pure-u-lg-1-5"><div class="h-box"><span id="watch-on-youtube">- <a href="https://www.youtube.com/watch?v=<%= video.id %>"><%= translate(locale, "Watch on YouTube") %></a>- (<a href="https://www.youtube.com/embed/<%= video.id %>"><%= translate(locale, "Embed") %></a>)+ <a href="https://www.youtube.com/watch?v=<%= video.id %>"><%= translate(locale, "videoinfo_watch_on_youTube") %></a>+ (<a href="https://www.youtube.com/embed/<%= video.id %>"><%= translate(locale, "videoinfo_youTube_embed_link") %></a>)</span><p id="watch-on-another-invidious-instance"><% if env.get("preferences").as(Preferences).automatic_instance_redirect%>@@ -123,7 +123,7 @@ we're going to need to do it here in order to allow for translations.<% end %></p><p id="embed-link">- <a href="<%= embed_link %>"><%= translate(locale, "Embed Link") %></a>+ <a href="<%= embed_link %>"><%= translate(locale, "videoinfo_invidious_embed_link") %></a></p><p id="annotations"><% if params.annotations %>@@ -189,7 +189,7 @@ we're going to need to do it here in order to allow for translations.<% end %><% captions.each do |caption| %><option value='{"id":"<%= video.id %>","label":"<%= caption.name %>","title":"<%= URI.encode_www_form(video.title) %>-<%= video.id %>.<%= caption.language_code %>.vtt"}'>- <%= translate(locale, "Subtitles - `x` (.vtt)", caption.name) %>+ <%= translate(locale, "download_subtitles", translate(locale, caption.name)) %></option><% end %></select>