MDL-8330, adding a warning to translators about updating of lang packs
This commit is contained in:
+6
-1
@@ -287,11 +287,16 @@
|
||||
require_once($CFG->libdir.'/environmentlib.php');
|
||||
print_heading(get_string('environment', 'admin'));
|
||||
if (!check_moodle_environment($release, $environment_results, true)) {
|
||||
print_box_start('generalbox', 'notice'); // MDL-8330
|
||||
print_string('langpackwillbeupdated', 'admin');
|
||||
print_box_end();
|
||||
notice_yesno(get_string('environmenterrorupgrade', 'admin'),
|
||||
'index.php?confirmupgrade=1&confirmrelease=1', 'index.php');
|
||||
} else {
|
||||
notify(get_string('environmentok', 'admin'), 'notifysuccess');
|
||||
|
||||
print_box_start('generalbox', 'notice'); // MDL-8330
|
||||
print_string('langpackwillbeupdated', 'admin');
|
||||
print_box_end();
|
||||
echo '<form action="index.php"><div>';
|
||||
echo '<input type="hidden" name="confirmupgrade" value="1" />';
|
||||
echo '<input type="hidden" name="confirmrelease" value="1" />';
|
||||
|
||||
@@ -381,6 +381,7 @@ $string['langpackmaintaining'] = 'Language pack maintaining';
|
||||
$string['langpackremoved'] = 'Language pack was uninstalled';
|
||||
$string['langpacks'] = 'Language packs';
|
||||
$string['langpackupdated'] = 'Language pack $a was successfully installed';
|
||||
$string['langpackwillbeupdated'] = 'Note for translators: During the upgrade, Moodle will try to update your language pack. Your modifications in non-local language folders will be overwritten.';
|
||||
$string['languagesettings'] = 'Language settings';
|
||||
$string['langupdatecomplete'] = 'Language pack update completed';
|
||||
$string['latexpreamble'] = 'LaTeX preamble';
|
||||
|
||||
Reference in New Issue
Block a user