mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
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:
parent
e04e0c8cf8
commit
f278c69c83
@ -122,3 +122,4 @@ availablelicenses,core_admin
|
||||
managelicenses,core_admin
|
||||
userfilterplaceholder,core
|
||||
sitebackpackverify,core_badges
|
||||
filetypesnotwhitelisted,core_form
|
||||
|
@ -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}';
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user