Completed translations (<%= link_to 'See phrases missing translation', @locale %>)

<% if @locale.has_updated_translations? && action_name != 'updated' %> Some phrases have changed. <%= link_to "Update translations", tolk.updated_locale_path(@locale) %>. <% end %>
<% if @phrases.any? %> <%= form_for @locale do |locale_form| %> <% @phrases.each do |phrase| %> <% if phrase.translations.primary %> <% end %> <% end %>
<%= @locale.language_name -%> <%= Tolk::Locale.primary_language_name -%>
<%= hidden_field_tag :"translations[][id]", phrase.translation.id %> <%= hidden_field_tag :"translations[][locale_id]", phrase.translation.locale_id %> <%= text_area_tag :"translations[][text]", format_i18n_text_area_value(phrase.translation.text), :class => 'locale', :onfocus => "$(this).up('tr').addClassName('active');", :onblur => "$(this).up('tr').removeClassName('active');" %>
<%= text_area_tag :"translations[][original_text]", format_i18n_text_area_value(phrase.translations.primary.text), :disabled => true %> <% if action_name == 'updated' %>
Updated <%= format_i18n_value(phrase.translations.primary.text) -%> <%= boolean_warning if phrase.translations.primary.boolean? -%>
<% else %> <%= format_i18n_value(phrase.translations.primary.text) -%> <%= boolean_warning if phrase.translations.primary.boolean? -%> <% end %> <%= phrase.key %>

<%= locale_form.submit "Save changes", :class => 'save' %>

<%= tolk_paginate @phrases %>
<% end %> <% else %>

There aren't any completed translations for this locale.

 

<% end %>