diff --git a/langs/en.json b/langs/en.json index a71c9b692..3871df02f 100644 --- a/langs/en.json +++ b/langs/en.json @@ -5,6 +5,7 @@ "mmapErrorPart2": "To fix, run the following command as root: %s", "mmapErrorPart3": "To persist the change across reboots: %s", "mmapErrorPart4": "On Windows and WSL, increasing the size of the pagefile might help; please switch to native Linux if the issue persists.", + "botAlreadyRunning": "The bot is already running!", "extensionRequired": "MadelineProto requires the %s extension to run. %s", "extensionRequiredInstallWithApt": "Try running sudo apt-get install %s.", "extensionRequiredInstallWithCustomInstructions": "Follow the instructions at %s to install it.", diff --git a/src/API.php b/src/API.php index af733b51f..7e755e7cb 100644 --- a/src/API.php +++ b/src/API.php @@ -241,7 +241,7 @@ final class API extends AbstractAPI try { if (!isset($_GET['MadelineSelfRestart']) && (($this->hasEventHandler()) || !($this->isIpcWorker()))) { $this->wrapper->logger('Restarting to full instance: the bot is already running!'); - Tools::closeConnection($this->getWebMessage('The bot is already running!')); + Tools::closeConnection($this->getWebMessage(Lang::$current_lang['botAlreadyRunning'])); return false; } $this->wrapper->logger('Restarting to full instance: stopping IPC server...');