Skip to content

Commit

Permalink
MDL-74455 filter_multilang: add text labels for plugin settings.
Browse files Browse the repository at this point in the history
AMOS BEGIN
 MOV [multilangforceold,core_admin],[forceoldsyntax_desc,filter_multilang]
AMOS END
  • Loading branch information
paulholden committed Jun 8, 2022
1 parent 5500d14 commit 1cd65d6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions filter/multilang/lang/en/filter_multilang.php
Expand Up @@ -24,4 +24,6 @@
*/

$string['filtername'] = 'Multi-Language Content';
$string['forceoldsyntax'] = 'Force old syntax';
$string['forceoldsyntax_desc'] = 'Force old multilang syntax: <span> without the class="multilang" and <lang>';
$string['privacy:metadata'] = 'The Multi-Language Content plugin does not store any personal data.';
8 changes: 6 additions & 2 deletions filter/multilang/settings.php
Expand Up @@ -4,6 +4,10 @@

if ($ADMIN->fulltree) {

$settings->add(new admin_setting_configcheckbox('filter_multilang_force_old', 'filter_multilang_force_old',
get_string('multilangforceold', 'admin'), 0));
$settings->add(new admin_setting_configcheckbox(
'filter_multilang_force_old',
get_string('forceoldsyntax', 'filter_multilang'),
get_string('forceoldsyntax_desc', 'filter_multilang'),
0
));
}
4 changes: 3 additions & 1 deletion lang/en/admin.php
Expand Up @@ -861,7 +861,6 @@
$string['modeditdefaults'] = 'Default values for activity settings';
$string['modsettings'] = 'Manage activities';
$string['modulesecurity'] = 'Module security';
$string['multilangforceold'] = 'Force old multilang syntax: <span> without the class="multilang" and <lang>';
$string['mustenablestats'] = 'Statistics have not yet been enabled on this site.';
$string['mycourses'] = 'My courses';
$string['mycoursesperpage'] = 'Number of courses';
Expand Down Expand Up @@ -1562,3 +1561,6 @@
$string['coursepage'] = 'Course page';
$string['mediapluginswf'] = 'Enable .swf filter';
$string['mediapluginswfnote'] = 'As a default security measure, normal users should not be allowed to embed swf flash files.';

// Deprecated since Moodle 4.1.
$string['multilangforceold'] = 'Force old multilang syntax: <span> without the class="multilang" and <lang>';
1 change: 1 addition & 0 deletions lang/en/deprecated.txt
Expand Up @@ -81,3 +81,4 @@ sendingviawhen,core_message
close,core_contentbank
notflagged,core_question
cannotswitcheditmodeon,core_error
multilangforceold,core_admin

0 comments on commit 1cd65d6

Please sign in to comment.