From 8680e8e18f653de411f744501d79ae2fdecb757d Mon Sep 17 00:00:00 2001 From: mercury Date: Sun, 2 Jul 2023 01:10:01 +0400 Subject: [PATCH] improve i18n pac menu --- app/bot.php | 2 +- app/i18n.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/bot.php b/app/bot.php index 2a34909..c1aef29 100644 --- a/app/bot.php +++ b/app/bot.php @@ -2199,7 +2199,7 @@ DNS-over-HTTPS with IP: $mpac = stat(__DIR__ . '/zapretlists/mpac'); $pac = stat(__DIR__ . '/zapretlists/pac'); $conf = $this->getPacConf(); - $zapret = $conf['zapret'] ? 'ON' : 'OFF'; + $zapret = $conf['zapret'] ? $this->i18n('on') : $this->i18n('off'); $ip = $conf['domain'] ?: $this->ip; $hash = substr(md5($this->key), 0, 8); $scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https'; diff --git a/app/i18n.php b/app/i18n.php index 970cee8..1c4a4d6 100644 --- a/app/i18n.php +++ b/app/i18n.php @@ -147,7 +147,7 @@ $i = [ ], 'blacklist exclude' => [ 'en' => 'blacklist exclude', - 'ru' => 'язык', + 'ru' => 'исключения из списка ркн', ], 'lang' => [ 'en' => 'language',