Minor ui fixes and refactoring

This commit is contained in:
pokamest 2023-10-15 02:30:42 +01:00
parent f65e4066e3
commit c7cd8e4c80
10 changed files with 103 additions and 108 deletions

View file

@ -89,7 +89,6 @@ QMap<DockerContainer, QString> ContainerProps::containerHumanNames()
{ DockerContainer::TorWebSite, QObject::tr("Website in Tor network") },
{ DockerContainer::Dns, QObject::tr("Amnezia DNS") },
//{DockerContainer::FileShare, QObject::tr("SMB file sharing service")},
{ DockerContainer::Sftp, QObject::tr("Sftp file sharing service") } };
}
@ -119,7 +118,6 @@ QMap<DockerContainer, QString> ContainerProps::containerDescriptions()
{ DockerContainer::TorWebSite, QObject::tr("Deploy a WordPress site on the Tor network in two clicks.") },
{ DockerContainer::Dns,
QObject::tr("Replace the current DNS server with your own. This will increase your privacy level.") },
//{DockerContainer::FileShare, QObject::tr("SMB file sharing service - is Window file sharing protocol")},
{ DockerContainer::Sftp,
QObject::tr("Creates a file vault on your server to securely store and transfer files.") } };
}
@ -190,27 +188,13 @@ QMap<DockerContainer, QString> ContainerProps::containerDetailedDescriptions()
{ DockerContainer::TorWebSite, QObject::tr("Website in Tor network") },
{ DockerContainer::Dns, QObject::tr("DNS Service") },
//{DockerContainer::FileShare, QObject::tr("SMB file sharing service - is Window file sharing protocol")},
{ DockerContainer::Sftp, QObject::tr("Sftp file sharing service - is secure FTP service") }
};
}
amnezia::ServiceType ContainerProps::containerService(DockerContainer c)
{
switch (c) {
case DockerContainer::None: return ServiceType::None;
case DockerContainer::OpenVpn: return ServiceType::Vpn;
case DockerContainer::Cloak: return ServiceType::Vpn;
case DockerContainer::ShadowSocks: return ServiceType::Vpn;
case DockerContainer::WireGuard: return ServiceType::Vpn;
case DockerContainer::Awg: return ServiceType::Vpn;
case DockerContainer::Ipsec: return ServiceType::Vpn;
case DockerContainer::TorWebSite: return ServiceType::Other;
case DockerContainer::Dns: return ServiceType::Other;
// case DockerContainer::FileShare : return ServiceType::Other;
case DockerContainer::Sftp: return ServiceType::Other;
default: return ServiceType::Other;
}
return ProtocolProps::protocolService(defaultProtocol(c));
}
Proto ContainerProps::defaultProtocol(DockerContainer c)
@ -226,7 +210,6 @@ Proto ContainerProps::defaultProtocol(DockerContainer c)
case DockerContainer::TorWebSite: return Proto::TorWebSite;
case DockerContainer::Dns: return Proto::Dns;
// case DockerContainer::FileShare : return Protocol::FileShare;
case DockerContainer::Sftp: return Proto::Sftp;
default: return Proto::Any;
}

View file

@ -26,7 +26,6 @@ namespace amnezia
// non-vpn
TorWebSite,
Dns,
// FileShare,
Sftp
};
Q_ENUM_NS(DockerContainer)

View file

@ -16,7 +16,6 @@ QString amnezia::scriptFolder(amnezia::DockerContainer container)
case DockerContainer::TorWebSite: return QLatin1String("website_tor");
case DockerContainer::Dns: return QLatin1String("dns");
// case DockerContainer::FileShare: return QLatin1String("file_share");
case DockerContainer::Sftp: return QLatin1String("sftp");
default: return "";
}

View file

@ -72,7 +72,6 @@ QMap<amnezia::Proto, QString> ProtocolProps::protocolHumanNames()
{ Proto::TorWebSite, "Website in Tor network" },
{ Proto::Dns, "DNS Service" },
{ Proto::FileShare, "File Sharing Service" },
{ Proto::Sftp, QObject::tr("Sftp service") } };
}
@ -90,9 +89,11 @@ amnezia::ServiceType ProtocolProps::protocolService(Proto p)
case Proto::ShadowSocks: return ServiceType::Vpn;
case Proto::WireGuard: return ServiceType::Vpn;
case Proto::Awg: return ServiceType::Vpn;
case Proto::Ikev2: return ServiceType::Vpn;
case Proto::TorWebSite: return ServiceType::Other;
case Proto::Dns: return ServiceType::Other;
case Proto::FileShare: return ServiceType::Other;
case Proto::Sftp: return ServiceType::Other;
default: return ServiceType::Other;
}
}
@ -111,7 +112,6 @@ int ProtocolProps::defaultPort(Proto p)
case Proto::TorWebSite: return -1;
case Proto::Dns: return 53;
case Proto::FileShare: return 139;
case Proto::Sftp: return 222;
default: return -1;
}
@ -129,10 +129,10 @@ bool ProtocolProps::defaultPortChangeable(Proto p)
case Proto::Ikev2: return false;
case Proto::L2tp: return false;
case Proto::TorWebSite: return true;
case Proto::TorWebSite: return false;
case Proto::Dns: return false;
case Proto::FileShare: return false;
default: return -1;
case Proto::Sftp: return true;
default: return false;
}
}
@ -150,7 +150,6 @@ TransportProto ProtocolProps::defaultTransportProto(Proto p)
// non-vpn
case Proto::TorWebSite: return TransportProto::Tcp;
case Proto::Dns: return TransportProto::Udp;
case Proto::FileShare: return TransportProto::Udp;
case Proto::Sftp: return TransportProto::Tcp;
}
}
@ -169,7 +168,6 @@ bool ProtocolProps::defaultTransportProtoChangeable(Proto p)
// non-vpn
case Proto::TorWebSite: return false;
case Proto::Dns: return false;
case Proto::FileShare: return false;
case Proto::Sftp: return false;
default: return false;
}

View file

@ -195,7 +195,6 @@ namespace amnezia
// non-vpn
TorWebSite,
Dns,
FileShare,
Sftp
};
Q_ENUM_NS(Proto)

View file

@ -165,32 +165,32 @@ Already installed containers were found on the server. All installed containers
На сервере обнаружены установленные протоколы и сервисы, все они добавлены в приложение</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="264"/>
<location filename="../ui/controllers/installController.cpp" line="266"/>
<source>Settings updated successfully</source>
<translation>Настройки успешно обновлены</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="279"/>
<location filename="../ui/controllers/installController.cpp" line="281"/>
<source>Server &apos;%1&apos; was removed</source>
<translation>Сервер &apos;%1&apos; был удален</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="289"/>
<location filename="../ui/controllers/installController.cpp" line="291"/>
<source>All containers from server &apos;%1&apos; have been removed</source>
<translation>Все протоклы и сервисы были удалены с сервера &apos;%1&apos;</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="306"/>
<location filename="../ui/controllers/installController.cpp" line="308"/>
<source>%1 has been removed from the server &apos;%2&apos;</source>
<translation>%1 был удален с сервера &apos;%2&apos;</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="452"/>
<location filename="../ui/controllers/installController.cpp" line="454"/>
<source>Please login as the user</source>
<translation>Пожалуйста, войдите в систему от имени пользователя</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="479"/>
<location filename="../ui/controllers/installController.cpp" line="481"/>
<source>Server added successfully</source>
<translation>Сервер успешно добавлен</translation>
</message>
@ -1690,14 +1690,22 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation>Сервер уже был добавлен в приложение</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardInstalling.qml" line="62"/>
<source>Amnesia has detected that your server is currently </source>
<translation>Amnesia обнаружила, что ваш сервер в настоящее время </translation>
<translation type="vanished">Amnesia обнаружила, что ваш сервер в настоящее время </translation>
</message>
<message>
<source>busy installing other software. Amnesia installation </source>
<translation type="vanished">занят установкой других протоколов или сервисов. Установка Amnesia </translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardInstalling.qml" line="62"/>
<source>Amnezia has detected that your server is currently </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardInstalling.qml" line="63"/>
<source>busy installing other software. Amnesia installation </source>
<translation>занят установкой других протоколов или сервисов. Установка Amnesia </translation>
<source>busy installing other software. Amnezia installation </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardInstalling.qml" line="64"/>
@ -2406,7 +2414,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation>IPsec</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="131"/>
<location filename="../containers/containers_defs.cpp" line="129"/>
<source>The time-tested most popular VPN protocol.
Uses a proprietary security protocol with SSL/TLS for encryption and key exchange and supports various authentication methods, making it suitable for a variety of devices and operating systems.
@ -2418,7 +2426,7 @@ Uses a proprietary security protocol with SSL/TLS for encryption and key exchang
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="141"/>
<location filename="../containers/containers_defs.cpp" line="139"/>
<source>Based on the SOCKS5 proxy protocol, which protects the connection using the AEAD cipher - roughly along the same lines as SSH tunnelling. A Shadowsocks connection is difficult to identify because it is virtually identical to a normal HTTPS connection.
However, some traffic analysis systems can still recognise a ShadowSocks connection, so in countries with high levels of censorship we recommend using OpenVPN in conjunction with Cloak.
@ -2430,7 +2438,7 @@ However, some traffic analysis systems can still recognise a ShadowSocks connect
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="151"/>
<location filename="../containers/containers_defs.cpp" line="149"/>
<source>This is a combination of the OpenVPN protocol and the Cloak plugin designed specifically for blocking protection.
OpenVPN provides a secure VPN connection by encrypting all Internet traffic between the client and the server.
@ -2450,7 +2458,7 @@ If there is a high level of Internet censorship in your region, we advise you to
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="169"/>
<location filename="../containers/containers_defs.cpp" line="167"/>
<source>A relatively new popular VPN protocol with a simplified architecture.
Provides stable VPN connection, high performance on all devices. Uses hard-coded encryption settings. WireGuard compared to OpenVPN has lower latency and better data transfer throughput.
* Low power consumption on mobile devices.
@ -2461,7 +2469,7 @@ Provides stable VPN connection, high performance on all devices. Uses hard-coded
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="179"/>
<location filename="../containers/containers_defs.cpp" line="177"/>
<source>A modern stable protocol.
IKEv2 with IPSec encryption layer. Transmits data over fixed UDP ports 500 and 4500 protecting them with strong 3DES and AES crypto algorithms. Allows very fast switching between networks and devices. Due to its security, stability and speed, IKEv2 is currently one of the best VPN solutions for mobile devices. Vulnerable to detection and blocking.
@ -2473,18 +2481,18 @@ IKEv2 with IPSec encryption layer. Transmits data over fixed UDP ports 500 and 4
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="192"/>
<location filename="../containers/containers_defs.cpp" line="190"/>
<source>DNS Service</source>
<translation>DNS Сервис</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="93"/>
<location filename="../containers/containers_defs.cpp" line="92"/>
<source>Sftp file sharing service</source>
<translation>Сервис обмена файлами Sftp</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="90"/>
<location filename="../containers/containers_defs.cpp" line="191"/>
<location filename="../containers/containers_defs.cpp" line="189"/>
<source>Website in Tor network</source>
<translation>Веб-сайт в сети Tor</translation>
</message>
@ -2494,62 +2502,62 @@ IKEv2 with IPSec encryption layer. Transmits data over fixed UDP ports 500 and 4
<translation>Amnezia DNS</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="99"/>
<location filename="../containers/containers_defs.cpp" line="98"/>
<source>OpenVPN is the most popular VPN protocol, with flexible configuration options. It uses its own security protocol with SSL/TLS for key exchange.</source>
<translation>OpenVPN - популярный VPN-протокол, с гибкой настройкой. Имеет собственный протокол безопасности с SSL/TLS для обмена ключами.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="102"/>
<location filename="../containers/containers_defs.cpp" line="101"/>
<source>ShadowSocks - masks VPN traffic, making it similar to normal web traffic, but is recognised by analysis systems in some highly censored regions.</source>
<translation>ShadowSocks - маскирует VPN-трафик под обычный веб-трафик, но распознается системами анализа в некоторых регионах с высоким уровнем цензуры.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="105"/>
<location filename="../containers/containers_defs.cpp" line="104"/>
<source>OpenVPN over Cloak - OpenVPN with VPN masquerading as web traffic and protection against active-probbing detection. Ideal for bypassing blocking in regions with the highest levels of censorship.</source>
<translation>OpenVPN over Cloak - OpenVPN с маскировкой VPN под web-трафик и защитой от обнаружения active-probbing. Подходит для регионов с самым высоким уровнем цензуры.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="109"/>
<location filename="../containers/containers_defs.cpp" line="108"/>
<source>WireGuard - New popular VPN protocol with high performance, high speed and low power consumption. Recommended for regions with low levels of censorship.</source>
<translation>WireGuard - Популярный VPN-протокол с высокой производительностью, высокой скоростью и низким энергопотреблением. Для регионов с низким уровнем цензуры.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="112"/>
<location filename="../containers/containers_defs.cpp" line="111"/>
<source>AmneziaWG - Special protocol from Amnezia, based on WireGuard. It&apos;s fast like WireGuard, but very resistant to blockages. Recommended for regions with high levels of censorship.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="116"/>
<location filename="../containers/containers_defs.cpp" line="115"/>
<source>IKEv2 - Modern stable protocol, a bit faster than others, restores connection after signal loss. It has native support on the latest versions of Android and iOS.</source>
<translation>IKEv2 Современный стабильный протокол, немного быстрее других восстанавливает соединение после потери сигнала. Имеет нативную поддержку последних версиий Android и iOS.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="119"/>
<location filename="../containers/containers_defs.cpp" line="118"/>
<source>Deploy a WordPress site on the Tor network in two clicks.</source>
<translation>Разверните сайт на WordPress в сети Tor в два клика.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="121"/>
<location filename="../containers/containers_defs.cpp" line="120"/>
<source>Replace the current DNS server with your own. This will increase your privacy level.</source>
<translation>Замените адрес DNS-сервера на собственный. Это повысит уровень конфиденциальности.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="124"/>
<location filename="../containers/containers_defs.cpp" line="122"/>
<source>Creates a file vault on your server to securely store and transfer files.</source>
<translation>Создайте на сервере файловое хранилище для безопасного хранения и передачи файлов.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="177"/>
<location filename="../containers/containers_defs.cpp" line="175"/>
<source>AmneziaWG container</source>
<translation>AmneziaWG протокол</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="194"/>
<location filename="../containers/containers_defs.cpp" line="191"/>
<source>Sftp file sharing service - is secure FTP service</source>
<translation>Сервис обмена файлами Sftp - безопасный FTP-сервис</translation>
</message>
<message>
<location filename="../protocols/protocols_defs.cpp" line="76"/>
<location filename="../protocols/protocols_defs.cpp" line="75"/>
<source>Sftp service</source>
<translation>Сервис SFTP</translation>
</message>
@ -2831,32 +2839,32 @@ IKEv2 with IPSec encryption layer. Transmits data over fixed UDP ports 500 and 4
<context>
<name>amnezia::ContainerProps</name>
<message>
<location filename="../containers/containers_defs.cpp" line="300"/>
<location filename="../containers/containers_defs.cpp" line="283"/>
<source>Low</source>
<translation>Низкий</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="301"/>
<location filename="../containers/containers_defs.cpp" line="284"/>
<source>Medium or High</source>
<translation>Спедний или Высокий</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="302"/>
<location filename="../containers/containers_defs.cpp" line="285"/>
<source>Extreme</source>
<translation>Экстремальный</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="310"/>
<location filename="../containers/containers_defs.cpp" line="293"/>
<source>I just want to increase the level of my privacy.</source>
<translation>Я просто хочу повысить уровень своей приватности.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="311"/>
<location filename="../containers/containers_defs.cpp" line="294"/>
<source>I want to bypass censorship. This option recommended in most cases.</source>
<translation>Я хочу обойти блокировки. Этот вариант рекомендуется в большинстве случаев.</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="313"/>
<location filename="../containers/containers_defs.cpp" line="296"/>
<source>Most VPN protocols are blocked. Recommended if other options are not working.</source>
<translation>Большинство VPN протоколов заблокированы. Рекомендуется, если другие варианты не работают.</translation>
</message>

View file

@ -183,22 +183,22 @@ Already installed containers were found on the server. All installed containers
</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="264"/>
<location filename="../ui/controllers/installController.cpp" line="266"/>
<source>Settings updated successfully</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="279"/>
<location filename="../ui/controllers/installController.cpp" line="281"/>
<source>Server &apos;%1&apos; was removed</source>
<translation> &apos;%1&apos;</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="289"/>
<location filename="../ui/controllers/installController.cpp" line="291"/>
<source>All containers from server &apos;%1&apos; have been removed</source>
<translation> &apos;%1&apos; </translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="306"/>
<location filename="../ui/controllers/installController.cpp" line="308"/>
<source>%1 has been removed from the server &apos;%2&apos;</source>
<translation>%1 &apos;%2&apos; </translation>
</message>
@ -219,12 +219,12 @@ Already installed containers were found on the server. All installed containers
<translation type="obsolete"> </translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="452"/>
<location filename="../ui/controllers/installController.cpp" line="454"/>
<source>Please login as the user</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="479"/>
<location filename="../ui/controllers/installController.cpp" line="481"/>
<source>Server added successfully</source>
<translation></translation>
</message>
@ -1798,13 +1798,21 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardInstalling.qml" line="62"/>
<source>Amnesia has detected that your server is currently </source>
<translation>Amnezia </translation>
<source>Amnezia has detected that your server is currently </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardInstalling.qml" line="63"/>
<source>busy installing other software. Amnezia installation </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Amnesia has detected that your server is currently </source>
<translation type="vanished">Amnezia </translation>
</message>
<message>
<source>busy installing other software. Amnesia installation </source>
<translation>Amnezia安装</translation>
<translation type="vanished">Amnezia安装</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardInstalling.qml" line="64"/>
@ -2313,7 +2321,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<context>
<name>QObject</name>
<message>
<location filename="../protocols/protocols_defs.cpp" line="76"/>
<location filename="../protocols/protocols_defs.cpp" line="75"/>
<source>Sftp service</source>
<translation>Sftp </translation>
</message>
@ -2529,7 +2537,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="90"/>
<location filename="../containers/containers_defs.cpp" line="191"/>
<location filename="../containers/containers_defs.cpp" line="189"/>
<source>Website in Tor network</source>
<translation> Tor </translation>
</message>
@ -2539,57 +2547,57 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="93"/>
<location filename="../containers/containers_defs.cpp" line="92"/>
<source>Sftp file sharing service</source>
<translation>SFTP文件共享服务</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="99"/>
<location filename="../containers/containers_defs.cpp" line="98"/>
<source>OpenVPN is the most popular VPN protocol, with flexible configuration options. It uses its own security protocol with SSL/TLS for key exchange.</source>
<translation>OpenVPN VPN 使 SSL/TLS </translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="102"/>
<location filename="../containers/containers_defs.cpp" line="101"/>
<source>ShadowSocks - masks VPN traffic, making it similar to normal web traffic, but is recognised by analysis systems in some highly censored regions.</source>
<translation>ShadowSocks - VPN 使 Web </translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="105"/>
<location filename="../containers/containers_defs.cpp" line="104"/>
<source>OpenVPN over Cloak - OpenVPN with VPN masquerading as web traffic and protection against active-probbing detection. Ideal for bypassing blocking in regions with the highest levels of censorship.</source>
<translation>OpenVPN over Cloak - OpenVPN VPN </translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="109"/>
<location filename="../containers/containers_defs.cpp" line="108"/>
<source>WireGuard - New popular VPN protocol with high performance, high speed and low power consumption. Recommended for regions with low levels of censorship.</source>
<translation>WireGuard - VPN协议</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="112"/>
<location filename="../containers/containers_defs.cpp" line="111"/>
<source>AmneziaWG - Special protocol from Amnezia, based on WireGuard. It&apos;s fast like WireGuard, but very resistant to blockages. Recommended for regions with high levels of censorship.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="116"/>
<location filename="../containers/containers_defs.cpp" line="115"/>
<source>IKEv2 - Modern stable protocol, a bit faster than others, restores connection after signal loss. It has native support on the latest versions of Android and iOS.</source>
<translation>IKEv2 - Android iOS最新版原生支持</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="119"/>
<location filename="../containers/containers_defs.cpp" line="118"/>
<source>Deploy a WordPress site on the Tor network in two clicks.</source>
<translation> WordPress Tor </translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="121"/>
<location filename="../containers/containers_defs.cpp" line="120"/>
<source>Replace the current DNS server with your own. This will increase your privacy level.</source>
<translation> DNS </translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="124"/>
<location filename="../containers/containers_defs.cpp" line="122"/>
<source>Creates a file vault on your server to securely store and transfer files.</source>
<translation>便</translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="131"/>
<location filename="../containers/containers_defs.cpp" line="129"/>
<source>The time-tested most popular VPN protocol.
Uses a proprietary security protocol with SSL/TLS for encryption and key exchange and supports various authentication methods, making it suitable for a variety of devices and operating systems.
@ -2601,7 +2609,7 @@ Uses a proprietary security protocol with SSL/TLS for encryption and key exchang
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="141"/>
<location filename="../containers/containers_defs.cpp" line="139"/>
<source>Based on the SOCKS5 proxy protocol, which protects the connection using the AEAD cipher - roughly along the same lines as SSH tunnelling. A Shadowsocks connection is difficult to identify because it is virtually identical to a normal HTTPS connection.
However, some traffic analysis systems can still recognise a ShadowSocks connection, so in countries with high levels of censorship we recommend using OpenVPN in conjunction with Cloak.
@ -2613,7 +2621,7 @@ However, some traffic analysis systems can still recognise a ShadowSocks connect
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="151"/>
<location filename="../containers/containers_defs.cpp" line="149"/>
<source>This is a combination of the OpenVPN protocol and the Cloak plugin designed specifically for blocking protection.
OpenVPN provides a secure VPN connection by encrypting all Internet traffic between the client and the server.
@ -2633,7 +2641,7 @@ If there is a high level of Internet censorship in your region, we advise you to
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="169"/>
<location filename="../containers/containers_defs.cpp" line="167"/>
<source>A relatively new popular VPN protocol with a simplified architecture.
Provides stable VPN connection, high performance on all devices. Uses hard-coded encryption settings. WireGuard compared to OpenVPN has lower latency and better data transfer throughput.
* Low power consumption on mobile devices.
@ -2644,7 +2652,7 @@ Provides stable VPN connection, high performance on all devices. Uses hard-coded
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="179"/>
<location filename="../containers/containers_defs.cpp" line="177"/>
<source>A modern stable protocol.
IKEv2 with IPSec encryption layer. Transmits data over fixed UDP ports 500 and 4500 protecting them with strong 3DES and AES crypto algorithms. Allows very fast switching between networks and devices. Due to its security, stability and speed, IKEv2 is currently one of the best VPN solutions for mobile devices. Vulnerable to detection and blocking.
@ -2672,7 +2680,7 @@ IKEv2 with IPSec encryption layer. Transmits data over fixed UDP ports 500 and 4
<translation type="vanished">WireGuard </translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="177"/>
<location filename="../containers/containers_defs.cpp" line="175"/>
<source>AmneziaWG container</source>
<translation></translation>
</message>
@ -2681,12 +2689,12 @@ IKEv2 with IPSec encryption layer. Transmits data over fixed UDP ports 500 and 4
<translation type="vanished">IPsec </translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="192"/>
<location filename="../containers/containers_defs.cpp" line="190"/>
<source>DNS Service</source>
<translation>DNS </translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="194"/>
<location filename="../containers/containers_defs.cpp" line="191"/>
<source>Sftp file sharing service - is secure FTP service</source>
<translation>Sftp - FTP </translation>
</message>
@ -2972,32 +2980,32 @@ IKEv2 with IPSec encryption layer. Transmits data over fixed UDP ports 500 and 4
<context>
<name>amnezia::ContainerProps</name>
<message>
<location filename="../containers/containers_defs.cpp" line="300"/>
<location filename="../containers/containers_defs.cpp" line="283"/>
<source>Low</source>
<translation></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="301"/>
<location filename="../containers/containers_defs.cpp" line="284"/>
<source>Medium or High</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="302"/>
<location filename="../containers/containers_defs.cpp" line="285"/>
<source>Extreme</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="310"/>
<location filename="../containers/containers_defs.cpp" line="293"/>
<source>I just want to increase the level of my privacy.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="311"/>
<location filename="../containers/containers_defs.cpp" line="294"/>
<source>I want to bypass censorship. This option recommended in most cases.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../containers/containers_defs.cpp" line="313"/>
<location filename="../containers/containers_defs.cpp" line="296"/>
<source>Most VPN protocols are blocked. Recommended if other options are not working.</source>
<translation type="unfinished"></translation>
</message>

View file

@ -183,7 +183,9 @@ void InstallController::installContainer(DockerContainer container, QJsonObject
"All installed containers have been added to the application");
}
m_containersModel->setData(m_containersModel->index(0, 0), container, ContainersModel::Roles::IsDefaultRole);
if (ContainerProps::containerService(container) == ServiceType::Vpn) {
m_containersModel->setData(m_containersModel->index(0, 0), container, ContainersModel::Roles::IsDefaultRole);
}
emit installContainerFinished(finishMessage, ContainerProps::containerService(container) == ServiceType::Other);
return;
}

View file

@ -78,12 +78,11 @@ PageLoader::PageEnum ProtocolsModel::protocolPage(Proto protocol) const
case Proto::ShadowSocks: return PageLoader::PageEnum::PageProtocolShadowSocksSettings;
case Proto::WireGuard: return PageLoader::PageEnum::PageProtocolWireGuardSettings;
case Proto::Ikev2: return PageLoader::PageEnum::PageProtocolIKev2Settings;
case Proto::L2tp: return PageLoader::PageEnum::PageProtocolOpenVpnSettings;
case Proto::L2tp: return PageLoader::PageEnum::PageProtocolIKev2Settings;
// non-vpn
case Proto::TorWebSite: return PageLoader::PageEnum::PageProtocolOpenVpnSettings;
case Proto::Dns: return PageLoader::PageEnum::PageProtocolOpenVpnSettings;
case Proto::FileShare: return PageLoader::PageEnum::PageProtocolOpenVpnSettings;
case Proto::Sftp: return PageLoader::PageEnum::PageProtocolOpenVpnSettings;
case Proto::TorWebSite: return PageLoader::PageEnum::PageServiceTorWebsiteSettings;
case Proto::Dns: return PageLoader::PageEnum::PageServiceDnsSettings;
case Proto::Sftp: return PageLoader::PageEnum::PageServiceSftpSettings;
default: return PageLoader::PageEnum::PageProtocolOpenVpnSettings;
}
}

View file

@ -59,8 +59,8 @@ PageType {
function onServerIsBusy(isBusy) {
if (isBusy) {
root.progressBarText = qsTr("Amnesia has detected that your server is currently ") +
qsTr("busy installing other software. Amnesia installation ") +
root.progressBarText = qsTr("Amnezia has detected that your server is currently ") +
qsTr("busy installing other software. Amnezia installation ") +
qsTr("will pause until the server finishes installing other software")
root.isTimerRunning = false
} else {