MDL-43892 dbtransfer: Fix missing string.

This commit is contained in:
Tim Hunt 2014-01-28 15:55:41 +00:00
parent e71a5333a3
commit e82aee6895
2 changed files with 2 additions and 1 deletions

View file

@ -35,4 +35,5 @@ $string['checkingsourcetables'] = 'Checking source table structure';
$string['importschemaexception'] = 'Current database structure does not match all install.xml files. <br /> {$a}'; $string['importschemaexception'] = 'Current database structure does not match all install.xml files. <br /> {$a}';
$string['importversionmismatchexception'] = 'Current version {$a->currentver} does not match exported version {$a->schemaver}.'; $string['importversionmismatchexception'] = 'Current version {$a->currentver} does not match exported version {$a->schemaver}.';
$string['malformedxmlexception'] = 'Malformed XML found, can not continue.'; $string['malformedxmlexception'] = 'Malformed XML found, can not continue.';
$string['tablex'] = 'Table {$a}:';
$string['unknowntableexception'] = 'Unknown table {$a} found in export file.'; $string['unknowntableexception'] = 'Unknown table {$a} found in export file.';

View file

@ -132,7 +132,7 @@ abstract class database_exporter {
if ($this->check_schema and $errors = $this->manager->check_database_schema($this->schema)) { if ($this->check_schema and $errors = $this->manager->check_database_schema($this->schema)) {
$details = ''; $details = '';
foreach ($errors as $table=>$items) { foreach ($errors as $table=>$items) {
$details .= '<div>'.get_string('table').' '.$table.':'; $details .= '<div>'.get_string('tablex', 'dbtransfer', $table);
$details .= '<ul>'; $details .= '<ul>';
foreach ($items as $item) { foreach ($items as $item) {
$details .= '<li>'.$item.'</li>'; $details .= '<li>'.$item.'</li>';