Sha256: bd39d50e0549b6807184969cd29d1aa64004748c7f7e456e784b57267ad12007

Contents?: true

Size: 1.53 KB

Versions: 6

Compression:

Stored size: 1.53 KB

Contents

<% if I18n.locale == I18n.default_locale %>
  <p>There can't be stale translations for the main language</p>

<% elsif @stale_translations.empty? %>
  <p>There are no stale translations</p>

<% else %>
  <p>There are <%= @stale_translations.size %> stale translations in [<%= I18n.locale %>].</p>
  <p>
    They have been modified in the master language (<%= I18n.default_locale %>)
    so probably you want to change them in the current languge too.
    Once you think your new adaptation is correct click on "Mark as OK" button and that translation will no longer appear as stale.
  </p>
  <table id='stale_translations'>
    <thead>
      <tr class="header">
        <th>Key</th>
        <th>Value in [ <%= I18n.default_locale %> ]</th>
        <th>Your translation to [ <%= I18n.locale %> ]</th>
        <th>Actions</th>
      </tr>
    </thead>
    <% @stale_translations.each do |trans, ref| %>
      <tr>
        <td class='key'><%= trans.key %></td>
        <td><%= ref.value %></td>
        <td class='content' id='translation_<%= trans.id %>'>
            <%= best_in_place trans, :value,
                :type => :textarea,
                :path => translation_path(trans),
                :activator => "#translation_#{trans.id}",
                :sanitize => false %>
        </td>
        <td>
          <%= form_for trans, :url => translation_path(trans) do |f| %>
            <%= f.hidden_field :stale, :value => false %>
            <%= submit_tag "Mark as OK" %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </table>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

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