Skip to content
Permalink
Browse files

Making the "from" and "to" logic for labeling original content more a…

…ccurrate.
  • Loading branch information...
Walter McGinnis
Walter McGinnis committed Dec 14, 2010
1 parent 34ab6da commit 528d6f55b92bcedca15c432aaf7a04ef2abfae95
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/views/translations/_form.html.erb
@@ -1,6 +1,7 @@
<% translatable = @translatable.present? ? @translatable : @translated %>
<h2 style="margin:0 0 10px 0;">
<%= I18n.t('translations.form.translate_from_and_to',
:from => TranslationsHelper::available_locales[I18n.locale],
:from => TranslationsHelper::available_locales[translatable.original_locale],
:to => TranslationsHelper::available_locales[h(@translation.locale)]) %>
</h2>

@@ -12,7 +13,7 @@
<table style="width: 98%;">
<tr>
<th colspan="2" style="width: 48%;">
<h3 style="margin:0 0 10px 0;"><%= TranslationsHelper::available_locales[I18n.locale] %></h3>
<h3 style="margin:0 0 10px 0;"><%= TranslationsHelper::available_locales[translatable.original_locale] %></h3>
</th>
<th rowspan="<%= @translatable_class.translatable_attributes.size + 1 %>" style="width:1px; border-left: 1px solid #000; padding: 0; margin: 0"></th>
<th colspan="3" style="width: 48%;">

0 comments on commit 528d6f5

Please sign in to comment.
You can’t perform that action at this time.