Sha256: 34aa5cd793e743bea0e9a6498a0e116af21c1f8bdae498dcabaf48aa2e91ad4c

Contents?: true

Size: 852 Bytes

Versions: 8

Compression:

Stored size: 852 Bytes

Contents

<h2>Locales <span>Primary locale is <%= Tolk::Locale.primary_locale.language_name %></span></h2>
<% if @locales.any? %>
  <ul class="locales clearfix">
    <% @locales.each do |locale| %>
      <li>
        <%= link_to locale.language_name, locale %>
        <% missing_count = locale.count_phrases_without_translation %>
        <% if missing_count > 0 %>
          <span class="missing_translations"><%= locale.count_phrases_without_translation %></span>
        <% end %>
      </li>
    <% end %>
  </ul>
  
<% else %>
  <p>No locales yet.</p>

<% end %>
<%= form_for(Tolk::Locale.new) do |f| %>
<div class="submit">
  <p>
    <%= f.label "Add a new Locale" %>
    <select id="select_tolk_locale_name" name="tolk_locale[name]">
      <%= options_for_select tolk_locale_selection %>
    </select>
    <%= f.submit 'Add' %>
  </p>
</div>
<% end %>


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tolk-1.3.7 app/views/tolk/locales/index.html.erb
tolk-1.3.6 app/views/tolk/locales/index.html.erb
tolk-1.3.5 app/views/tolk/locales/index.html.erb
tolk-1.3.4 app/views/tolk/locales/index.html.erb
tolk-1.3.3 app/views/tolk/locales/index.html.erb
tolk-1.3.2 app/views/tolk/locales/index.html.erb
tolk-1.3.1 app/views/tolk/locales/index.html.erb
tolk-1.3.0 app/views/tolk/locales/index.html.erb