summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-01-21 11:54:44 -0600
committerOmar Roth <omarroth@hotmail.com>2019-01-21 11:54:44 -0600
commita7b6a67615f8fee80534ea2bbcd597ae3fea5b3e (patch)
treeca9428390a9dfe959342b0fc77a7d8fb9597c406 /src
parente7f05d76fab86335263c5d75105fb53a8c523811 (diff)
downloadinvidious-a7b6a67615f8fee80534ea2bbcd597ae3fea5b3e.tar.gz
invidious-a7b6a67615f8fee80534ea2bbcd597ae3fea5b3e.tar.bz2
invidious-a7b6a67615f8fee80534ea2bbcd597ae3fea5b3e.zip
Use locale for "Only show latest" text
Diffstat (limited to 'src')
-rw-r--r--src/invidious/views/preferences.ecr6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/invidious/views/preferences.ecr b/src/invidious/views/preferences.ecr
index 7a01004b..cd752900 100644
--- a/src/invidious/views/preferences.ecr
+++ b/src/invidious/views/preferences.ecr
@@ -147,7 +147,11 @@ function update_value(element) {
</div>
<div class="pure-control-group">
- <label for="latest_only">Only show latest <% if user.preferences.unseen_only %>unwatched<% end %> video from channel: </label>
+ <% if user.preferences.unseen_only %>
+ <label for="latest_only"><%= translate(locale, "Only show latest unwatched video from channel: ") %></label>
+ <% else %>
+ <label for="latest_only"><%= translate(locale, "Only show latest video from channel: ") %></label>
+ <% end %>
<input name="latest_only" id="latest_only" type="checkbox" <% if user.preferences.latest_only %>checked<% end %>>
</div>