%= tr8n_with_options_tag(:default_locale => 'en-US', :admin => true) do %> <%= render :partial => "/tr8n/common/header" %> <%= render :partial => "breadcrumb" %>
<%=tra("Original Phrase")%> | <%=tra("Top {language} Translations", nil, :language => tr8n_current_language.native_name) %> | |
<% if tk.locked? %>
<%=image_tag("tr8n/lock.png", :style=>"width:12px", :title => trla("This phrase is locked"))%>
<% end %>
<%=link_to(tk.default_decoration, :action => :view, :translation_key_id => tk.id, :section_key => @section_key)%>
<%=tk.description%>
|
<% translations = tk.translations_for(tr8n_current_language) %>
<% if translations.empty? %>
<%= tra("There are no translations for this phrase.") %>
<% unless tk.locked? %>
<%= tra("Be the first one to [link: translate it].", "",
:link => lambda{|str| link_to(str, :controller => "/tr8n/phrases", :action => :view, :translation_key_id => tk.id, :section_key => @section_key)} ) %>
<% end %>
<% else %>
<%= render :partial => "/tr8n/common/translation_votes", :locals => {:translation_key => tk, :translations => translations[0..4], :section_key => @section_key} %>
<% end %>
|