From b1c8a860cbb51f8d6b3115d9f16190692c56a8fb Mon Sep 17 00:00:00 2001 From: John Okely Date: Thu, 19 May 2016 11:55:17 +0800 Subject: [PATCH] MDL-53988 mod_lti: Add language string for unactivated proxies --- mod/lti/lang/en/lti.php | 1 + mod/lti/locallib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/lti/lang/en/lti.php b/mod/lti/lang/en/lti.php index 5f992f0f475..1deaa1b004f 100644 --- a/mod/lti/lang/en/lti.php +++ b/mod/lti/lang/en/lti.php @@ -63,6 +63,7 @@ Some tool providers support reporting grades back to Moodle based on actions tak Note that this setting may be overridden in the tool configuration.'; $string['action'] = 'Action'; $string['activate'] = 'Activate'; +$string['activatetoadddescription'] = 'You will need to activate this tool before you can add a description.'; $string['active'] = 'Active'; $string['activity'] = 'Activity'; $string['addnewapp'] = 'Enable external application'; diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php index d6e64e90b56..af13ec1438e 100644 --- a/mod/lti/locallib.php +++ b/mod/lti/locallib.php @@ -2499,7 +2499,7 @@ function serialise_tool_proxy(stdClass $proxy) { return array( 'id' => $proxy->id, 'name' => $proxy->name, - 'description' => $proxy->regurl . ' You will need to activate this proxy before adding a description', + 'description' => get_string('activatetoadddescription', 'mod_lti'), 'urls' => get_tool_proxy_urls($proxy), 'state' => array( 'text' => get_string('pending', 'mod_lti'),