External tools are tools outside of Canvas that support
- Basic LTI integrations. You will need to check with the author
- of the tool for the correct configuration parameters to add.
- Tools are configured at the account level, and can then be
- added as content in course modules for courses in the account.
+
<%= t :external_tools_note, "External tools are tools outside of Canvas that support Basic LTI integrations. You will need to check with the author of the tool for the correct configuration parameters to add. Tools are configured at the account level, and can then be added as content in course modules for courses in the account." %>
<% @context.context_external_tools.active.each do |tool| %>
<%= render :partial => 'external_tools/external_tool', :object => tool %>
@@ -14,44 +10,44 @@
<% form_for :external_tool, :url => '.', :html => {:id => 'external_tool_form'} do |f| %>
- <%= f.label :name, "Name:" %>
+ <%= f.blabel :name, :en => "Name" %>
<%= f.text_field :name %>
- <%= f.label :consumer_key, "Consumer Key:" %>
+ <%= f.blabel :consumer_key, :en => "Consumer Key" %>
<%= f.text_field :consumer_key %>
- <%= f.label :shared_secret, "Shared Secret:" %>
+ <%= f.blabel :shared_secret, :en => "Shared Secret" %>
<%= f.text_field :shared_secret %>
- enter a new value to change
+ <%= t :shared_secret_note, "enter a new value to change" %>
- Match By:
+ <%= before_label :match_by, "Match By" %>
- Domain
- URL
+ <%= t :domain, "Domain" %>
+ <%= t :url, "URL" %>
- <%= f.label :url, "URL:" %>
+ <%= f.blabel :url, :en => "URL" %>
<%= f.text_field :url %>
- <%= f.label :domain, "Domain:" %>
+ <%= f.blabel :domain, :en => "Domain" %>
<%= f.text_field :domain %>
- <%= f.label :privacy_level, "Privacy:" %>
- <%= f.select :privacy_level, [['Anonymous','anonymous'],['Name Only','name_only'],['Public','public']] %>
+ <%= f.blabel :privacy_level, :en => "Privacy" %>
+ <%= f.select :privacy_level, [[t(:anonymous, "Anonymous"),'anonymous'],[t(:name_only, "Name Only"),'name_only'],[t(:public, "Public"),'public']] %>
- <%= f.label :description, "Description:" %>
+ <%= f.blabel :description, :en => "Description" %>
<%= f.text_area :description, :style => "width: 550px; height: 100px;" %>
- Save Tool Settings
- Cancel
+ <%= t "#buttons.save_tool_settings", "Save Tool Settings" %>
+ <%= t "#buttons.cancel", "Cancel" %>
@@ -60,5 +56,5 @@
- <%= image_tag "add.png" %> Add External Tool
+ <%= image_tag "add.png" %> <%= t "#buttons.add_external_tool", "Add External Tool" %>
diff --git a/app/views/external_tools/finished.html.erb b/app/views/external_tools/finished.html.erb
index 337a4cf281b..441d2997da1 100644
--- a/app/views/external_tools/finished.html.erb
+++ b/app/views/external_tools/finished.html.erb
@@ -1,16 +1,15 @@
<% if params[:lti_errormsg] %>
-
Tool Failed to Load
- There was a problem loading the specified tool. Please contact your
- administrator if these problems persist.
+
<%= t :load_failure_title, "Tool Failed to Load" %>
+ <%= t :load_failure_message, "There was a problem loading the specified tool. Please contact your administrator if these problems persist." %>
<%= params[:lti_errormsg] %>
<% else %>
-
Tool Use Finished
- You are free to navigate away from this page.
+
<%= t :load_success_title, "Tool Use Finished" %>
+ <%= t :load_success_message, "You are free to navigate away from this page." %>
<%= params[:lti_msg] %>
<% end %>
-
\ No newline at end of file
+
diff --git a/app/views/external_tools/tool_show.html.erb b/app/views/external_tools/tool_show.html.erb
index dba6de72658..4e8023eb7b2 100644
--- a/app/views/external_tools/tool_show.html.erb
+++ b/app/views/external_tools/tool_show.html.erb
@@ -8,7 +8,7 @@
<% settings.each do |key, value| %>
<%= hidden_field_tag key, value %>
<% end %>
- Load <%= @tool.name %>
+ <%= t :load_tool_button, "Load %{tool}", :tool => @tool.name %>
<%= iframe("about:blank", :name => 'tool_content', :id => 'tool_content', :width => '100%', :height => '400') %>