From 4f718dc60c84d1242fd2953c296f24e52dbbf74e Mon Sep 17 00:00:00 2001 From: rwijaya Date: Tue, 15 Oct 2013 18:59:40 +0800 Subject: [PATCH] MDL-42338 lti_mod: convert hardcoded string. --- mod/lti/grade.php | 2 +- mod/lti/lang/en/lti.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/lti/grade.php b/mod/lti/grade.php index 0fb22eb6134..9ec342f1a8b 100644 --- a/mod/lti/grade.php +++ b/mod/lti/grade.php @@ -153,7 +153,7 @@ foreach ($submissions as $submission) { $table = str_replace('', $rows, $html); -$title = 'Submissions for ' . $lti->name; +$title = get_string('submissionsfor', 'lti', $lti->name); $PAGE->set_title(format_string($title , true)); $PAGE->set_heading($course->fullname); diff --git a/mod/lti/lang/en/lti.php b/mod/lti/lang/en/lti.php index 606e2d6110a..df8b5a01be4 100644 --- a/mod/lti/lang/en/lti.php +++ b/mod/lti/lang/en/lti.php @@ -395,6 +395,7 @@ The only case in which this option should be selected is if the tool configurati For example, if all launches to the tool provider just take the user to a landing page instead of to a specific resource.'; $string['size'] = 'Size parameters'; $string['submission'] = 'Submission'; +$string['submissionsfor'] = 'Submissions for {$a}'; $string['toggle_debug_data'] = 'Toggle Debug Data'; $string['tool_config_not_found'] = 'Tool configuration not found for this URL.'; $string['tool_settings'] = 'Tool Settings';