i18n grade weight change messages
Change-Id: Ia90f32ddbe68f6b5f09cfee663c88f32ac91e17e Reviewed-on: https://gerrit.instructure.com/4503 Reviewed-by: Cody Cutrer <cody@instructure.com> Tested-by: Hudson <hudson@instructure.com>
This commit is contained in:
parent
dc543fc3a9
commit
86d4a421ae
|
@ -4,15 +4,18 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Grade Weight Changed: <%= asset.name %>
|
||||
<%= before_label('subject', 'Grade Weight Changed') %> <%= asset.name %>
|
||||
<% end %>
|
||||
|
||||
The grading policy for the course, <%= course.name %> has changed.
|
||||
<%= t('grade_changed', "The grading policy for the course, %{course_name} has changed.", :course_name => course.name) %>
|
||||
<% if course.group_weighting_scheme == 'percent' %>
|
||||
<%= before_label('grades_based_on_percent', 'Grading is based on the weighted total for each assignment group') %>
|
||||
<% course.assignment_groups.each do |group |%>
|
||||
- <%= group.name %>: <%= group.group_weight %>%
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= t('grading_based_on_points', 'Grading is based on total points for all assignments.') %>
|
||||
<% end %>
|
||||
|
||||
Grading is based on <%= course.group_weighting_scheme == 'percent' ? "the weighted total for each assignment group:" : "total points for all assignments" %>
|
||||
<% if course.group_weighting_scheme == 'percent' %><% course.assignment_groups.each do |group |%>
|
||||
- <%= group.name %>: <%= group.group_weight %>%
|
||||
<% end %><% end %>
|
||||
|
||||
You can see details here:
|
||||
<%= before_label('now_see_here', 'You can see details here') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -3,9 +3,13 @@
|
|||
http://<%= HostUrl.context_host(asset) %>/<%= course.class.to_s.downcase.pluralize %>/<%= course.id %>/assignments
|
||||
<% end %>
|
||||
|
||||
The grading policy for <b><a href="<%= content :link %>"><%= course.name %></a></b> has changed.
|
||||
<%= mt('grading_policy_changed', 'The grading policy for **[%{course_name}](%{course_url})** has changed.', :course_name => course.name, :course_url => content(:link)) %>
|
||||
|
||||
Grading is based on <%= course.group_weighting_scheme == 'percent' ? "the weighted total for each assignment group:" : "total points for all assignments" %>
|
||||
<% if course.group_weighting_scheme == 'percent' %><% course.assignment_groups.each do |group |%>
|
||||
- <%= group.name %>: <%= group.group_weight %>%
|
||||
<% end %><% end %>
|
||||
<% if course.group_weighting_scheme == 'percent' %>
|
||||
<%= before_label('grades_based_on_percent', 'Grading is based on the weighted total for each assignment group') %>
|
||||
<% course.assignment_groups.each do |group |%>
|
||||
- <%= group.name %>: <%= group.group_weight %>%
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= t('grading_based_on_points', 'Grading is based on total points for all assignments.') %>
|
||||
<% end %>
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
<% course = asset.is_a?(Course) ? asset : asset.context %>
|
||||
The grading policy for the course, <%= course.name %> has changed.
|
||||
|
||||
Grading is based on <%= course.group_weighting_scheme == 'percent' ? "the weighted total for each assignment group:" : "total points for all assignments" %>
|
||||
<% if course.group_weighting_scheme == 'percent' %><% course.assignment_groups.each do |group |%>
|
||||
- <%= group.name %>: <%= group.group_weight %>%
|
||||
<% end %><% end %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset) %>
|
||||
<%= t('grade_changed', "The grading policy for the course, %{course_name} has changed.", :course_name => course.name) %>
|
||||
<%= t('more_info_at', 'More info at %{course_url}', :course_url => HostUrl.context_host(asset)) %>
|
||||
|
|
|
@ -4,12 +4,16 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Grade Weight Changed: <%= asset.name %>
|
||||
<%= before_label('subject', 'Grade Weight Changed') %> <%= asset.name %>
|
||||
<% end %>
|
||||
|
||||
The grading policy for the course, <%= course.name %> has changed.
|
||||
<%= t('grade_changed', "The grading policy for the course, %{course_name} has changed.", :course_name => course.name) %>
|
||||
|
||||
Grading is based on <%= course.group_weighting_scheme == 'percent' ? "the weighted total for each assignment group:" : "total points for all assignments" %>
|
||||
<% if course.group_weighting_scheme == 'percent' %><% course.assignment_groups.each do |group |%>
|
||||
- <%= group.name %>: <%= group.group_weight %>%
|
||||
<% end %><% end %>
|
||||
<% if course.group_weighting_scheme == 'percent' %>
|
||||
<%= before_label('grades_based_on_percent', 'Grading is based on the weighted total for each assignment group') %>
|
||||
<% course.assignment_groups.each do |group |%>
|
||||
- <%= group.name %>: <%= group.group_weight %>%
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= t('grading_based_on_points', 'Grading is based on total points for all assignments.') %>
|
||||
<% end %>
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
<% define_content :link do %>
|
||||
http://<%= HostUrl.context_host(asset) %>/<%= course.class.to_s.downcase.pluralize %>/<%= course.id %>/assignments
|
||||
<% end %>
|
||||
Canvas Alert - Grading Policy Changed: <%= course.name %>
|
||||
<%= t('grade_changed', "Canvas Alert - Grading Policy Changed: %{course_name}", :course_name => course.name) %>
|
Loading…
Reference in New Issue