From b288aab3cc29a3a60bccf2bf3d145d6dddc73759 Mon Sep 17 00:00:00 2001 From: Nullmann Date: Wed, 17 Jul 2019 23:43:37 +0200 Subject: [PATCH] Add lang strings and delete lang file for de. #94 AMOS will be used to get the german language strings from now on. --- lang/de/tool_supporter.php | 51 -------------------------------------- lang/en/tool_supporter.php | 17 ++++++++----- settings.php | 10 ++++---- version.php | 4 +-- 4 files changed, 18 insertions(+), 64 deletions(-) delete mode 100644 lang/de/tool_supporter.php diff --git a/lang/de/tool_supporter.php b/lang/de/tool_supporter.php deleted file mode 100644 index 02a5844..0000000 --- a/lang/de/tool_supporter.php +++ /dev/null @@ -1,51 +0,0 @@ -. - -/** - * Strings for component 'tool_supporter', language 'de' - * - * @package tool_supporter - * @copyright 2019 Benedikt Schneider, Klara Saary - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -$string['toolsupporter'] = 'toolsupporter'; - -$string['pagetitle'] = 'Moodle-Supporter'; -$string['pluginname'] = 'Supporter'; -$string['level'] = 'Ebene'; -$string['enable_selfenrolment'] = 'Selbsteinschreibung aktivieren und Passwort setzen'; - -// Strings for setting page - settings.php. -$string['sett_title'] = 'Supporter-Konfiguration'; -$string['sett_levels'] = 'Beschriftung der Kategorieebenen für Kurse'; -$string['sett_levels_default'] = 'Semester;Fachbereich'; -$string['sett_levels_description'] = 'Hier können Sie die Namen der Kursbereichsebenen in absteigender Reihenfolge (oberste Ebene zuerst) getrennt durch Semikolon angeben.'; - -$string['sett_course_table'] = 'Kurstabelle'; -$string['sett_user_table'] = 'Benutzertabelle'; -$string['sett_user_details'] = 'Benutzerdetails'; -$string['sett_course_details'] = 'Kursdetails'; - -$string['sett_course_table_desc'] = 'In diesem Abschnitt können Sie auswählen wie die Kurstabelle angezeigt werden soll (linke Bildschirmhälfte).'; -$string['sett_course_table_pagelength'] = 'Die Anzahl der angezeigten Kurse'; -$string['sett_user_table_desc'] = 'In diesem Abschnitt können Sie auswählen wie die Benutzertabelle angezeigt werden soll (rechte Bildschirmhälfte).'; -$string['sett_user_table_pagelength'] = 'Die Anzahl der angezeigten Benutzer-Kurse'; -$string['sett_order_id'] = 'Sortierung der ersten ID-Spalte'; -$string['sett_user_details_desc'] = 'In diesem Abschnitt können Sie die Details auswählen, die Sie in den Benutzerdetails angezeigt haben möchten, d.h. wenn ein Benutzer angeklickt wird (oben rechts).'; -$string['sett_course_details_desc'] = 'In diesem Abschnitt können Sie die Details auswählen, die Sie in den Kursdetails angezeigt bekommen möchten, d.h. wenn ein Kurs angeklickt wird (oben links).'; -$string['sett_course_detail_showrolesandamount'] = 'Zeige alle Rollen und ihre Anzahl'; -$string['sett_course_detail_showrolesandamount_desc'] = 'Zeigt alle Rollen und deren Teilnehmer-Anzahl in einer separaten Tabellenzeile pro Rolle an, d.h. Anzahl der Trainer, Anzahl der Teilnehmer, etc.'; -$string['privacy:metadata'] = 'Dieses Plugin speichert keine nutzerspezifischen Daten, nur globale Einstellungemöglichkeiten.'; \ No newline at end of file diff --git a/lang/en/tool_supporter.php b/lang/en/tool_supporter.php index f8a2b5f..a501df6 100644 --- a/lang/en/tool_supporter.php +++ b/lang/en/tool_supporter.php @@ -32,20 +32,25 @@ $string['sett_title'] = 'Supporter configuration'; $string['sett_levels'] = 'Labeling of course category levels'; $string['sett_levels_default'] = 'Semester;Department'; -$string['sett_levels_description'] = 'Here, you can specify the individual name of the course area levels. in descending order (uppermost level first) separated by semicolons. '; +$string['sett_levels_description'] = 'Specify the displayed names of the course levels. In descending order (uppermost level first) and separated by semicolon. '; $string['sett_course_table'] = 'Course table'; $string['sett_user_table'] = 'User table'; $string['sett_user_details'] = 'User details'; $string['sett_course_details'] = 'Course details'; -$string['sett_course_table_desc'] = 'In this section, you can select how the course table should be displayed (bottom left).'; +$string['sett_course_table_desc'] = 'The course table lists all courses and is displayed in the bottom left.'; $string['sett_course_table_pagelength'] = 'The amount of courses shown'; -$string['sett_user_table_desc'] = 'In this section, you can select how the user table should be displayed (bottom right).'; +$string['sett_user_table_desc'] = 'The user table lists all users and is displayed in the bottom right.'; $string['sett_user_table_pagelength'] = 'The amount of user-courses shown'; -$string['sett_order_id'] = 'Ordering of the first ID-Column'; -$string['sett_user_details_desc'] = 'In this section you can select all the things you want to have shown in the user details, i.e. when a user is clicked (top right).'; -$string['sett_course_details_desc'] = 'In this section you can select all the things you want to have shown in the course details, i.e. when a course is clicked (top left).'; +$string['sett_sort_course_table'] = 'Sorting of the ID-Column in course table'; +$string['sett_sort_course_details'] = 'Sorting of the ID-Column in course view (enrolled users)'; +$string['sett_sort_user_table'] = 'Sorting of the ID-Column in user table'; +$string['sett_sort_user_details'] = 'Sorting of the ID-Column in user view (enrolled courses)'; +$string['sett_user_details_desc'] = 'The user details are shown in the top right when a user is clicked.'; +$string['sett_course_details_desc'] = 'The course details are shown in the top left when a course is clicked.'; $string['sett_course_detail_showrolesandamount'] = 'Show all roles and their amount'; $string['sett_course_detail_showrolesandamount_desc'] = 'Explicitly shows all roles and their amounts in a seperate table row per role, i.e. amount of teachers, amount of students, etc.'; + +// Privacy API. $string['privacy:metadata'] = 'This plugin does not save user-specific data, only global settings.'; \ No newline at end of file diff --git a/settings.php b/settings.php index d7468b0..c9bd630 100644 --- a/settings.php +++ b/settings.php @@ -22,7 +22,7 @@ */ defined('MOODLE_INTERNAL') || die; -// Possible places in admin menu: root, users, courses, reports, (admin) tools +// Possible places in admin menu: root, users, courses, reports, (admin) tools. // Add the plugin to Administration menu. $ADMIN->add('reports', new admin_externalpage('toolsupporter', get_string('pluginname', 'tool_supporter'), new moodle_url('/admin/tool/supporter/index.php'))); @@ -45,7 +45,7 @@ $settings->add(new admin_setting_configtext('tool_supporter/course_table_pagelength', get_string('sett_course_table_pagelength', 'tool_supporter'), "", 30, PARAM_INT)); $settings->add(new admin_setting_configselect('tool_supporter/course_table_order', - get_string('sett_order_id', 'tool_supporter'), "", "desc", + get_string('sett_sort_course_table', 'tool_supporter'), "", "desc", array("asc" => get_string('asc'), "desc" => get_string('desc')))); // Settings for user table (bottom right). @@ -53,7 +53,7 @@ get_string('sett_user_table_desc', 'tool_supporter'))); $settings->add(new admin_setting_configtext('tool_supporter/user_table_pagelength', get_string('sett_user_table_pagelength', 'tool_supporter'), "", 30, PARAM_INT)); - $settings->add(new admin_setting_configselect('tool_supporter/user_table_order', get_string('sett_order_id', 'tool_supporter'), + $settings->add(new admin_setting_configselect('tool_supporter/user_table_order', get_string('sett_sort_user_table', 'tool_supporter'), "", "asc", array("asc" => get_string('asc'), "desc" => get_string('desc')))); $settings->add(new admin_setting_configcheckbox('tool_supporter/user_table_excludesuspended', get_string('exportonlyactive', 'grades'), "", 1)); @@ -72,7 +72,7 @@ $settings->add(new admin_setting_configtext('tool_supporter/course_details_pagelength', get_string('sett_course_table_pagelength', 'tool_supporter'), "", 10, PARAM_INT)); $settings->add(new admin_setting_configselect('tool_supporter/course_details_order', - get_string('sett_order_id', 'tool_supporter'), "", "desc", + get_string('sett_sort_course_details', 'tool_supporter'), "", "desc", array("asc" => get_string('asc'), "desc" => get_string('desc')))); $settings->add(new admin_setting_configcheckbox('tool_supporter/course_details_showshortname', get_string('shortnamecourse'), "", 1)); @@ -96,7 +96,7 @@ $settings->add(new admin_setting_configtext('tool_supporter/user_details_pagelength', get_string('sett_user_table_pagelength', 'tool_supporter'), "", 10, PARAM_INT)); $settings->add(new admin_setting_configselect('tool_supporter/user_details_order', - get_string('sett_order_id', 'tool_supporter'), + get_string('sett_sort_user_details', 'tool_supporter'), "", "asc", array("asc" => get_string('asc'), "desc" => get_string('desc')))); $settings->add(new admin_setting_configcheckbox('tool_supporter/user_details_showusername', get_string('username'), "", 1)); diff --git a/version.php b/version.php index fbb24d4..260e844 100644 --- a/version.php +++ b/version.php @@ -21,8 +21,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2019060401; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2019071701; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2018051700; // Requires Moodle version 3.5 or higher for stable Bootstrap 4. $plugin->component = 'tool_supporter'; // Full name of the plugin (used for diagnostics). -$plugin->release = 'v1.01'; +$plugin->release = 'v1.02'; $plugin->maturity = MATURITY_STABLE;