i18n: Use plurals for video/view/subscriber/subscription counts

This commit is contained in:
Samantaz Fox
2021-12-27 15:17:50 +01:00
parent 692f4e5be2
commit 5bb2cb7d71
18 changed files with 92 additions and 202 deletions

View File

@@ -323,7 +323,7 @@ we're going to need to do it here in order to allow for translations.
<div class="pure-u-10-24" style="text-align:right">
<% if views = rv["short_view_count_text"]?.try &.delete(", views watching") %>
<% if !views.empty? %>
<b class="width:100%"><%= translate(locale, "`x` views", views) %></b>
<b class="width:100%"><%= translate_count(locale, "generic_views_count", views.to_i? || 0) %></b>
<% end %>
<% end %>
</div>