app/views/rails_i18nterface/translate/index.html.erb in rails-i18nterface-0.2.2 vs app/views/rails_i18nterface/translate/index.html.erb in rails-i18nterface-0.2.3
- old
+ new
@@ -54,11 +54,11 @@
<%= hidden_field_tag(:text_type, params[:text_type], :id => "hid_text_type") %>
<%= hidden_field_tag(:text_pattern, params[:text_pattern], :id => "hid_text_pattern") %>
</div>
<div class="translations">
<p class="translate">
- Translations from <%= @from_locale %> to <%= @to_locale %>
+ Translations from <b><%= @from_locale %></b> to <b><%= @to_locale %></b> -
<label>Sort by:</label> <%= simple_filter(["key", "text"], 'sort_by').html_safe %>
<%= submit_tag "Save Translations", style: 'float:right;' %>
</p>
<% @paginated_keys.each do |key|
from_text = lookup(@from_locale, key)
@@ -88,11 +88,11 @@
<div class="translation-text">
<pre id="<%= tid %>_original"><%= from_text %></pre>
<div class="clear"></div>
</div>
<div class="translation-textarea">
- <%= text_area_tag(field_name, to_text, :rows => n_lines+1, :id => tid) %>
+ <%= text_area_tag(field_name, to_text, :rows => n_lines, :id => tid) %>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<% else %>
@@ -103,16 +103,16 @@
<div class="filelist">
<div><%= @keys.files[key].join("</div><div>").html_safe %></div>
</div>
</div>
<% end %>
- <span class="key" ><%=h key %></span>
+ <span class="key"><%=h key %></span>
<a href="#" class="delete" title="Delete this key from database">X</a>
</div>
<div class="translation-text">
<code class="keytext" id="<%= tid %>_original"><%= from_text %></code>
</div>
-
+ <a class="change multiline" href="#" title="click to transform in a multi-line translation">▶</a>
<%= text_field_tag(field_name, to_text, :size => line_size, :id => tid) %>
<% end %>
</p>
<p>
</p>
\ No newline at end of file