<%= form_for(@translation, :as => :translation, :url => {:controller => "/tr8n/translations", :action => :translate}, :html => {:id => :tr8n_translator_form, :method => :post}) do |f| %> <%= hidden_field_tag(:translation_key_id, @translation_key.id, :id => :tr8n_translator_translation_key_id) %> <%= hidden_field_tag(:translation_id, @translation.id, :id => :tr8n_translator_translation_id) %> <%= hidden_field_tag(:source_url, @source_url, :id => :tr8n_translator_source_url) %> <%= hidden_field_tag(:translation_has_dependencies, "false", :id => :tr8n_translator_translation_has_dependencies) %>
<%= render(:partial => "translator_header")%>
<%=trla("Enter {language} Translation:", nil, :language => tr8n_current_language.native_name)%>
<%= f.text_area(:label, :id => "tr8n_translator_translation_label", :class => "keyboardInput", :style=>"padding: 5px 0px; width:100%;") %> <% if @translation_key.permutatable? %>
<%=link_to_function(trla("generate context rules for this phrase"), "tr8nTranslator.switchTranslatorMode('#{@translation_key.id}', 'dependencies', '#{@source_url}')", :class=>"translation_action") %>
<% end %> <% if @translation_key.translation_tokens? %>
<%=trla("Translation Tokens")%>
<% @translation_key.translation_tokens.each do |token| %> <% if token.decoration? %> <%= link_to_function(token.sanitized_name, "tr8nTranslator.insertDecorationToken('#{token.name}');", :title => trla("Click to insert this token above") ) %> <% else %> <%= link_to_function(token.sanitized_name, "tr8nTranslator.insertToken('#{token.name}');", :title => trla("Click to insert this token above") ) %> <% end %> <% end %> <% if tr8n_current_language.cases.any? and @translation_key.data_tokens? %>
<%=link_to_function(trla("Click here if the token values depend on the language cases"), "Tr8n.Effects.hide('tr8n_translator_tokens_simple_view'); Tr8n.Effects.show('tr8n_translator_tokens_extended_view');")%>
<% end %>
<% if tr8n_current_language.cases.any? %> <% end %> <% end %> <% if Tr8n::Config.enable_google_suggestions? and tr8n_current_language.suggestible? %> <% end %> <% if Tr8n::Config.enable_glossary_hints? and @translation_key.glossary? %>
<%=trla("Glossary")%>
<% @translation_key.glossary.each do |term| %> <% border_style = "border-bottom: 1px dotted #ccc;" unless @translation_key.glossary.last == term %> <% end %>
<%=term.keyword %> <%=term.description %>
<% end %>
<% end %>
<% if Tr8n::Config.enable_software_keyboard? %> <% end %>