MDL-69050 lang: Rename the filetypesnotwhitelisted string

Rename the string identifier to filetypesnotallowed, copy all the
existing translations in AMOS and deprecate the original string to be
eventually removed.

AMOS BEGIN
 CPY [filetypesnotwhitelisted,core_form],[filetypesnotallowed,core_form]
AMOS END
This commit is contained in:
David Mudrák 2020-09-16 08:37:08 +02:00
parent e04e0c8cf8
commit f278c69c83
4 changed files with 7 additions and 3 deletions

View File

@ -122,3 +122,4 @@ availablelicenses,core_admin
managelicenses,core_admin
userfilterplaceholder,core
sitebackpackverify,core_badges
filetypesnotwhitelisted,core_form

View File

@ -46,7 +46,7 @@ $string['err_wrongfileextension'] = 'Some files ({$a->wrongfiles}) cannot be upl
$string['filesofthesetypes'] = 'Accepted file types:';
$string['filetypesany'] = 'All file types';
$string['filetypesnotall'] = 'It is not allowed to select \'All file types\' here';
$string['filetypesnotwhitelisted'] = 'These file types are not allowed here: {$a}';
$string['filetypesnotallowed'] = 'These file types are not allowed here: {$a}';
$string['filetypesothers'] = 'Other files';
$string['filetypesunknown'] = 'Unknown file types: {$a}';
$string['general'] = 'General';
@ -85,3 +85,6 @@ $string['timeunit'] = 'Time unit';
$string['timing'] = 'Timing';
$string['unmaskpassword'] = 'Unmask';
$string['year'] = 'Year';
// Deprecated since Moodle 3.10.
$string['filetypesnotwhitelisted'] = 'These file types are not allowed here: {$a}';

View File

@ -11276,7 +11276,7 @@ class admin_setting_filetypes extends admin_setting_configtext {
} else {
$troublemakers = $this->util->get_not_whitelisted($data, $this->onlytypes);
return get_string('filetypesnotwhitelisted', 'core_form', implode(' ', $troublemakers));
return get_string('filetypesnotallowed', 'core_form', implode(' ', $troublemakers));
}
}

View File

@ -245,7 +245,7 @@ class MoodleQuickForm_filetypes extends MoodleQuickForm_group {
$notwhitelisted = $this->util->get_not_whitelisted($value['filetypes'], $this->onlytypes);
if ($notwhitelisted) {
return get_string('filetypesnotwhitelisted', 'core_form', implode(', ', $notwhitelisted));
return get_string('filetypesnotallowed', 'core_form', implode(', ', $notwhitelisted));
}
}