summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2021-11-15 17:17:27 +0100
committerSamantaz Fox <coding@samantaz.fr>2021-11-21 01:50:11 +0100
commitb5b0c58de7e9950e15005e28e6e51ff54bb98156 (patch)
tree514217f5b04f5643ddabe51d3c7b88d2e5369fbb
parenta1bb421eec608382ca1cc76c4be9db0a417f6bca (diff)
downloadinvidious-b5b0c58de7e9950e15005e28e6e51ff54bb98156.tar.gz
invidious-b5b0c58de7e9950e15005e28e6e51ff54bb98156.tar.bz2
invidious-b5b0c58de7e9950e15005e28e6e51ff54bb98156.zip
Add missing translation for quality selectors
-rw-r--r--locales/en-US.json16
-rw-r--r--src/invidious/views/preferences.ecr4
2 files changed, 18 insertions, 2 deletions
diff --git a/locales/en-US.json b/locales/en-US.json
index 036c22f4..de3b375d 100644
--- a/locales/en-US.json
+++ b/locales/en-US.json
@@ -69,7 +69,23 @@
"preferences_local_label": "Proxy videos: ",
"preferences_speed_label": "Default speed: ",
"preferences_quality_label": "Preferred video quality: ",
+ "preferences_quality_option_dash": "DASH (adaptative quality)",
+ "preferences_quality_option_hd720": "HD720",
+ "preferences_quality_option_medium": "Medium",
+ "preferences_quality_option_small": "Small",
"preferences_quality_dash_label": "Preferred dash video quality: ",
+ "preferences_quality_dash_option_auto": "Auto",
+ "preferences_quality_dash_option_best": "Best",
+ "preferences_quality_dash_option_worst": "Worst",
+ "preferences_quality_dash_option_4320p": "4320p",
+ "preferences_quality_dash_option_2160p": "2160p",
+ "preferences_quality_dash_option_1440p": "1440p",
+ "preferences_quality_dash_option_1080p": "1080p",
+ "preferences_quality_dash_option_720p": "720p",
+ "preferences_quality_dash_option_480p": "480p",
+ "preferences_quality_dash_option_360p": "360p",
+ "preferences_quality_dash_option_240p": "240p",
+ "preferences_quality_dash_option_144p": "144p",
"preferences_volume_label": "Player volume: ",
"preferences_comments_label": "Default comments: ",
"youtube": "YouTube",
diff --git a/src/invidious/views/preferences.ecr b/src/invidious/views/preferences.ecr
index f3e36bfa..6bd9e348 100644
--- a/src/invidious/views/preferences.ecr
+++ b/src/invidious/views/preferences.ecr
@@ -51,7 +51,7 @@
<select name="quality" id="quality">
<% {"dash", "hd720", "medium", "small"}.each do |option| %>
<% if !(option == "dash" && CONFIG.disabled?("dash")) %>
- <option value="<%= option %>" <% if preferences.quality == option %> selected <% end %>><%= translate(locale, option) %></option>
+ <option value="<%= option %>" <% if preferences.quality == option %> selected <% end %>><%= translate(locale, "preferences_quality_option_" + option) %></option>
<% end %>
<% end %>
</select>
@@ -62,7 +62,7 @@
<label for="quality_dash"><%= translate(locale, "preferences_quality_dash_label") %></label>
<select name="quality_dash" id="quality_dash">
<% {"auto", "best", "4320p", "2160p", "1440p", "1080p", "720p", "480p", "360p", "240p", "144p", "worst"}.each do |option| %>
- <option value="<%= option %>" <% if preferences.quality_dash == option %> selected <% end %>><%= translate(locale, option) %></option>
+ <option value="<%= option %>" <% if preferences.quality_dash == option %> selected <% end %>><%= translate(locale, "preferences_quality_dash_option_" + option) %></option>
<% end %>
</select>
</div>