1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 19:45:01 +01:00

One more string

This commit is contained in:
Daniil Gentili 2023-07-10 20:10:06 +02:00
parent 1ce9ecf770
commit d6f2daddba
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 1 deletions

View File

@ -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.",

View File

@ -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...');