Skip to content

Commit

Permalink
Show number of translations in translation overview.
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Aug 9, 2018
1 parent 8b266b2 commit 953dd9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/views/taginfo/translations.erb
Expand Up @@ -3,9 +3,10 @@
</div>
<div class="box resize" lang="en" dir="ltr">
<table class="list">
<% r18n.available_locales.sort{ |a,b| a.code <=> b.code }.each do |locale| %>
<% r18n.available_locales.sort{ |a,b| a.code <=> b.code }.each_with_index do |locale, n| %>
<% percent = (@num_texts[locale.code].to_f / @num_texts['en'].to_f * 100).to_i %>
<tr>
<td style="text-align: right;"><%= n + 1 %>.</td>
<td><span class="lang"><%= locale.code %></span></td>
<td><%= h(::Language[locale.code].english_name) %></td>
<td lang="<%= locale.code %>" dir="<%= locale.ltr? ? 'ltr' : 'rtl' %>"><%= h(::Language[locale.code].native_name) %></td>
Expand Down

0 comments on commit 953dd9c

Please sign in to comment.