Skip to content

Commit

Permalink
ignore translations that are not in dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertlepicki committed Mar 10, 2011
1 parent cccb9c3 commit b55e52d
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions app/views/go_translate_yourself/site_translations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@
<th>Value</th>
</tr>
<% @translations.each do |key, default_translation| %>
<tr class="gt_separator">
<td colspan="2"></td>
</tr>
<tr class="gt_default_value">
<td class="gt_key">
<%= key %>
</td>
<td class="gt_value">
<%= default_translation %>
</td>
<% @locales.each do |locale| %>
<tr>
<td>
<%= locale %>
</td>
<td>
<%= translation_text_field locale, key, default_translation %>
</td>
</tr>
<% if default_translation %>
<tr class="gt_separator">
<td colspan="2"></td>
</tr>
<tr class="gt_default_value">
<td class="gt_key">
<%= key %>
</td>
<td class="gt_value">
<%= default_translation %>
</td>
<% @locales.each do |locale| %>
<tr>
<td>
<%= locale %>
</td>
<td>
<%= translation_text_field locale, key, default_translation %>
</td>
</tr>
<% end %>
<% end %>
</tr>
<% end %>
Expand Down

0 comments on commit b55e52d

Please sign in to comment.