Skip to content

Commit

Permalink
Merge branch 'MDL-74455' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jun 13, 2022
2 parents 7512a80 + 1cd65d6 commit 0e853ae
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 @@ -1563,3 +1562,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
Original file line number Diff line number Diff line change
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 0e853ae

Please sign in to comment.