aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-26 17:22:41 +0300
committerValentin Popov <info@valentineus.link>2017-10-26 17:25:48 +0300
commitf87b2c82c949b828b3895c25262d91f7b45aff5c (patch)
tree7a381abe4eb98859f311ece8d0c1982b746b6d02
parentc25f4bada67cd237e5a1e27e6c25f552330bc6ea (diff)
downloadlocal_webhooks-f87b2c82c949b828b3895c25262d91f7b45aff5c.tar.xz
local_webhooks-f87b2c82c949b828b3895c25262d91f7b45aff5c.zip
Maximum minimization of internal transfer
-rw-r--r--editservice.php2
-rw-r--r--lang/en/local_webhooks.php1
-rw-r--r--lang/ru/local_webhooks.php26
-rw-r--r--managerservice.php2
-rw-r--r--settings.php2
5 files changed, 3 insertions, 30 deletions
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 @@
-<?php
-// This file is part of Moodle - http://moodle.org/
-//
-// Moodle is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Moodle is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
-
-/**
- * Strings for component "local_webhooks", language "ru".
- *
- * @package local_webhooks
- * @copyright 2017 "Valentin Popov" <info@valentineus.link>
- * @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