diff --git a/client/amnezia_application.cpp b/client/amnezia_application.cpp
index 904ffaa6..da00dae7 100644
--- a/client/amnezia_application.cpp
+++ b/client/amnezia_application.cpp
@@ -139,7 +139,8 @@ void AmneziaApplication::init()
&ConnectionController::openConnection);
connect(m_notificationHandler.get(), &NotificationHandler::disconnectRequested, m_connectionController.get(),
&ConnectionController::closeConnection);
- connect(this, &AmneziaApplication::translationsUpdated, m_notificationHandler.get(), &NotificationHandler::onTranslationsUpdated);
+ connect(this, &AmneziaApplication::translationsUpdated, m_notificationHandler.get(),
+ &NotificationHandler::onTranslationsUpdated);
m_engine->load(url);
m_systemController->setQmlRoot(m_engine->rootObjects().value(0));
@@ -226,14 +227,13 @@ void AmneziaApplication::loadTranslator()
updateTranslator(locale);
}
-
void AmneziaApplication::updateTranslator(const QLocale &locale)
{
if (!m_translator->isEmpty()) {
QCoreApplication::removeTranslator(m_translator.get());
}
- QString strFileName = QString(":/translations/amneziavpn")+QLatin1String("_")+locale.name()+".qm";
+ QString strFileName = QString(":/translations/amneziavpn") + QLatin1String("_") + locale.name() + ".qm";
if (m_translator->load(strFileName)) {
if (QCoreApplication::installTranslator(m_translator.get())) {
m_settings->setAppLanguage(locale);
@@ -295,11 +295,13 @@ void AmneziaApplication::initModels()
m_sitesModel.reset(new SitesModel(m_settings, this));
m_engine->rootContext()->setContextProperty("SitesModel", m_sitesModel.get());
connect(m_containersModel.get(), &ContainersModel::defaultContainerChanged, this, [this]() {
- if (m_containersModel->getDefaultContainer() == DockerContainer::WireGuard
+ if ((m_containersModel->getDefaultContainer() == DockerContainer::WireGuard
+ || m_containersModel->getDefaultContainer() == DockerContainer::Awg)
&& m_sitesModel->isSplitTunnelingEnabled()) {
m_sitesModel->toggleSplitTunneling(false);
emit m_pageController->showNotificationMessage(
- tr("Split tunneling for WireGuard is not implemented, the option was disabled"));
+ tr("Split tunneling for %1 is not implemented, the option was disabled")
+ .arg(ContainerProps::containerHumanNames().value(m_containersModel->getDefaultContainer())));
}
});
@@ -335,7 +337,8 @@ void AmneziaApplication::initControllers()
m_connectionController.reset(new ConnectionController(m_serversModel, m_containersModel, m_vpnConnection));
m_engine->rootContext()->setContextProperty("ConnectionController", m_connectionController.get());
- connect(this, &AmneziaApplication::translationsUpdated, m_connectionController.get(), &ConnectionController::onTranslationsUpdated);
+ connect(this, &AmneziaApplication::translationsUpdated, m_connectionController.get(),
+ &ConnectionController::onTranslationsUpdated);
m_pageController.reset(new PageController(m_serversModel, m_settings));
m_engine->rootContext()->setContextProperty("PageController", m_pageController.get());
diff --git a/client/translations/amneziavpn_ru.ts b/client/translations/amneziavpn_ru.ts
index f94d722f..2a493613 100644
--- a/client/translations/amneziavpn_ru.ts
+++ b/client/translations/amneziavpn_ru.ts
@@ -4,9 +4,13 @@
AmneziaApplication
-
Split tunneling for WireGuard is not implemented, the option was disabled
- Раздельное туннелирование для "Wireguard" не реализовано,опция отключена
+ Раздельное туннелирование для "Wireguard" не реализовано,опция отключена
+
+
+
+ Split tunneling for %1 is not implemented, the option was disabled
+ Раздельное туннелирование для %1 не реализовано, опция отключена
diff --git a/client/translations/amneziavpn_zh_CN.ts b/client/translations/amneziavpn_zh_CN.ts
index ffca2451..1ef413d5 100644
--- a/client/translations/amneziavpn_zh_CN.ts
+++ b/client/translations/amneziavpn_zh_CN.ts
@@ -4,9 +4,13 @@
AmneziaApplication
-
Split tunneling for WireGuard is not implemented, the option was disabled
- 未启用选项,还未实现基于WireGuard协议的VPN分离
+ 未启用选项,还未实现基于WireGuard协议的VPN分离
+
+
+
+ Split tunneling for %1 is not implemented, the option was disabled
+
diff --git a/client/ui/models/sites_model.cpp b/client/ui/models/sites_model.cpp
index 5f4afe1a..f6cb9b13 100644
--- a/client/ui/models/sites_model.cpp
+++ b/client/ui/models/sites_model.cpp
@@ -112,6 +112,7 @@ void SitesModel::toggleSplitTunneling(bool enabled)
} else {
m_settings->setRouteMode(Settings::RouteMode::VpnAllSites);
}
+ m_isSplitTunnelingEnabled = enabled;
}
QVector > SitesModel::getCurrentSites()