From f87b2c82c949b828b3895c25262d91f7b45aff5c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Oct 2017 18:22:41 +0400 Subject: Maximum minimization of internal transfer --- editservice.php | 2 +- lang/en/local_webhooks.php | 1 - lang/ru/local_webhooks.php | 26 -------------------------- managerservice.php | 2 +- settings.php | 2 +- 5 files changed, 3 insertions(+), 30 deletions(-) delete mode 100644 lang/ru/local_webhooks.php diff --git a/editservice.php b/editservice.php index c4f68ff..9474ad9 100644 --- a/editservice.php +++ b/editservice.php @@ -83,7 +83,7 @@ $PAGE->set_title($titlepage); /* The page title */ $PAGE->navbar->add(new lang_string("pluginname", "local_webhooks"), new moodle_url("/admin/settings.php", array("section" => "local_webhooks"))); -$PAGE->navbar->add(new lang_string("managerservice", "local_webhooks"), $managerservice); +$PAGE->navbar->add(new lang_string("externalservices", "webservice"), $managerservice); $PAGE->navbar->add($titlepage); echo $OUTPUT->header(); diff --git a/lang/en/local_webhooks.php b/lang/en/local_webhooks.php index 041233f..d945f65 100644 --- a/lang/en/local_webhooks.php +++ b/lang/en/local_webhooks.php @@ -22,5 +22,4 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$string["managerservice"] = "Service management manager"; $string["pluginname"] = "WebHooks"; \ No newline at end of file diff --git a/lang/ru/local_webhooks.php b/lang/ru/local_webhooks.php deleted file mode 100644 index 73db595..0000000 --- a/lang/ru/local_webhooks.php +++ /dev/null @@ -1,26 +0,0 @@ -. - -/** - * Strings for component "local_webhooks", language "ru". - * - * @package local_webhooks - * @copyright 2017 "Valentin Popov" - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -$string["managerservice"] = "Менеджер управления службами"; -$string["pluginname"] = "WebHooks"; \ No newline at end of file diff --git a/managerservice.php b/managerservice.php index 7865f28..ccdb7bc 100644 --- a/managerservice.php +++ b/managerservice.php @@ -64,7 +64,7 @@ if (boolval($hideshowid) && confirm_sesskey()) { } /* Page template */ -$titlepage = new lang_string("managerservice", "local_webhooks"); +$titlepage = new lang_string("externalservices", "webservice"); $PAGE->set_pagelayout("admin"); $PAGE->set_title($titlepage); $PAGE->set_heading($titlepage); diff --git a/settings.php b/settings.php index b83ad3d..5092974 100644 --- a/settings.php +++ b/settings.php @@ -33,7 +33,7 @@ if ($hassiteconfig) { $settings->add(new admin_setting_configcheckbox("local_webhooks/enable", new lang_string("enable", "moodle"), new lang_string("enablews", "webservice"), false)); /* Link to the service manager */ - $linktext = new lang_string("managerservice", "local_webhooks"); + $linktext = new lang_string("externalservices", "webservice"); $linkurl = new moodle_url("/local/webhooks/managerservice.php"); $settings->add(new admin_setting_heading("local_webhooks_managerservice", null, html_writer::link($linkurl, $linktext))); } \ No newline at end of file -- cgit v1.2.3