use add extra text helper in reports

refs CNVS-3134

test plan 
 - report extra text should be translated and work

Change-Id: Id4489f386c35f4df999e993306d64a7563573773
Reviewed-on: https://gerrit.instructure.com/34685
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Dave Jungst <dave@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
This commit is contained in:
Rob Orton 2014-05-10 09:04:30 -06:00
parent 5fb5464891
commit b080df653a
3 changed files with 8 additions and 8 deletions

View File

@ -30,8 +30,8 @@ module Canvas::AccountReports
if @account_report.has_parameter? "include_deleted"
@include_deleted = @account_report.parameters["include_deleted"]
@account_report.parameters["extra_text"] << I18n.t(
'account_reports.grades.deleted', ' Include Deleted Objects: true;')
add_extra_text(I18n.t('account_reports.grades.deleted',
'Include Deleted Objects: true;'))
end
end

View File

@ -29,8 +29,8 @@ module Canvas::AccountReports
extra_text_term(@account_report)
if @account_report.has_parameter? "include_deleted"
@include_deleted = @account_report.parameters["include_deleted"]
@account_report.parameters["extra_text"] << I18n.t(
'account_reports.grades.deleted', ' Include Deleted Objects: true;')
add_extra_text(I18n.t('account_reports.grades.deleted',
'Include Deleted Objects: true;'))
end
end
@ -166,8 +166,8 @@ module Canvas::AccountReports
'outcomes' => 'learning_outcomes.id, u.id, c.id'}
if select.length == 1
order = order_sql[select.first]
@account_report.parameters["extra_text"] << " " << I18n.t(
'account_reports.outcomes.order', "Order: %{order}", order: select.first)
add_extra_text(I18n.t('account_reports.outcomes.order',
"Order: %{order}", order: select.first))
else
order = ('u.id, learning_outcomes.id, c.id')
end

View File

@ -33,8 +33,8 @@ module Canvas::AccountReports
if @account_report.has_parameter? "include_deleted"
@include_deleted = @account_report.parameters["include_deleted"]
@account_report.parameters["extra_text"] << I18n.t(
'account_reports.sis_exporter.deleted', ' Include Deleted Objects: true;')
add_extra_text(I18n.t('account_reports.grades.deleted',
'Include Deleted Objects: true;'))
end
end