Skip to content

Commit

Permalink
Improvement: Simulation feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderJacob committed Oct 8, 2024
1 parent 3c293fc commit db4ea7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion classes/simulationsInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ class_exists($this->recipe['matcher']['name'])
);
} else {
$this->feedback['needed'][basename($itemparamsfile)]['error'][] =
get_string('simulationnoinstallerfilefound', 'tool_wbinstaller');
get_string(
'simulationnoinstallerfilefound',
'tool_wbinstaller',
$this->recipe['matcher']['name']
);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lang/de/tool_wbinstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
$string['questionsuccesinstall'] = 'Die Fragen wurden erfolgreich hochgeladen.';
$string['simulationfilefound'] = 'Die Simulationsdatei wurde gefunden.';
$string['simulationinstallerfilefound'] = 'Simulations-Installer {$a} gefunden.';
$string['simulationnoinstallerfilefound'] = 'Es wurde kein Installer gefunden. Die Datei kann nicht installiert werden!';
$string['simulationnoinstallerfilefound'] = 'Der Installer {$a} wurde nicht gefunden. Falls der Installer in diesem Rezept ist, muss das Rezept ein zweites Mal ausgeführt werden damit die Daten importiert werden.';
$string['simulationinstallersuccess'] = 'Der angegebene Installer {$a} wurde gefunden und verwendet.';
$string['installervalidbase'] = 'Der Base64-String ist nicht gültig.';
$string['installerdecodebase'] = 'Fehler beim Dekodieren des Base64-Inhalts oder der Inhalt ist leer.';
Expand Down
2 changes: 1 addition & 1 deletion lang/en/tool_wbinstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
$string['questionsuccesinstall'] = 'Successfully uploaded the questions.';
$string['simulationfilefound'] = 'Found the simulation file.';
$string['simulationinstallerfilefound'] = 'Found simulation installer {$a}.';
$string['simulationnoinstallerfilefound'] = 'No installer was found. The file cannot be installed!';
$string['simulationnoinstallerfilefound'] = 'The installer {$a} was not found. If the installer is inside this recipe you need to install the recipe again as the installe is available the second time!';
$string['simulationinstallersuccess'] = 'The given installer {$a} was found and used';
$string['installervalidbase'] = 'The base64 string is not valid.';
$string['installerdecodebase'] = 'Failed to decode base64 content or the content is empty.';
Expand Down

0 comments on commit db4ea7c

Please sign in to comment.