Skip to content

Commit

Permalink
Add lang strings and delete lang file for de. #94
Browse files Browse the repository at this point in the history
AMOS will be used to get the german language strings from now on.
  • Loading branch information
Nullmann committed Jul 17, 2019
1 parent c895d20 commit b288aab
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 64 deletions.
51 changes: 0 additions & 51 deletions lang/de/tool_supporter.php

This file was deleted.

17 changes: 11 additions & 6 deletions lang/en/tool_supporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
10 changes: 5 additions & 5 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')));
Expand All @@ -45,15 +45,15 @@
$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).
$settings->add(new admin_setting_heading('header_user_table', get_string('sett_user_table', 'tool_supporter'),
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));
Expand All @@ -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));
Expand All @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit b288aab

Please sign in to comment.