<%= render :partial => "/tr8n/admin/common/header" %> <%=tr8n_client_sdk_scripts_tag %>
Make sure that key source tracking is enabled! And try not to register useless phrases in production. Tr8n JavaScript Client SDK Test Tool
Tr8n JavaScript Client SDK is used for retrieving translations in a client application as well as register new phrases on the server. It fully supports all language rules and token types available on the server. Keep in mind that token notations may deffer from the server side implementation - based on the language used on the server.
<%= form_tag do %>
Label - text to be translated (required)
<%=text_area_tag(:label, "{count|| message, messages}", :style => "width:98%; height:40px;")%>
Description - defines the context of the label (optional)
<%=text_area_tag(:description, "", :style => "width:98%; height:40px;")%>
<%=link_to_function("Translate Label".html_safe, "translate();", :class => "tr8n_grey_button tr8n_pcb") %>
<%=link_to_function("View Examples".html_safe, "tr8nLightbox.show('/tr8n/admin/clientsdk/lb_samples', {height:450});", :class => "tr8n_grey_button tr8n_pcb", :style=>"width:200px;") %>
<%=link_to("View Phrases".html_safe, "/tr8n/phrases/index?section_key=clientsdk", :target => "_phrases", :class => "tr8n_grey_button tr8n_pcb", :style=>"width:200px;") %>
<%=link_to_function("Load Translations".html_safe, "reloadTranslations();", :class => "tr8n_grey_button tr8n_pcb", :style=>"width:200px;") %>
<%=link_to_function("Clear Results".html_safe, "clearResults();", :class => "tr8n_grey_button tr8n_pcb", :style=>"width:200px;") %>
<%=link_to_function("Run Speed Test".html_safe, "speedTest();", :class => "tr8n_grey_button tr8n_pcb", :style=>"width:200px;") %>
<%=link_to("Download SDK".html_safe, "/tr8n/javascripts/tr8n_client_sdk.js", :class => "tr8n_grey_button tr8n_pcb", :style=>"width:200px;") %>
Tokens JSON - provides values for tokens used in translation. (required, if data tokens are defined)
<%=text_area_tag(:tokens, "{'count':5}", :style => "width:99%; height:40px;")%>
Translation - translated label with substituted tokens
<%=text_area_tag(:result, "", :style => "width:99%; background:#F9F8F7;", :readonly => true)%>
<% end %>
<%= render :partial => "/tr8n/admin/common/footer" %>