Sha256: f689eeec4b2c9cc26bb869c4606842d937f1c74fe9fdd9825876cb57d72f38aa

Contents?: true

Size: 774 Bytes

Versions: 7

Compression:

Stored size: 774 Bytes

Contents

<% unless @unused_translations %>
  <p>There are no useless translations</p>
<% else %>
  <p>There are <%= @unused_translations.size %> translations that exists for
  the [ <%= I18n.locale %> ] language, but DO NOT exists for [ <%= I18n.default_locale %> ].
  You probably want to do something about it.
  </p>

  <table>
    <thead>
      <tr class="header">
        <th>Key</th>
        <th>Value in [ <%= I18n.locale %> ]</th>
        <th>Delete</th>
      </tr>
    </thead>
    <% @unused_translations.each do |trans| %>
      <tr>
        <td><%= trans.key %></td>
        <td><%= trans.value %></td>
        <td>
          <%= link_to "Destroy it", trans, :method => :delete, :confirm => "Are you sure?" %>
        </td>
      </tr>
    <% end%>
  </table>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
interpret-1.1.2 app/views/interpret/missing_translations/unused.html.erb
interpret-1.1.1 app/views/interpret/missing_translations/unused.html.erb
interpret-1.1.0 app/views/interpret/missing_translations/unused.html.erb
interpret-1.0.2 app/views/interpret/missing_translations/unused.html.erb
interpret-1.0.1 app/views/interpret/missing_translations/unused.html.erb
interpret-0.2.1 app/views/interpret/missing_translations/unused.html.erb
interpret-1.0.0 app/views/interpret/missing_translations/unused.html.erb