i18n group assignment messages

Change-Id: Ied027da1b00057e813ae5a02aa263d0668be9932
Reviewed-on: https://gerrit.instructure.com/4508
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Bracken Mosbacker 2011-06-30 13:29:48 -06:00
parent 786f21d7ef
commit dc543fc3a9
5 changed files with 9 additions and 9 deletions

View File

@ -3,10 +3,10 @@
<% end %>
<% define_content :subject do %>
Late Assignment: <%= asset.group.name %>, <%= asset.assignment.title %>
<%= t('subject', 'Late Assignment: %{group_name}, %{assignment_name}', :group_name => asset.group.name, :assignment_name => asset.assignment.title) %>
<% end %>
The group <%= asset.group.name %> has just turned in a late submission for <%= asset.assignment.title %> in the course <%= asset.assignment.context.name %>.
<%= t('body', "The group %{group_name} has just turned in a late submission for %{assignment_name} in the course %{course_name}.", :group_name => asset.group.name, :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
You can view the submission here:
<%= before_label('view_submission_here', 'You can view the submission here') %>
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment_id %>/submissions/<%= asset.user_id %>

View File

@ -2,4 +2,4 @@
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment_id %>
<% end %>
The group <%= asset.group.name %> has just turned in a late submission for <b><a href="<%= content :link %>"><%= asset.assignment.title %></a> in the course <%= asset.assignment.context.name %></b>.
<%= mt('body', "The group %{group_name} has just turned in a late submission for **[%{assignment_name}](%{assignment_url})** in the course %{course_name}.", :group_name => asset.group.name, :assignment_name => asset.assignment.title, :assignment_url => content(:link), :course_name => asset.assignment.context.name) %>

View File

@ -1,3 +1,3 @@
<%= asset.group.name %> just turned in their assignment (late), <%= asset.assignment.title %>
<%= t('subject', '%{group_name} just turned in their assignment (late), %{assignment_name}', :group_name => asset.group.name, :assignment_name => asset.assignment.title) %>
More info at <%= HostUrl.context_host(asset.assignment.context) %>
<%= t('more_info', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.assignment.context)) %>

View File

@ -3,7 +3,7 @@
<% end %>
<% define_content :subject do %>
Late Assignment: <%= asset.group.name %>, <%= asset.assignment.title %>
<%= t('subject', 'Late Assignment: %{group_name}, %{assignment_name}', :group_name => asset.group.name, :assignment_name => asset.assignment.title) %>
<% end %>
The group <%= asset.group.name %> turned in a late submission for <%= asset.assignment.title %> in the course <%= asset.assignment.context.name %>.
<%= t('body', "The group %{group_name} turned in a late submission for %{assignment_name} in the course %{course_name}.", :group_name => asset.group.name, :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>

View File

@ -1,4 +1,4 @@
<% define_content :link do %>
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment_id %>
<% end %>
Canvas Alert - Late Group Submission: <%= asset.group.name %>, <%= asset.assignment.title %>
<%= t('subject', 'Canvas Alert - Late Group Submission: %{group_name}, %{assignment_name}', :group_name => asset.group.name, :assignment_name => asset.assignment.title) %>