Merge branch 'dev' of github.com:amnezia-vpn/amnezia-client into button-focus-fix

This commit is contained in:
vladimir.kuznetsov
2024-03-11 14:13:38 +05:00
35 changed files with 4011 additions and 686 deletions

View File

@@ -11,7 +11,7 @@ string(TIMESTAMP CURRENT_DATE "%Y-%m-%d")
set(RELEASE_DATE "${CURRENT_DATE}")
set(APP_MAJOR_VERSION ${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}.${CMAKE_PROJECT_VERSION_PATCH})
set(APP_ANDROID_VERSION_CODE 46)
set(APP_ANDROID_VERSION_CODE 47)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(MZ_PLATFORM_NAME "linux")

View File

@@ -67,6 +67,7 @@ set(AMNEZIAVPN_TS_FILES
${CMAKE_CURRENT_LIST_DIR}/translations/amneziavpn_zh_CN.ts
${CMAKE_CURRENT_LIST_DIR}/translations/amneziavpn_fa_IR.ts
${CMAKE_CURRENT_LIST_DIR}/translations/amneziavpn_ar.ts
${CMAKE_CURRENT_LIST_DIR}/translations/amneziavpn_my_MM.ts
)
file(GLOB_RECURSE AMNEZIAVPN_TS_SOURCES *.qrc *.cpp *.h *.ui)

View File

@@ -24,6 +24,7 @@
#if defined(Q_OS_IOS)
#include "platforms/ios/ios_controller.h"
#include <AmneziaVPN-Swift.h>
#endif
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
@@ -98,6 +99,10 @@ void AmneziaApplication::init()
connect(m_settings.get(), &Settings::saveLogsChanged,
AndroidController::instance(), &AndroidController::setSaveLogs);
AndroidController::instance()->setScreenshotsEnabled(m_settings->isScreenshotsEnabled());
connect(m_settings.get(), &Settings::screenshotsEnabledChanged,
AndroidController::instance(), &AndroidController::setScreenshotsEnabled);
connect(m_settings.get(), &Settings::serverRemoved,
AndroidController::instance(), &AndroidController::resetLastServer);
@@ -134,6 +139,14 @@ void AmneziaApplication::init()
m_pageController->goToPageSettingsBackup();
m_settingsController->importBackupFromOutside(filePath);
});
QTimer::singleShot(0, this, [this](){
AmneziaVPN::toggleScreenshots(m_settings->isScreenshotsEnabled());
});
connect(m_settings.get(), &Settings::screenshotsEnabledChanged, [](bool enabled) {
AmneziaVPN::toggleScreenshots(enabled);
});
#endif
m_notificationHandler.reset(NotificationHandler::create(nullptr));

View File

@@ -14,6 +14,7 @@ import android.os.IBinder
import android.os.Looper
import android.os.Message
import android.os.Messenger
import android.view.WindowManager.LayoutParams
import android.webkit.MimeTypeMap
import android.widget.Toast
import androidx.annotation.MainThread
@@ -453,4 +454,13 @@ class AmneziaActivity : QtActivity() {
Log.v(TAG, "Clear logs")
Log.clearLogs()
}
@Suppress("unused")
fun setScreenshotsEnabled(enabled: Boolean) {
Log.v(TAG, "Set screenshots enabled: $enabled")
mainScope.launch {
val flag = if (enabled) 0 else LayoutParams.FLAG_SECURE
window.setFlags(flag, LayoutParams.FLAG_SECURE)
}
}
}

View File

@@ -107,6 +107,7 @@ target_sources(${PROJECT} PRIVATE
${CLIENT_ROOT_DIR}/platforms/ios/LogController.swift
${CLIENT_ROOT_DIR}/platforms/ios/Log.swift
${CLIENT_ROOT_DIR}/platforms/ios/LogRecord.swift
${CLIENT_ROOT_DIR}/platforms/ios/ScreenProtection.swift
)
target_sources(${PROJECT} PRIVATE

View File

@@ -76,7 +76,7 @@ OpenVpnConfigurator::ConnectionData OpenVpnConfigurator::prepareOpenVpnConfig(co
if (connData.caCert.isEmpty() || connData.clientCert.isEmpty() || connData.taKey.isEmpty()) {
if (errorCode)
*errorCode = ErrorCode::SshSftpFailureError;
*errorCode = ErrorCode::SshScpFailureError;
}
return connData;

View File

@@ -159,7 +159,7 @@ WireguardConfigurator::ConnectionData WireguardConfigurator::prepareWireguardCon
.arg(connData.clientPubKey, connData.pskKey, connData.clientIP);
e = serverController.uploadTextFileToContainer(container, credentials, configPart, m_serverConfigPath,
libssh::SftpOverwriteMode::SftpAppendToExisting);
libssh::ScpOverwriteMode::ScpAppendToExisting);
if (e) {
if (errorCode)

View File

@@ -118,7 +118,7 @@ ServerController::runContainerScript(const ServerCredentials &credentials, Docke
ErrorCode ServerController::uploadTextFileToContainer(DockerContainer container, const ServerCredentials &credentials,
const QString &file, const QString &path,
libssh::SftpOverwriteMode overwriteMode)
libssh::ScpOverwriteMode overwriteMode)
{
ErrorCode e = ErrorCode::NoError;
QString tmpFileName = QString("/tmp/%1.tmp").arg(Utils::getRandomString(16));
@@ -139,7 +139,7 @@ ErrorCode ServerController::uploadTextFileToContainer(DockerContainer container,
if (e)
return e;
if (overwriteMode == libssh::SftpOverwriteMode::SftpOverwriteExisting) {
if (overwriteMode == libssh::ScpOverwriteMode::ScpOverwriteExisting) {
e = runScript(credentials,
replaceVars(QString("sudo docker cp %1 $CONTAINER_NAME:/%2").arg(tmpFileName).arg(path),
genVarsForScript(credentials, container)),
@@ -147,7 +147,7 @@ ErrorCode ServerController::uploadTextFileToContainer(DockerContainer container,
if (e)
return e;
} else if (overwriteMode == libssh::SftpOverwriteMode::SftpAppendToExisting) {
} else if (overwriteMode == libssh::ScpOverwriteMode::ScpAppendToExisting) {
e = runScript(credentials,
replaceVars(QString("sudo docker cp %1 $CONTAINER_NAME:/%2").arg(tmpFileName).arg(tmpFileName),
genVarsForScript(credentials, container)),
@@ -199,7 +199,7 @@ QByteArray ServerController::getTextFileFromContainer(DockerContainer container,
}
ErrorCode ServerController::uploadFileToHost(const ServerCredentials &credentials, const QByteArray &data,
const QString &remotePath, libssh::SftpOverwriteMode overwriteMode)
const QString &remotePath, libssh::ScpOverwriteMode overwriteMode)
{
auto error = m_sshClient.connectToHost(credentials);
if (error != ErrorCode::NoError) {
@@ -211,7 +211,7 @@ ErrorCode ServerController::uploadFileToHost(const ServerCredentials &credential
localFile.write(data);
localFile.close();
error = m_sshClient.sftpFileCopy(overwriteMode, localFile.fileName(), remotePath, "non_desc");
error = m_sshClient.scpFileCopy(overwriteMode, localFile.fileName(), remotePath, "non_desc");
if (error != ErrorCode::NoError) {
return error;

View File

@@ -38,7 +38,7 @@ public:
ErrorCode uploadTextFileToContainer(
DockerContainer container, const ServerCredentials &credentials, const QString &file, const QString &path,
libssh::SftpOverwriteMode overwriteMode = libssh::SftpOverwriteMode::SftpOverwriteExisting);
libssh::ScpOverwriteMode overwriteMode = libssh::ScpOverwriteMode::ScpOverwriteExisting);
QByteArray getTextFileFromContainer(DockerContainer container, const ServerCredentials &credentials,
const QString &path, ErrorCode *errorCode = nullptr);
@@ -80,7 +80,7 @@ private:
ErrorCode isServerDpkgBusy(const ServerCredentials &credentials, DockerContainer container);
ErrorCode uploadFileToHost(const ServerCredentials &credentials, const QByteArray &data, const QString &remotePath,
libssh::SftpOverwriteMode overwriteMode = libssh::SftpOverwriteMode::SftpOverwriteExisting);
libssh::ScpOverwriteMode overwriteMode = libssh::ScpOverwriteMode::ScpOverwriteExisting);
ErrorCode setupServerFirewall(const ServerCredentials &credentials);

View File

@@ -46,25 +46,12 @@ namespace amnezia
SshPrivateKeyFormatError = 304,
SshTimeoutError = 305,
// Ssh sftp errors
SshSftpEofError = 400,
SshSftpNoSuchFileError = 401,
SshSftpPermissionDeniedError = 402,
SshSftpFailureError = 403,
SshSftpBadMessageError = 404,
SshSftpNoConnectionError = 405,
SshSftpConnectionLostError = 406,
SshSftpOpUnsupportedError = 407,
SshSftpInvalidHandleError = 408,
SshSftpNoSuchPathError = 409,
SshSftpFileAlreadyExistsError = 410,
SshSftpWriteProtectError = 411,
SshSftpNoMediaError = 412,
// Ssh scp errors
SshScpFailureError = 400,
// Local errors
OpenVpnConfigMissing = 500,
OpenVpnManagementServerError = 501,
ConfigMissing = 502,
// Distro errors
OpenVpnExecutableMissing = 600,
@@ -92,7 +79,15 @@ namespace amnezia
// Api errors
ApiConfigDownloadError = 1100,
ApiConfigAlreadyAdded = 1101
ApiConfigAlreadyAdded = 1101,
// QFile errors
OpenError = 1200,
ReadError = 1201,
PermissionsError = 1202,
UnspecifiedError = 1203,
FatalError = 1204,
AbortError = 1205
};
} // namespace amnezia

View File

@@ -28,20 +28,8 @@ QString errorString(ErrorCode code) {
case(SshPrivateKeyFormatError): errorMessage = QObject::tr("The selected private key format is not supported, use openssh ED25519 key types or PEM key types"); break;
case(SshTimeoutError): errorMessage = QObject::tr("Timeout connecting to server"); break;
// Libssh sftp errors
case(SshSftpEofError): errorMessage = QObject::tr("Sftp error: End-of-file encountered"); break;
case(SshSftpNoSuchFileError): errorMessage = QObject::tr("Sftp error: File does not exist"); break;
case(SshSftpPermissionDeniedError): errorMessage = QObject::tr("Sftp error: Permission denied"); break;
case(SshSftpFailureError): errorMessage = QObject::tr("Sftp error: Generic failure"); break;
case(SshSftpBadMessageError): errorMessage = QObject::tr("Sftp error: Garbage received from server"); break;
case(SshSftpNoConnectionError): errorMessage = QObject::tr("Sftp error: No connection has been set up"); break;
case(SshSftpConnectionLostError): errorMessage = QObject::tr("Sftp error: There was a connection, but we lost it"); break;
case(SshSftpOpUnsupportedError): errorMessage = QObject::tr("Sftp error: Operation not supported by libssh yet"); break;
case(SshSftpInvalidHandleError): errorMessage = QObject::tr("Sftp error: Invalid file handle"); break;
case(SshSftpNoSuchPathError): errorMessage = QObject::tr("Sftp error: No such file or directory path exists"); break;
case(SshSftpFileAlreadyExistsError): errorMessage = QObject::tr("Sftp error: An attempt to create an already existing file or directory has been made"); break;
case(SshSftpWriteProtectError): errorMessage = QObject::tr("Sftp error: Write-protected filesystem"); break;
case(SshSftpNoMediaError): errorMessage = QObject::tr("Sftp error: No media was in remote drive"); break;
// Ssh scp errors
case(SshScpFailureError): errorMessage = QObject::tr("Scp error: Generic failure"); break;
// Local errors
case (OpenVpnConfigMissing): errorMessage = QObject::tr("OpenVPN config missing"); break;
@@ -68,6 +56,14 @@ QString errorString(ErrorCode code) {
case (ApiConfigDownloadError): errorMessage = QObject::tr("Error when retrieving configuration from API"); break;
case (ApiConfigAlreadyAdded): errorMessage = QObject::tr("This config has already been added to the application"); break;
// QFile errors
case(OpenError): errorMessage = QObject::tr("QFile error: The file could not be opened"); break;
case(ReadError): errorMessage = QObject::tr("QFile error: An error occurred when reading from the file"); break;
case(PermissionsError): errorMessage = QObject::tr("QFile error: The file could not be accessed"); break;
case(UnspecifiedError): errorMessage = QObject::tr("QFile error: An unspecified error occurred"); break;
case(FatalError): errorMessage = QObject::tr("QFile error: A fatal error occurred"); break;
case(AbortError): errorMessage = QObject::tr("QFile error: The operation was aborted"); break;
case(InternalError):
default:
errorMessage = QObject::tr("Internal error"); break;

View File

@@ -10,16 +10,10 @@ const uint32_t S_IRWXU = 0644;
#endif
namespace libssh {
const QString libsshTimeoutError = "Timeout connecting to";
constexpr auto libsshTimeoutError{"Timeout connecting to"};
std::function<QString()> Client::m_passphraseCallback;
Client::Client(QObject *parent) : QObject(parent)
{ }
Client::~Client()
{ }
int Client::callback(const char *prompt, char *buf, size_t len, int echo, int verify, void *userdata)
{
auto passphrase = m_passphraseCallback();
@@ -171,13 +165,13 @@ namespace libssh {
return ErrorCode::NoError;
};
auto error = readOutput(false);
if (error != ErrorCode::NoError) {
return error;
auto errorCode = readOutput(false);
if (errorCode != ErrorCode::NoError) {
return errorCode;
}
error = readOutput(true);
if (error != ErrorCode::NoError) {
return error;
errorCode = readOutput(true);
if (errorCode != ErrorCode::NoError) {
return errorCode;
}
} else {
return closeChannel();
@@ -222,100 +216,79 @@ namespace libssh {
return fromLibsshErrorCode();
}
ErrorCode Client::sftpFileCopy(const SftpOverwriteMode overwriteMode, const QString& localPath, const QString& remotePath, const QString &fileDesc)
ErrorCode Client::scpFileCopy(const ScpOverwriteMode overwriteMode, const QString& localPath, const QString& remotePath, const QString &fileDesc)
{
m_sftpSession = sftp_new(m_session);
m_scpSession = ssh_scp_new(m_session, SSH_SCP_WRITE, remotePath.toStdString().c_str());
if (m_sftpSession == nullptr) {
return closeSftpSession();
if (m_scpSession == nullptr) {
return fromLibsshErrorCode();
}
int result = sftp_init(m_sftpSession);
if (result != SSH_OK) {
return closeSftpSession();
if (ssh_scp_init(m_scpSession) != SSH_OK) {
auto errorCode = fromLibsshErrorCode();
closeScpSession();
return errorCode;
}
QFutureWatcher<ErrorCode> watcher;
connect(&watcher, &QFutureWatcher<ErrorCode>::finished, this, &Client::sftpFileCopyFinished);
connect(&watcher, &QFutureWatcher<ErrorCode>::finished, this, &Client::scpFileCopyFinished);
QFuture<ErrorCode> future = QtConcurrent::run([this, overwriteMode, &localPath, &remotePath, &fileDesc]() {
int accessType = O_WRONLY | O_CREAT | overwriteMode;
sftp_file file;
const size_t bufferSize = 16384;
char buffer[bufferSize];
const int accessType = O_WRONLY | O_CREAT | overwriteMode;
const int localFileSize = QFileInfo(localPath).size();
file = sftp_open(m_sftpSession, remotePath.toStdString().c_str(), accessType, S_IRWXU);
if (file == nullptr) {
return closeSftpSession();
int result = ssh_scp_push_file(m_scpSession, remotePath.toStdString().c_str(), localFileSize, accessType);
if (result != SSH_OK) {
return fromLibsshErrorCode();
}
int localFileSize = QFileInfo(localPath).size();
int chunksCount = localFileSize / (bufferSize);
QFile fin(localPath);
if (fin.open(QIODevice::ReadOnly)) {
for (int currentChunkId = 0; currentChunkId < chunksCount; currentChunkId++) {
QByteArray chunk = fin.read(bufferSize);
if (chunk.size() != bufferSize) return ErrorCode::SshSftpEofError;
constexpr size_t bufferSize = 16384;
int transferred = 0;
int currentChunkSize = bufferSize;
int bytesWritten = sftp_write(file, chunk.data(), chunk.size());
while (transferred < localFileSize) {
if (bytesWritten != chunk.size()) {
fin.close();
sftp_close(file);
return closeSftpSession();
// Last Chunk
if ((localFileSize - transferred) < bufferSize) {
currentChunkSize = localFileSize % bufferSize;
}
}
int lastChunkSize = localFileSize % bufferSize;
if (lastChunkSize != 0) {
QByteArray lastChunk = fin.read(lastChunkSize);
if (lastChunk.size() != lastChunkSize) return ErrorCode::SshSftpEofError;
int bytesWritten = sftp_write(file, lastChunk.data(), lastChunkSize);
if (bytesWritten != lastChunkSize) {
fin.close();
sftp_close(file);
return closeSftpSession();
QByteArray chunk = fin.read(currentChunkSize);
if (chunk.size() != currentChunkSize) {
return fromFileErrorCode(fin.error());
}
result = ssh_scp_write(m_scpSession, chunk.data(), chunk.size());
if (result != SSH_OK) {
return fromLibsshErrorCode();
}
transferred += currentChunkSize;
}
} else {
sftp_close(file);
return closeSftpSession();
return fromFileErrorCode(fin.error());
}
fin.close();
int result = sftp_close(file);
if (result != SSH_OK) {
return closeSftpSession();
}
return closeSftpSession();
return ErrorCode::NoError;
});
watcher.setFuture(future);
QEventLoop wait;
QObject::connect(this, &Client::sftpFileCopyFinished, &wait, &QEventLoop::quit);
QObject::connect(this, &Client::scpFileCopyFinished, &wait, &QEventLoop::quit);
wait.exec();
closeScpSession();
return watcher.result();
}
ErrorCode Client::closeSftpSession()
void Client::closeScpSession()
{
auto errorCode = fromLibsshSftpErrorCode(sftp_get_error(m_sftpSession));
if (m_sftpSession != nullptr) {
sftp_free(m_sftpSession);
m_sftpSession = nullptr;
if (m_scpSession != nullptr) {
ssh_scp_free(m_scpSession);
m_scpSession = nullptr;
}
qCritical() << ssh_get_error(m_session);
return errorCode;
}
ErrorCode Client::fromLibsshErrorCode()
@@ -337,24 +310,17 @@ namespace libssh {
default: return ErrorCode::SshInternalError;
}
}
ErrorCode Client::fromLibsshSftpErrorCode(int errorCode)
ErrorCode Client::fromFileErrorCode(QFileDevice::FileError fileError)
{
switch (errorCode) {
case(SSH_FX_OK): return ErrorCode::NoError;
case(SSH_FX_EOF): return ErrorCode::SshSftpEofError;
case(SSH_FX_NO_SUCH_FILE): return ErrorCode::SshSftpNoSuchFileError;
case(SSH_FX_PERMISSION_DENIED): return ErrorCode::SshSftpPermissionDeniedError;
case(SSH_FX_FAILURE): return ErrorCode::SshSftpFailureError;
case(SSH_FX_BAD_MESSAGE): return ErrorCode::SshSftpBadMessageError;
case(SSH_FX_NO_CONNECTION): return ErrorCode::SshSftpNoConnectionError;
case(SSH_FX_CONNECTION_LOST): return ErrorCode::SshSftpConnectionLostError;
case(SSH_FX_OP_UNSUPPORTED): return ErrorCode::SshSftpOpUnsupportedError;
case(SSH_FX_INVALID_HANDLE): return ErrorCode::SshSftpInvalidHandleError;
case(SSH_FX_NO_SUCH_PATH): return ErrorCode::SshSftpNoSuchPathError;
case(SSH_FX_FILE_ALREADY_EXISTS): return ErrorCode::SshSftpFileAlreadyExistsError;
case(SSH_FX_WRITE_PROTECT): return ErrorCode::SshSftpWriteProtectError;
case(SSH_FX_NO_MEDIA): return ErrorCode::SshSftpNoMediaError;
default: return ErrorCode::SshSftpFailureError;
switch (fileError) {
case QFileDevice::NoError: return ErrorCode::NoError;
case QFileDevice::ReadError: return ErrorCode::ReadError;
case QFileDevice::OpenError: return ErrorCode::OpenError;
case QFileDevice::PermissionsError: return ErrorCode::PermissionsError;
case QFileDevice::FatalError: return ErrorCode::FatalError;
case QFileDevice::AbortError: return ErrorCode::AbortError;
default: return ErrorCode::UnspecifiedError;
}
}

View File

@@ -2,29 +2,29 @@
#define SSHCLIENT_H
#include <QObject>
#include <QFile>
#include <fcntl.h>
#include <libssh/libssh.h>
#include <libssh/sftp.h>
#include "defs.h"
using namespace amnezia;
namespace libssh {
enum SftpOverwriteMode {
enum ScpOverwriteMode {
/*! Overwrite any existing files */
SftpOverwriteExisting = O_TRUNC,
ScpOverwriteExisting = O_TRUNC,
/*! Append new content if the file already exists */
SftpAppendToExisting = O_APPEND
ScpAppendToExisting = O_APPEND
};
class Client : public QObject
{
Q_OBJECT
public:
Client(QObject *parent = nullptr);
~Client();
Client() = default;
~Client() = default;
ErrorCode connectToHost(const ServerCredentials &credentials);
void disconnectFromHost();
@@ -32,26 +32,26 @@ namespace libssh {
const std::function<ErrorCode (const QString &, Client &)> &cbReadStdOut,
const std::function<ErrorCode (const QString &, Client &)> &cbReadStdErr);
ErrorCode writeResponse(const QString &data);
ErrorCode sftpFileCopy(const SftpOverwriteMode overwriteMode,
ErrorCode scpFileCopy(const ScpOverwriteMode overwriteMode,
const QString &localPath,
const QString &remotePath,
const QString& fileDesc);
const QString &fileDesc);
ErrorCode getDecryptedPrivateKey(const ServerCredentials &credentials, QString &decryptedPrivateKey, const std::function<QString()> &passphraseCallback);
private:
ErrorCode closeChannel();
ErrorCode closeSftpSession();
void closeScpSession();
ErrorCode fromLibsshErrorCode();
ErrorCode fromLibsshSftpErrorCode(int errorCode);
ErrorCode fromFileErrorCode(QFileDevice::FileError fileError);
static int callback(const char *prompt, char *buf, size_t len, int echo, int verify, void *userdata);
ssh_session m_session = nullptr;
ssh_channel m_channel = nullptr;
sftp_session m_sftpSession = nullptr;
ssh_scp m_scpSession = nullptr;
static std::function<QString()> m_passphraseCallback;
signals:
void writeToChannelFinished();
void sftpFileCopyFinished();
void scpFileCopyFinished();
};
}

View File

@@ -61,7 +61,7 @@ int main(int argc, char *argv[])
if (doExec) {
app.init();
qInfo().noquote() << QString("Started %1 version %2").arg(APPLICATION_NAME, APP_VERSION);
qInfo().noquote() << QString("Started %1 version %2 %3").arg(APPLICATION_NAME, APP_VERSION, GIT_COMMIT_HASH);
qInfo().noquote() << QString("%1 (%2)").arg(QSysInfo::prettyProductName(), QSysInfo::currentCpuArchitecture());
return app.exec();

View File

@@ -204,6 +204,11 @@ void AndroidController::clearLogs()
callActivityMethod("clearLogs", "()V");
}
void AndroidController::setScreenshotsEnabled(bool enabled)
{
callActivityMethod("setScreenshotsEnabled", "(Z)V", enabled);
}
// Moving log processing to the Android side
jclass AndroidController::log;
jmethodID AndroidController::logDebug;

View File

@@ -39,6 +39,7 @@ public:
void setSaveLogs(bool enabled);
void exportLogsFile(const QString &fileName);
void clearLogs();
void setScreenshotsEnabled(bool enabled);
static bool initLogging();
static void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &message);

View File

@@ -3,7 +3,6 @@
#include <QFile>
UIView *_screen;
@implementation QIOSApplicationDelegate (AmneziaVPNDelegate)
@@ -15,19 +14,6 @@ UIView *_screen;
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
_screen = [UIScreen.mainScreen snapshotViewAfterScreenUpdates: false];
UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle: UIBlurEffectStyleDark];
UIVisualEffectView *blurBackground = [[UIVisualEffectView alloc] initWithEffect: blurEffect];
[_screen addSubview: blurBackground];
blurBackground.frame = _screen.frame;
UIWindow *_window = UIApplication.sharedApplication.keyWindow;
[_window addSubview: _screen];
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
@@ -41,17 +27,6 @@ UIView *_screen;
NSLog(@"In the foreground");
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
[_screen removeFromSuperview];
}
- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
-(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
// We will add content here soon.
NSLog(@"In the completionHandler");

View File

@@ -0,0 +1,87 @@
import UIKit
public func toggleScreenshots(_ isEnabled: Bool) {
let window = UIApplication.shared.keyWindows.first!
if isEnabled {
ScreenProtection.shared.disable(for: window.rootViewController!.view)
} else {
ScreenProtection.shared.enable(for: window.rootViewController!.view)
}
}
extension UIApplication {
var keyWindows: [UIWindow] {
connectedScenes
.compactMap {
if #available(iOS 15.0, *) {
($0 as? UIWindowScene)?.keyWindow
} else {
($0 as? UIWindowScene)?.windows.first { $0.isKeyWindow }
}
}
}
}
class ScreenProtection {
public static let shared = ScreenProtection()
var pairs = [ProtectionPair]()
private var blurView: UIVisualEffectView?
private var recordingObservation: NSKeyValueObservation?
public func enable(for view: UIView) {
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
view.subviews.forEach {
self.pairs.append(ProtectionPair(from: $0))
}
}
}
public func disable(for view: UIView) {
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
self.pairs.forEach {
$0.removeProtection()
}
self.pairs.removeAll()
}
}
}
struct ProtectionPair {
let textField: UITextField
let layer: CALayer
init(from view: UIView) {
let secureTextField = UITextField()
secureTextField.backgroundColor = .clear
secureTextField.translatesAutoresizingMaskIntoConstraints = false
secureTextField.isSecureTextEntry = true
view.insertSubview(secureTextField, at: 0)
secureTextField.isUserInteractionEnabled = false
view.layer.superlayer?.addSublayer(secureTextField.layer)
secureTextField.layer.sublayers?.last?.addSublayer(view.layer)
secureTextField.topAnchor.constraint(equalTo: view.topAnchor, constant: 0).isActive = true
secureTextField.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: 0).isActive = true
secureTextField.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 0).isActive = true
secureTextField.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: 0).isActive = true
self.init(textField: secureTextField, layer: view.layer)
}
init(textField: UITextField, layer: CALayer) {
self.textField = textField
self.layer = layer
}
func removeProtection() {
textField.superview?.superview?.layer.addSublayer(layer)
textField.layer.removeFromSuperlayer()
textField.removeFromSuperview()
}
}

View File

@@ -185,12 +185,14 @@ public:
void setScreenshotsEnabled(bool enabled)
{
setValue("Conf/screenshotsEnabled", enabled);
emit screenshotsEnabledChanged(enabled);
}
void clearSettings();
signals:
void saveLogsChanged(bool enabled);
void screenshotsEnabledChanged(bool enabled);
void serverRemoved(int serverIndex);
void settingsCleared();

View File

@@ -5,45 +5,45 @@
<name>ConnectionController</name>
<message>
<location filename="../ui/controllers/connectionController.h" line="62"/>
<location filename="../ui/controllers/connectionController.cpp" line="83"/>
<location filename="../ui/controllers/connectionController.cpp" line="97"/>
<location filename="../ui/controllers/connectionController.cpp" line="103"/>
<location filename="../ui/controllers/connectionController.cpp" line="84"/>
<location filename="../ui/controllers/connectionController.cpp" line="98"/>
<location filename="../ui/controllers/connectionController.cpp" line="104"/>
<source>Connect</source>
<translation>اتصل</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="40"/>
<location filename="../ui/controllers/connectionController.cpp" line="41"/>
<source>VPN Protocols is not installed.
Please install VPN container at first</source>
<translation>لم يتم تثبيت بروتوكولات VPN, من فضلك قم بتنزيل حاوية VPN اولاً</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="64"/>
<location filename="../ui/controllers/connectionController.cpp" line="65"/>
<source>Connection...</source>
<translation>اتصال...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="69"/>
<location filename="../ui/controllers/connectionController.cpp" line="70"/>
<source>Connected</source>
<translation>تم الاتصال</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="78"/>
<location filename="../ui/controllers/connectionController.cpp" line="79"/>
<source>Reconnection...</source>
<translation>إعادة الاتصال...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="88"/>
<location filename="../ui/controllers/connectionController.cpp" line="89"/>
<source>Disconnection...</source>
<translation>إنهاء الاتصال...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="114"/>
<location filename="../ui/controllers/connectionController.cpp" line="115"/>
<source>Settings updated successfully, Reconnnection...</source>
<translation>تم تحديث الاعدادات بنجاح, جاري إعادة الاتصال...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="117"/>
<location filename="../ui/controllers/connectionController.cpp" line="118"/>
<source>Settings updated successfully</source>
<translation>تم تحديث الاعدادات بنجاح</translation>
</message>
@@ -324,17 +324,17 @@ Already installed containers were found on the server. All installed containers
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="224"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="223"/>
<source>VPN protocol</source>
<translation>بروتوكول VPN</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="272"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="271"/>
<source>Servers</source>
<translation>الخوادم</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="360"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="359"/>
<source>Unable change server while there is an active connection</source>
<translation>لا يمكن تغير الخادم بينما هناك اتصال مفعل</translation>
</message>
@@ -1423,7 +1423,7 @@ And if you don&apos;t like the app, all the more support it - the donation will
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="203"/>
<source>Do you want to clear server from Amnezia software?</source>
<source>Do you want to clear server Amnezia-installed services?</source>
<translation>هل تريد حذف الخادم من Amnezia?</translation>
</message>
<message>
@@ -1471,7 +1471,7 @@ And if you don&apos;t like the app, all the more support it - the donation will
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="169"/>
<source>Remove server from application</source>
<source>Remove this server from the app</source>
<translation>احذف خادم من التطبيق</translation>
</message>
<message>
@@ -1496,7 +1496,7 @@ And if you don&apos;t like the app, all the more support it - the donation will
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="199"/>
<source>Clear server from Amnezia software</source>
<source>Clear server Amnezia-installed services</source>
<translation>احذف خادم من Amnezia</translation>
</message>
<message>
@@ -1703,41 +1703,45 @@ And if you don&apos;t like the app, all the more support it - the donation will
<translation>اتصال الخادم</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="51"/>
<source>Do not use connection code from public sources. It may have been created to intercept your data.
It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation>لا تستخدم رمز الاتصال من المصادر العامة. ربما تم إنشاؤه لاعتراض بياناتك
<translation type="vanished">لا تستخدم رمز الاتصال من المصادر العامة. ربما تم إنشاؤه لاعتراض بياناتك
لا بأس طالما انه من شخص تثق به.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="61"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="51"/>
<source>Do not use connection codes from untrusted sources, as they may be created to intercept your data.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="60"/>
<source>What do you have?</source>
<translation>ماذا لديك؟</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="68"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="67"/>
<source>File with connection settings or backup</source>
<translation>ملف إعدادات اتصال او نسخ احتياطي</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="68"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="67"/>
<source>File with connection settings</source>
<translation>ملف إعدادات اتصال</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="75"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="74"/>
<source>Open config file</source>
<translation>افتح ملف تكوين</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="95"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="94"/>
<source>QR-code</source>
<translation>رمز QR</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="114"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="113"/>
<source>Key as text</source>
<translation>مفتاح كنص</translation>
</message>
@@ -1823,7 +1827,7 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation>واصل</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardEasy.qml" line="198"/>
<location filename="../ui/qml/Pages2/PageSetupWizardEasy.qml" line="197"/>
<source>Set up later</source>
<translation>إعداد في وقت لاحق</translation>
</message>
@@ -1924,32 +1928,32 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
<context>
<name>PageSetupWizardStart</name>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="54"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="64"/>
<source>Settings restored from backup file</source>
<translation>تم استرداد الإعدادات من ملف نسخة احتياطية</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="106"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="116"/>
<source>Free service for creating a personal VPN on your server.</source>
<translation>خدمة مجانية لأنشاء VPN شخصي علي الخادم الشخصي.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="107"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="117"/>
<source> Helps you access blocked content without revealing your privacy, even to VPN providers.</source>
<translation> يساعدك في الولوج للمحتوي المحظور بدون إظهار خصوصيات, حتي لمزود ال VPN.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="116"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="126"/>
<source>I have the data to connect</source>
<translation>لدي البيانات المطلوبة للأتصال</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="136"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="146"/>
<source>I have nothing</source>
<translation>ليس لدي اي شئ</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="139"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="149"/>
<source>https://amnezia.org/instructions/0_starter-guide</source>
<translation></translation>
</message>
@@ -1991,9 +1995,13 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation>اتصال جديد</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="95"/>
<source>Do not use connection code from public sources. It could be created to intercept your data.</source>
<translation>لا تستخدم رمز الاتصال من مصادر مفتوحة, قد تكون مصنوعة للتعارض مع بياناتك.</translation>
<translation type="vanished">لا تستخدم رمز الاتصال من مصادر مفتوحة, قد تكون مصنوعة للتعارض مع بياناتك.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="95"/>
<source>Do not use connection codes from untrusted sources, as they may be created to intercept your data.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="110"/>
@@ -2085,7 +2093,7 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="243"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="504"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="513"/>
<source>Users</source>
<translation>المستخدمين</translation>
</message>
@@ -2095,52 +2103,52 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation>شارك اتصال VPN بدون القدرة علي إدارة الخادم</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="520"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="529"/>
<source>Search</source>
<translation>ابحث</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="604"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="613"/>
<source>Creation date: </source>
<translation>تاريخ الإنشاء: </translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="618"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="627"/>
<source>Rename</source>
<translation>إعادة التسمية</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="650"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="659"/>
<source>Client name</source>
<translation>اسم العميل</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="663"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="672"/>
<source>Save</source>
<translation>احفظ</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="695"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="704"/>
<source>Revoke</source>
<translation>سحب وإبطال</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="698"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="707"/>
<source>Revoke the config for a user - %1?</source>
<translation>سحب وإبطال للمستخدم - %1?</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="699"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="708"/>
<source>The user will no longer be able to connect to your server.</source>
<translation>المستخدم لن يكون قادر علي الاتصال بعد الان.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="700"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="709"/>
<source>Continue</source>
<translation>واصل</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="701"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="710"/>
<source>Cancel</source>
<translation>إلغاء</translation>
</message>
@@ -2173,8 +2181,8 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation type="obsolete">البروتوكولات</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="348"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="349"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="356"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="357"/>
<source>Protocol</source>
<translation>بروتوكول</translation>
</message>
@@ -2194,14 +2202,14 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation>اسم المستخدم</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="449"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="450"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="457"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="458"/>
<source>Connection format</source>
<translation>تنسيق الاتصال</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="198"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="487"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="496"/>
<source>Share</source>
<translation>شارك</translation>
</message>
@@ -2583,147 +2591,161 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation>انتهت مدة الاتصال بالخادم</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="32"/>
<source>Sftp error: End-of-file encountered</source>
<translation></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="33"/>
<source>Sftp error: File does not exist</source>
<translation>خطأ Sftp: الملف غير موجود</translation>
<translation type="vanished">خطأ Sftp: الملف غير موجود</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="34"/>
<source>Sftp error: Permission denied</source>
<translation>خطأ Sftp: تم حظر الصلحيات</translation>
<translation type="vanished">خطأ Sftp: تم حظر الصلحيات</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="35"/>
<source>Sftp error: Generic failure</source>
<translation>خطأ Sftp: فشل عام</translation>
<translation type="vanished">خطأ Sftp: فشل عام</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="36"/>
<source>Sftp error: Garbage received from server</source>
<translation>خطأ Sftp: تم استلام نفايات من الخادم</translation>
<translation type="vanished">خطأ Sftp: تم استلام نفايات من الخادم</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="37"/>
<source>Sftp error: No connection has been set up</source>
<translation>خطأ Sftp: لم يتم إعداد اتصال</translation>
<translation type="vanished">خطأ Sftp: لم يتم إعداد اتصال</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="38"/>
<source>Sftp error: There was a connection, but we lost it</source>
<translation>خطأ Sftp: كان هناك اتصال, ولكن خسرناه</translation>
<translation type="vanished">خطأ Sftp: كان هناك اتصال, ولكن خسرناه</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="39"/>
<source>Sftp error: Operation not supported by libssh yet</source>
<translation>خطأ Sftp: العملية ليست مدعومة من libssh بعد</translation>
<translation type="vanished">خطأ Sftp: العملية ليست مدعومة من libssh بعد</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="40"/>
<source>Sftp error: Invalid file handle</source>
<translation></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="41"/>
<source>Sftp error: No such file or directory path exists</source>
<translation>خطأ Sftp: لا يوجد مسار ملف او مجلد مثل هذا</translation>
<translation type="vanished">خطأ Sftp: لا يوجد مسار ملف او مجلد مثل هذا</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="42"/>
<source>Sftp error: An attempt to create an already existing file or directory has been made</source>
<translation>خطأ Sftp: محاولة إنشاء ملف او مجلد موجود بالفعل</translation>
<translation type="vanished">خطأ Sftp: محاولة إنشاء ملف او مجلد موجود بالفعل</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="43"/>
<source>Sftp error: Write-protected filesystem</source>
<translation>خطأ Sftp: نظام كتابة الملفات محمي</translation>
<translation type="vanished">خطأ Sftp: نظام كتابة الملفات محمي</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="44"/>
<source>Sftp error: No media was in remote drive</source>
<translation>خطأ Sftp: لا يوجد وسائط في القرص البعيد</translation>
<translation type="vanished">خطأ Sftp: لا يوجد وسائط في القرص البعيد</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="65"/>
<location filename="../core/errorstrings.cpp" line="53"/>
<source>VPN connection error</source>
<translation></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="68"/>
<location filename="../core/errorstrings.cpp" line="56"/>
<source>Error when retrieving configuration from API</source>
<translation>خطأ عند استرداد التكوين من API</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="69"/>
<location filename="../core/errorstrings.cpp" line="57"/>
<source>This config has already been added to the application</source>
<translation>هذا التكوين بالفعل تمت إضافتة للبرنامج</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="76"/>
<location filename="../core/errorstrings.cpp" line="72"/>
<source>ErrorCode: %1. </source>
<translation></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="47"/>
<location filename="../core/errorstrings.cpp" line="35"/>
<source>OpenVPN config missing</source>
<translation>OpenVpn تكوين مفقود</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="48"/>
<location filename="../core/errorstrings.cpp" line="32"/>
<source>Scp error: Generic failure</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="36"/>
<source>OpenVPN management server error</source>
<translation>OpenVpn خطأ في إدارة الخادم</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="51"/>
<location filename="../core/errorstrings.cpp" line="39"/>
<source>OpenVPN executable missing</source>
<translation>OpenVpn executeable مفقود</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="52"/>
<location filename="../core/errorstrings.cpp" line="40"/>
<source>ShadowSocks (ss-local) executable missing</source>
<translation>ShadowSocks (ss-local) executable مفقود</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="53"/>
<location filename="../core/errorstrings.cpp" line="41"/>
<source>Cloak (ck-client) executable missing</source>
<translation>Cloak (ck-client) executable مفقود</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="54"/>
<location filename="../core/errorstrings.cpp" line="42"/>
<source>Amnezia helper service error</source>
<translation>خطأ في خدمة مٌساعد Amnezia</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="55"/>
<location filename="../core/errorstrings.cpp" line="43"/>
<source>OpenSSL failed</source>
<translation>فشل OpenSSL</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="58"/>
<location filename="../core/errorstrings.cpp" line="46"/>
<source>Can&apos;t connect: another VPN connection is active</source>
<translation>لا يمكن الاتصال: هناك اتصال VPN اخر بالفعل يعمل</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="59"/>
<location filename="../core/errorstrings.cpp" line="47"/>
<source>Can&apos;t setup OpenVPN TAP network adapter</source>
<translation>لا يمك نتثبيت محول شبكة OpenVPN TAP</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="60"/>
<location filename="../core/errorstrings.cpp" line="48"/>
<source>VPN pool error: no available addresses</source>
<translation>VPN pool error: لا يوجد عنواين مٌتاحة</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="62"/>
<location filename="../core/errorstrings.cpp" line="50"/>
<source>The config does not contain any containers and credentials for connecting to the server</source>
<translation>التكوين لا يحتوي علي اي حاويات و اعتماد للأتصال بالخادم</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="73"/>
<location filename="../core/errorstrings.cpp" line="60"/>
<source>QFile error: The file could not be opened</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="61"/>
<source>QFile error: An error occurred when reading from the file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="62"/>
<source>QFile error: The file could not be accessed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="63"/>
<source>QFile error: An unspecified error occurred</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="64"/>
<source>QFile error: A fatal error occurred</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="65"/>
<source>QFile error: The operation was aborted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="69"/>
<source>Internal error</source>
<translation>خطأ داخلي</translation>
</message>
@@ -3023,8 +3045,8 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<translation>خادم #1</translation>
</message>
<message>
<location filename="../settings.cpp" line="206"/>
<location filename="../settings.cpp" line="213"/>
<location filename="../settings.cpp" line="207"/>
<location filename="../settings.cpp" line="214"/>
<source>Server</source>
<translation>خادم</translation>
</message>
@@ -3032,17 +3054,17 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<context>
<name>SettingsController</name>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="139"/>
<location filename="../ui/controllers/settingsController.cpp" line="123"/>
<source>Backup file is corrupted</source>
<translation>ملف النسخه الاحتياطيه تالف</translation>
</message>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="155"/>
<location filename="../ui/controllers/settingsController.cpp" line="140"/>
<source>All settings have been reset to default values</source>
<translation>تم استرجاع جميع الإعدادات للإعدادات الافتراضية</translation>
</message>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="161"/>
<location filename="../ui/controllers/settingsController.cpp" line="150"/>
<source>Cached profiles cleared</source>
<translation>تم حذف الملفات الشخصية المٌخزنة مؤقتاُ</translation>
</message>
@@ -3056,28 +3078,28 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<translation>احفظ تكوين AmneziaVPN</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="74"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="85"/>
<source>Share</source>
<translation>شارك</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="108"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="121"/>
<source>Copy</source>
<translation>انسخ</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="167"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="177"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="188"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="198"/>
<source>Copied</source>
<translation>تم النسخ</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="126"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="141"/>
<source>Copy config string</source>
<translation>انسخ نص التكوين</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="141"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="160"/>
<source>Show connection settings</source>
<translation>اظهر إعدادات الاتصال</translation>
</message>
@@ -3086,7 +3108,7 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="305"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="328"/>
<source>To read the QR code in the Amnezia app, select &quot;Add server&quot; &quot;I have data to connect&quot; &quot;QR code, key or settings file&quot;</source>
<translation>حتي تقرأ رمز ال QR في تطبيق Amnezia, اختار &quot;إضافة خادم&quot; - &quot;لدي بيانات الاتصال&quot; - &quot;رمز Qr, او مفتاح تعريف او ملف إعدادات&quot;</translation>
</message>
@@ -3178,7 +3200,7 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<context>
<name>VpnConnection</name>
<message>
<location filename="../vpnconnection.cpp" line="457"/>
<location filename="../vpnconnection.cpp" line="458"/>
<source>Mbps</source>
<translation></translation>
</message>
@@ -3262,12 +3284,12 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<context>
<name>main2</name>
<message>
<location filename="../ui/qml/main2.qml" line="174"/>
<location filename="../ui/qml/main2.qml" line="179"/>
<source>Private key passphrase</source>
<translation>عبارة المرور الخاصة بالمفتاح</translation>
</message>
<message>
<location filename="../ui/qml/main2.qml" line="197"/>
<location filename="../ui/qml/main2.qml" line="202"/>
<source>Save</source>
<translation>احفظ</translation>
</message>

View File

@@ -34,48 +34,48 @@
<context>
<name>ConnectionController</name>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="40"/>
<location filename="../ui/controllers/connectionController.cpp" line="41"/>
<source>VPN Protocols is not installed.
Please install VPN container at first</source>
<translation>پروتکل ویپیان نصب نشده است
لطفا کانتینر ویپیان را نصب کنید</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="64"/>
<location filename="../ui/controllers/connectionController.cpp" line="65"/>
<source>Connection...</source>
<translation>در حال ارتباط...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="69"/>
<location filename="../ui/controllers/connectionController.cpp" line="70"/>
<source>Connected</source>
<translation>متصل</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="114"/>
<location filename="../ui/controllers/connectionController.cpp" line="115"/>
<source>Settings updated successfully, Reconnnection...</source>
<translation>تنظیمات به روز رسانی شد
در حال اتصال دوباره...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="117"/>
<location filename="../ui/controllers/connectionController.cpp" line="118"/>
<source>Settings updated successfully</source>
<translation>تنظیمات با موفقیت بهروزرسانی شدند</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="78"/>
<location filename="../ui/controllers/connectionController.cpp" line="79"/>
<source>Reconnection...</source>
<translation>اتصال دوباره...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.h" line="62"/>
<location filename="../ui/controllers/connectionController.cpp" line="83"/>
<location filename="../ui/controllers/connectionController.cpp" line="97"/>
<location filename="../ui/controllers/connectionController.cpp" line="103"/>
<location filename="../ui/controllers/connectionController.cpp" line="84"/>
<location filename="../ui/controllers/connectionController.cpp" line="98"/>
<location filename="../ui/controllers/connectionController.cpp" line="104"/>
<source>Connect</source>
<translation>اتصال</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="88"/>
<location filename="../ui/controllers/connectionController.cpp" line="89"/>
<source>Disconnection...</source>
<translation>قطع ارتباط...</translation>
</message>
@@ -335,17 +335,17 @@ Already installed containers were found on the server. All installed containers
<translation>تونل تقسیمشده غیرفعال شده</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="224"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="223"/>
<source>VPN protocol</source>
<translation>پروتکل ویپیان</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="272"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="271"/>
<source>Servers</source>
<translation>سرورها</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="360"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="359"/>
<source>Unable change server while there is an active connection</source>
<translation>امکان تغییر سرور در هنگام متصل بودن وجود ندارد</translation>
</message>
@@ -1479,7 +1479,7 @@ Already installed containers were found on the server. All installed containers
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="203"/>
<source>Do you want to clear server from Amnezia software?</source>
<source>Do you want to clear server Amnezia-installed services?</source>
<translation>آیا میخواهید سرور را از نرمافزار Amnezia پاک کنید؟</translation>
</message>
<message>
@@ -1494,11 +1494,11 @@ Already installed containers were found on the server. All installed containers
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="169"/>
<source>Remove server from application</source>
<source>Remove this server from the app</source>
<translation>حذف کردن سرور از نرمافزار</translation>
</message>
<message>
<source>Remove server?</source>
<source>Remove server from application?</source>
<translation type="vanished">حذف سرور؟</translation>
</message>
<message>
@@ -1508,11 +1508,11 @@ Already installed containers were found on the server. All installed containers
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="199"/>
<source>Clear server from Amnezia software</source>
<source>Clear server Amnezia-installed services</source>
<translation>پاک کردن سرور از نرمافزار Amnezia</translation>
</message>
<message>
<source>Clear server from Amnezia software?</source>
<source>Clear server Amnezia-installed services?</source>
<translation type="vanished">سرور از نرمافزار Amnezia پاک شود؟</translation>
</message>
<message>
@@ -1715,41 +1715,45 @@ Already installed containers were found on the server. All installed containers
<translation>ارتباط سرور</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="51"/>
<source>Do not use connection code from public sources. It may have been created to intercept your data.
It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation>از کد اتصالاتی که در منابع عمومی هستند استفاده نکنید. ممکن است برای شنود اطلاعات شما ایجاد شده باشند.
<translation type="vanished">از کد اتصالاتی که در منابع عمومی هستند استفاده نکنید. ممکن است برای شنود اطلاعات شما ایجاد شده باشند.
ایرادی ندارد که از طرف کسی باشد که به او اعتماد دارید.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="61"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="51"/>
<source>Do not use connection codes from untrusted sources, as they may be created to intercept your data.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="60"/>
<source>What do you have?</source>
<translation>چی داری؟</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="68"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="67"/>
<source>File with connection settings</source>
<translation>فایل شامل تنظیمات اتصال</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="68"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="67"/>
<source>File with connection settings or backup</source>
<translation>فایل شامل تنظیمات اتصال یا بکآپ</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="75"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="74"/>
<source>Open config file</source>
<translation>باز کردن فایل تنظیمات</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="95"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="94"/>
<source>QR-code</source>
<translation>QR-Code</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="114"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="113"/>
<source>Key as text</source>
<translation>متن شامل کلید</translation>
</message>
@@ -1852,7 +1856,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation>ادامه</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardEasy.qml" line="198"/>
<location filename="../ui/qml/Pages2/PageSetupWizardEasy.qml" line="197"/>
<source>Set up later</source>
<translation>بعدا تنظیم شود</translation>
</message>
@@ -1953,32 +1957,32 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<context>
<name>PageSetupWizardStart</name>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="54"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="64"/>
<source>Settings restored from backup file</source>
<translation>تنظیمات از فایل بکآپ بازیابی شدند</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="106"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="116"/>
<source>Free service for creating a personal VPN on your server.</source>
<translation>سرویس رایگان برای ایجاد ویپیان شخصی بر روی سرور خودتان.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="107"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="117"/>
<source> Helps you access blocked content without revealing your privacy, even to VPN providers.</source>
<translation>به شما کمک میکند که بدون فاش کردن حریم شخصی خودتان حتی برای ارائه دهنده ویپیان به محتوای مسدود شده دسترسی پیدا کنید.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="116"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="126"/>
<source>I have the data to connect</source>
<translation>من داده برای اتصال دارم</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="136"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="146"/>
<source>I have nothing</source>
<translation>من هیچی ندارم</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="139"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="149"/>
<source>https://amnezia.org/instructions/0_starter-guide</source>
<translation type="unfinished"></translation>
</message>
@@ -2019,9 +2023,13 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation>ارتباط جدید</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="95"/>
<source>Do not use connection code from public sources. It could be created to intercept your data.</source>
<translation>از کد اتصالی که در منابع عمومی هست استفاده نکنید. ممکن است برای شنود اطلاعات شما ایجاد شده باشد.</translation>
<translation type="vanished">از کد اتصالی که در منابع عمومی هست استفاده نکنید. ممکن است برای شنود اطلاعات شما ایجاد شده باشد.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="95"/>
<source>Do not use connection codes from untrusted sources, as they may be created to intercept your data.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="110"/>
@@ -2159,7 +2167,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="243"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="504"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="513"/>
<source>Users</source>
<translation>کاربران</translation>
</message>
@@ -2169,37 +2177,37 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation>نام کاربری</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="520"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="529"/>
<source>Search</source>
<translation>جستجو</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="604"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="613"/>
<source>Creation date: </source>
<translation>تاریخ ایجاد:</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="618"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="627"/>
<source>Rename</source>
<translation>تغییر نام</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="650"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="659"/>
<source>Client name</source>
<translation>نام کلاینت</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="663"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="672"/>
<source>Save</source>
<translation>ذخیره</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="695"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="704"/>
<source>Revoke</source>
<translation>ابطال</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="698"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="707"/>
<source>Revoke the config for a user - %1?</source>
<translation> لغو پیکربندی برای یک کاربر %1؟</translation>
</message>
@@ -2208,17 +2216,17 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation type="vanished">ابطال تنظیمات برای کاربر </translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="699"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="708"/>
<source>The user will no longer be able to connect to your server.</source>
<translation>کاربر دیگر نمیتواند به سرور وصل شود.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="700"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="709"/>
<source>Continue</source>
<translation>ادامه</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="701"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="710"/>
<source>Cancel</source>
<translation>کنسل</translation>
</message>
@@ -2236,20 +2244,20 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation type="vanished">به اشتراک گذاری دسترسی به مدیریت سرور. کاربری که دسترسی کامل سرور با او به اشتراک گذاشته میشود میتواند پروتکلها و سرویسها را در سرور حذف یا اضافه کند و یا تنظیمات سرور را تغییر دهد.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="348"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="349"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="356"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="357"/>
<source>Protocol</source>
<translation>پروتکل</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="449"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="450"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="457"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="458"/>
<source>Connection format</source>
<translation>فرمت ارتباط</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="198"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="487"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="496"/>
<source>Share</source>
<translation>اشتراکگذاری</translation>
</message>
@@ -2627,91 +2635,113 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="32"/>
<source>Scp error: Generic failure</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Sftp error: End-of-file encountered</source>
<translation>Sftp error: End-of-file encountered</translation>
<translation type="vanished">Sftp error: End-of-file encountered</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="33"/>
<source>Sftp error: File does not exist</source>
<translation>Sftp error: File does not exist</translation>
<translation type="vanished">Sftp error: File does not exist</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="34"/>
<source>Sftp error: Permission denied</source>
<translation>Sftp error: Permission denied</translation>
<translation type="vanished">Sftp error: Permission denied</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="35"/>
<source>Sftp error: Generic failure</source>
<translation>Sftp error: Generic failure</translation>
<translation type="vanished">Sftp error: Generic failure</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="36"/>
<source>Sftp error: Garbage received from server</source>
<translation>Sftp error: Garbage received from server</translation>
<translation type="vanished">Sftp error: Garbage received from server</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="37"/>
<source>Sftp error: No connection has been set up</source>
<translation>Sftp error: No connection has been set up</translation>
<translation type="vanished">Sftp error: No connection has been set up</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="38"/>
<source>Sftp error: There was a connection, but we lost it</source>
<translation>Sftp error: There was a connection, but we lost it</translation>
<translation type="vanished">Sftp error: There was a connection, but we lost it</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="39"/>
<source>Sftp error: Operation not supported by libssh yet</source>
<translation>Sftp error: Operation not supported by libssh yet</translation>
<translation type="vanished">Sftp error: Operation not supported by libssh yet</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="40"/>
<source>Sftp error: Invalid file handle</source>
<translation>Sftp error: Invalid file handle</translation>
<translation type="vanished">Sftp error: Invalid file handle</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="41"/>
<source>Sftp error: No such file or directory path exists</source>
<translation>Sftp error: No such file or directory path exists</translation>
<translation type="vanished">Sftp error: No such file or directory path exists</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="42"/>
<source>Sftp error: An attempt to create an already existing file or directory has been made</source>
<translation>Sftp error: An attempt to create an already existing file or directory has been made</translation>
<translation type="vanished">Sftp error: An attempt to create an already existing file or directory has been made</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="43"/>
<source>Sftp error: Write-protected filesystem</source>
<translation>Sftp error: Write-protected filesystem</translation>
<translation type="vanished">Sftp error: Write-protected filesystem</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="44"/>
<source>Sftp error: No media was in remote drive</source>
<translation>Sftp error: No media was in remote drive</translation>
<translation type="vanished">Sftp error: No media was in remote drive</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="62"/>
<location filename="../core/errorstrings.cpp" line="50"/>
<source>The config does not contain any containers and credentials for connecting to the server</source>
<translation>تنظیمات شامل هیچ کانتینر یا اعتبارنامهای برای اتصال به سرور نیست</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="65"/>
<location filename="../core/errorstrings.cpp" line="53"/>
<source>VPN connection error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="68"/>
<location filename="../core/errorstrings.cpp" line="56"/>
<source>Error when retrieving configuration from API</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="69"/>
<location filename="../core/errorstrings.cpp" line="57"/>
<source>This config has already been added to the application</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="76"/>
<location filename="../core/errorstrings.cpp" line="60"/>
<source>QFile error: The file could not be opened</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="61"/>
<source>QFile error: An error occurred when reading from the file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="62"/>
<source>QFile error: The file could not be accessed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="63"/>
<source>QFile error: An unspecified error occurred</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="64"/>
<source>QFile error: A fatal error occurred</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="65"/>
<source>QFile error: The operation was aborted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="72"/>
<source>ErrorCode: %1. </source>
<translation type="unfinished"></translation>
</message>
@@ -2720,52 +2750,52 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation type="vanished">Failed to save config to disk</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="47"/>
<location filename="../core/errorstrings.cpp" line="35"/>
<source>OpenVPN config missing</source>
<translation>OpenVPN config missing</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="48"/>
<location filename="../core/errorstrings.cpp" line="36"/>
<source>OpenVPN management server error</source>
<translation>OpenVPN management server error</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="51"/>
<location filename="../core/errorstrings.cpp" line="39"/>
<source>OpenVPN executable missing</source>
<translation>OpenVPN executable missing</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="52"/>
<location filename="../core/errorstrings.cpp" line="40"/>
<source>ShadowSocks (ss-local) executable missing</source>
<translation>ShadowSocks (ss-local) executable missing</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="53"/>
<location filename="../core/errorstrings.cpp" line="41"/>
<source>Cloak (ck-client) executable missing</source>
<translation>Cloak (ck-client) executable missing</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="54"/>
<location filename="../core/errorstrings.cpp" line="42"/>
<source>Amnezia helper service error</source>
<translation>Amnezia helper service error</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="55"/>
<location filename="../core/errorstrings.cpp" line="43"/>
<source>OpenSSL failed</source>
<translation>OpenSSL failed</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="58"/>
<location filename="../core/errorstrings.cpp" line="46"/>
<source>Can&apos;t connect: another VPN connection is active</source>
<translation>Can&apos;t connect: another VPN connection is active</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="59"/>
<location filename="../core/errorstrings.cpp" line="47"/>
<source>Can&apos;t setup OpenVPN TAP network adapter</source>
<translation>Can&apos;t setup OpenVPN TAP network adapter</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="60"/>
<location filename="../core/errorstrings.cpp" line="48"/>
<source>VPN pool error: no available addresses</source>
<translation>VPN pool error: no available addresses</translation>
</message>
@@ -2774,7 +2804,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation type="vanished">The config does not contain any containers and credentiaks for connecting to the server</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="73"/>
<location filename="../core/errorstrings.cpp" line="69"/>
<source>Internal error</source>
<translation>Internal error</translation>
</message>
@@ -3153,8 +3183,8 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<translation>Server #1</translation>
</message>
<message>
<location filename="../settings.cpp" line="206"/>
<location filename="../settings.cpp" line="213"/>
<location filename="../settings.cpp" line="207"/>
<location filename="../settings.cpp" line="214"/>
<source>Server</source>
<translation>Server</translation>
</message>
@@ -3162,17 +3192,17 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<context>
<name>SettingsController</name>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="155"/>
<location filename="../ui/controllers/settingsController.cpp" line="140"/>
<source>All settings have been reset to default values</source>
<translation>تمام تنظیمات به مقادیر پیش فرض ریست شد</translation>
</message>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="161"/>
<location filename="../ui/controllers/settingsController.cpp" line="150"/>
<source>Cached profiles cleared</source>
<translation>پروفایل ذخیره شده پاک شد</translation>
</message>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="139"/>
<location filename="../ui/controllers/settingsController.cpp" line="123"/>
<source>Backup file is corrupted</source>
<translation>فایل بکآپ خراب شده است</translation>
</message>
@@ -3186,33 +3216,33 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<translation>ذخیره تنظیمات AmneziaVPN</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="74"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="85"/>
<source>Share</source>
<translation>اشتراکگذاری</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="108"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="121"/>
<source>Copy</source>
<translation>کپی</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="167"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="177"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="188"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="198"/>
<source>Copied</source>
<translation>کپی شد</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="126"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="141"/>
<source>Copy config string</source>
<translation>کپیکردن متن تنظیمات</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="141"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="160"/>
<source>Show connection settings</source>
<translation>نمایش تنظیمات ارتباط</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="305"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="328"/>
<source>To read the QR code in the Amnezia app, select &quot;Add server&quot; &quot;I have data to connect&quot; &quot;QR code, key or settings file&quot;</source>
<translation>برای خواندن QR Code در نرمافزار AmneziaVPN &quot;اضافه کردن سرور&quot; -&gt; &quot;من داده برای اتصال دارم&quot; -&gt; &quot;QR Code، کلید یا فایل تنظیمات&quot;</translation>
</message>
@@ -3304,7 +3334,7 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<context>
<name>VpnConnection</name>
<message>
<location filename="../vpnconnection.cpp" line="457"/>
<location filename="../vpnconnection.cpp" line="458"/>
<source>Mbps</source>
<translation>Mbps</translation>
</message>
@@ -3408,12 +3438,12 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<context>
<name>main2</name>
<message>
<location filename="../ui/qml/main2.qml" line="174"/>
<location filename="../ui/qml/main2.qml" line="179"/>
<source>Private key passphrase</source>
<translation>عبارت کلید خصوصی</translation>
</message>
<message>
<location filename="../ui/qml/main2.qml" line="197"/>
<location filename="../ui/qml/main2.qml" line="202"/>
<source>Save</source>
<translation>ذخیره</translation>
</message>

File diff suppressed because it is too large Load Diff

View File

@@ -27,47 +27,47 @@
<context>
<name>ConnectionController</name>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="40"/>
<location filename="../ui/controllers/connectionController.cpp" line="41"/>
<source>VPN Protocols is not installed.
Please install VPN container at first</source>
<translation>VPN протоколы не установлены.
Пожалуйста, установите протокол</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="64"/>
<location filename="../ui/controllers/connectionController.cpp" line="65"/>
<source>Connection...</source>
<translation>Подключение...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="69"/>
<location filename="../ui/controllers/connectionController.cpp" line="70"/>
<source>Connected</source>
<translation>Подключено</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="114"/>
<location filename="../ui/controllers/connectionController.cpp" line="115"/>
<source>Settings updated successfully, Reconnnection...</source>
<translation>Настройки успешно обновлены, Подключение...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="117"/>
<location filename="../ui/controllers/connectionController.cpp" line="118"/>
<source>Settings updated successfully</source>
<translation type="unfinished">Настройки успешно обновлены.</translation>
<translation>Настройки успешно обновлены.</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="78"/>
<location filename="../ui/controllers/connectionController.cpp" line="79"/>
<source>Reconnection...</source>
<translation>Переподключение...</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.h" line="62"/>
<location filename="../ui/controllers/connectionController.cpp" line="83"/>
<location filename="../ui/controllers/connectionController.cpp" line="97"/>
<location filename="../ui/controllers/connectionController.cpp" line="103"/>
<location filename="../ui/controllers/connectionController.cpp" line="84"/>
<location filename="../ui/controllers/connectionController.cpp" line="98"/>
<location filename="../ui/controllers/connectionController.cpp" line="104"/>
<source>Connect</source>
<translation>Подключиться</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="88"/>
<location filename="../ui/controllers/connectionController.cpp" line="89"/>
<source>Disconnection...</source>
<translation>Отключение...</translation>
</message>
@@ -143,7 +143,7 @@
<message>
<location filename="../ui/qml/Components/HomeSplitTunnelingDrawer.qml" line="32"/>
<source>Split tunneling</source>
<translation type="unfinished">Раздельное VPN-туннелирование</translation>
<translation>Раздельное-туннелирование</translation>
</message>
<message>
<location filename="../ui/qml/Components/HomeSplitTunnelingDrawer.qml" line="33"/>
@@ -153,33 +153,34 @@
<message>
<location filename="../ui/qml/Components/HomeSplitTunnelingDrawer.qml" line="42"/>
<source>Split tunneling on the server</source>
<translation type="unfinished"></translation>
<translation>Раздельное-туннелирование на сервере</translation>
</message>
<message>
<location filename="../ui/qml/Components/HomeSplitTunnelingDrawer.qml" line="43"/>
<source>Enabled
Can&apos;t be disabled for current server</source>
<translation type="unfinished"></translation>
<translation>Включено.
Не может быть отключено для текущего сервера.</translation>
</message>
<message>
<location filename="../ui/qml/Components/HomeSplitTunnelingDrawer.qml" line="62"/>
<source>Site-based split tunneling</source>
<translation type="unfinished">Раздельное туннелирование сайтов</translation>
<translation>Раздельное туннелирование по сайтам</translation>
</message>
<message>
<location filename="../ui/qml/Components/HomeSplitTunnelingDrawer.qml" line="63"/>
<source>Enabled</source>
<translation type="unfinished">Включено</translation>
<translation>Включено</translation>
</message>
<message>
<location filename="../ui/qml/Components/HomeSplitTunnelingDrawer.qml" line="63"/>
<source>Disabled</source>
<translation type="unfinished">Отключено</translation>
<translation>Отключено</translation>
</message>
<message>
<location filename="../ui/qml/Components/HomeSplitTunnelingDrawer.qml" line="79"/>
<source>App-based split tunneling</source>
<translation type="unfinished">Раздельное VPN-туннелирование приложений</translation>
<translation>Раздельное VPN-туннелирование по приложениям</translation>
</message>
</context>
<context>
@@ -208,7 +209,7 @@ Can&apos;t be disabled for current server</source>
<location filename="../ui/controllers/installController.cpp" line="149"/>
<source>
Added containers that were already installed on the server</source>
<translation type="unfinished">Добавлены сервисы и протоколы, которые были ранее установлены на сервер</translation>
<translation>Добавлены сервисы и протоколы, которые были ранее установлены на сервер</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="213"/>
@@ -225,7 +226,7 @@ Already installed containers were found on the server. All installed containers
<message>
<location filename="../ui/controllers/installController.cpp" line="305"/>
<source>Server &apos;%1&apos; was rebooted</source>
<translation type="unfinished"></translation>
<translation>Сервер &apos;%1&apos; перезагружен</translation>
</message>
<message>
<location filename="../ui/controllers/installController.cpp" line="314"/>
@@ -326,17 +327,17 @@ Already installed containers were found on the server. All installed containers
<translation type="unfinished">Раздельное туннелирование выключено</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="224"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="223"/>
<source>VPN protocol</source>
<translation>VPN протокол</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="272"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="271"/>
<source>Servers</source>
<translation>Серверы</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="360"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="359"/>
<source>Unable change server while there is an active connection</source>
<translation>Невозможно изменить сервер при активном соединении</translation>
</message>
@@ -931,7 +932,7 @@ Already installed containers were found on the server. All installed containers
<message>
<location filename="../ui/qml/Pages2/PageSettingsAbout.qml" line="56"/>
<source>Support Amnezia</source>
<translation type="unfinished">Поддержите Amnezia</translation>
<translation>Поддержите Amnezia</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsAbout.qml" line="71"/>
@@ -1458,7 +1459,7 @@ Already installed containers were found on the server. All installed containers
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="203"/>
<source>Do you want to clear server from Amnezia software?</source>
<source>Do you want to clear server Amnezia-installed services?</source>
<translation type="unfinished">Вы хотите очистить сервер от всех сервисов Amnezia?</translation>
</message>
<message>
@@ -1473,12 +1474,12 @@ Already installed containers were found on the server. All installed containers
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="169"/>
<source>Remove server from application</source>
<source>Remove this server from the app</source>
<translation>Удалить сервер из приложения</translation>
</message>
<message>
<source>Remove server?</source>
<translation type="vanished">Удалить сервер?</translation>
<source>Remove server from application?</source>
<translation type="vanished">Удалить сервер из приложения?</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="174"/>
@@ -1487,11 +1488,11 @@ Already installed containers were found on the server. All installed containers
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="199"/>
<source>Clear server from Amnezia software</source>
<source>Clear server Amnezia-installed services</source>
<translation>Очистить сервер от протоколов и сервисов Amnezia</translation>
</message>
<message>
<source>Clear server from Amnezia software?</source>
<source>Clear server Amnezia-installed services?</source>
<translation type="vanished">Удалить все сервисы и протоколы Amnezia с сервера?</translation>
</message>
<message>
@@ -1690,41 +1691,45 @@ Already installed containers were found on the server. All installed containers
<translation>Подключение к серверу</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="51"/>
<source>Do not use connection code from public sources. It may have been created to intercept your data.
It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation>Не используйте код подключения из публичных источников. Его могли создать, чтобы перехватить ваши данные.
<translation type="vanished">Не используйте код подключения из публичных источников. Его могли создать, чтобы перехватить ваши данные.
Всё в порядке, если кодом поделился пользователь, которому вы доверяете.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="61"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="51"/>
<source>Do not use connection codes from untrusted sources, as they may be created to intercept your data.</source>
<translation>Не используйте код подключения из недоверенных источников. Его могли создать, чтобы перехватить ваши данные.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="60"/>
<source>What do you have?</source>
<translation>Выберите что у вас есть</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="68"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="67"/>
<source>File with connection settings</source>
<translation>Файл с настройками подключения</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="68"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="67"/>
<source>File with connection settings or backup</source>
<translation>Файл с настройками подключения или бэкап</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="75"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="74"/>
<source>Open config file</source>
<translation>Открыть файл с конфигурацией</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="95"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="94"/>
<source>QR-code</source>
<translation>QR-код</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="114"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="113"/>
<source>Key as text</source>
<translation>Ключ в виде текста</translation>
</message>
@@ -1771,7 +1776,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardCredentials.qml" line="46"/>
<source>Configure your server</source>
<translation>Настроить ваш сервер</translation>
<translation>Настроить свой сервер</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardCredentials.qml" line="54"/>
@@ -1827,7 +1832,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation>Продолжить</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardEasy.qml" line="198"/>
<location filename="../ui/qml/Pages2/PageSetupWizardEasy.qml" line="197"/>
<source>Set up later</source>
<translation>Настроить позднее</translation>
</message>
@@ -1936,32 +1941,32 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<context>
<name>PageSetupWizardStart</name>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="54"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="64"/>
<source>Settings restored from backup file</source>
<translation>Восстановление настроек из бэкап файла</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="106"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="116"/>
<source>Free service for creating a personal VPN on your server.</source>
<translation>Простое и бесплатное приложение для запуска self-hosted VPN с высокими требованиями к приватности.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="107"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="117"/>
<source> Helps you access blocked content without revealing your privacy, even to VPN providers.</source>
<translation> Помогает получить доступ к заблокированному контенту, не раскрывая вашу конфиденциальность даже провайдерам VPN.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="116"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="126"/>
<source>I have the data to connect</source>
<translation>У меня есть данные для подключения</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="136"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="146"/>
<source>I have nothing</source>
<translation>У меня ничего нет</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="139"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="149"/>
<source>https://amnezia.org/instructions/0_starter-guide</source>
<translation type="unfinished"></translation>
</message>
@@ -2002,9 +2007,13 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation>Новое соединение</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="95"/>
<source>Do not use connection code from public sources. It could be created to intercept your data.</source>
<translation>Не используйте код подключения из публичных источников. Его могли создать, чтобы перехватить ваши данные.</translation>
<translation type="vanished">Не используйте код подключения из публичных источников. Его могли создать, чтобы перехватить ваши данные.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="95"/>
<source>Do not use connection codes from untrusted sources, as they may be created to intercept your data.</source>
<translation>Не используйте код подключения из недоверенных источников. Его могли создать, чтобы перехватить ваши данные.</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="110"/>
@@ -2138,7 +2147,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="243"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="504"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="513"/>
<source>Users</source>
<translation type="unfinished">Пользователи</translation>
</message>
@@ -2148,52 +2157,52 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation type="unfinished">Имя пользователя</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="520"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="529"/>
<source>Search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="604"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="613"/>
<source>Creation date: </source>
<translation type="unfinished">Дата создания</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="618"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="627"/>
<source>Rename</source>
<translation type="unfinished">Переименовать</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="650"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="659"/>
<source>Client name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="663"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="672"/>
<source>Save</source>
<translation type="unfinished">Сохранить</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="695"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="704"/>
<source>Revoke</source>
<translation type="unfinished">Отозвать</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="698"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="707"/>
<source>Revoke the config for a user - %1?</source>
<translation type="unfinished">Отозвать доступ для пользователя - %1?</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="699"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="708"/>
<source>The user will no longer be able to connect to your server.</source>
<translation type="unfinished">Пользователь больше не сможет подключаться к вашему серверу</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="700"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="709"/>
<source>Continue</source>
<translation type="unfinished">Продолжить</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="701"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="710"/>
<source>Cancel</source>
<translation type="unfinished">Отменить</translation>
</message>
@@ -2207,20 +2216,20 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation>Поделиться доступом к VPN, без возможности управления сервером</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="348"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="349"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="356"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="357"/>
<source>Protocol</source>
<translation>Протокол</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="449"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="450"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="457"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="458"/>
<source>Connection format</source>
<translation>Формат подключения</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="198"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="487"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="496"/>
<source>Share</source>
<translation>Поделиться</translation>
</message>
@@ -2597,86 +2606,78 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="32"/>
<source>Scp error: Generic failure</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Sftp error: End-of-file encountered</source>
<translation>Sftp error: End-of-file encountered</translation>
<translation type="vanished">Sftp error: End-of-file encountered</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="33"/>
<source>Sftp error: File does not exist</source>
<translation>Sftp error: File does not exist</translation>
<translation type="vanished">Sftp error: File does not exist</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="34"/>
<source>Sftp error: Permission denied</source>
<translation>Sftp error: Permission denied</translation>
<translation type="vanished">Sftp error: Permission denied</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="35"/>
<source>Sftp error: Generic failure</source>
<translation>Sftp error: Generic failure</translation>
<translation type="vanished">Sftp error: Generic failure</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="36"/>
<source>Sftp error: Garbage received from server</source>
<translation>Sftp error: Garbage received from server</translation>
<translation type="vanished">Sftp error: Garbage received from server</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="37"/>
<source>Sftp error: No connection has been set up</source>
<translation>Sftp error: No connection has been set up</translation>
<translation type="vanished">Sftp error: No connection has been set up</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="38"/>
<source>Sftp error: There was a connection, but we lost it</source>
<translation>Sftp error: There was a connection, but we lost it</translation>
<translation type="vanished">Sftp error: There was a connection, but we lost it</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="39"/>
<source>Sftp error: Operation not supported by libssh yet</source>
<translation>Sftp error: Operation not supported by libssh yet</translation>
<translation type="vanished">Sftp error: Operation not supported by libssh yet</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="40"/>
<source>Sftp error: Invalid file handle</source>
<translation>Sftp error: Invalid file handle</translation>
<translation type="vanished">Sftp error: Invalid file handle</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="41"/>
<source>Sftp error: No such file or directory path exists</source>
<translation>Sftp error: No such file or directory path exists</translation>
<translation type="vanished">Sftp error: No such file or directory path exists</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="42"/>
<source>Sftp error: An attempt to create an already existing file or directory has been made</source>
<translation>Sftp error: An attempt to create an already existing file or directory has been made</translation>
<translation type="vanished">Sftp error: An attempt to create an already existing file or directory has been made</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="43"/>
<source>Sftp error: Write-protected filesystem</source>
<translation>Sftp error: Write-protected filesystem</translation>
<translation type="vanished">Sftp error: Write-protected filesystem</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="44"/>
<source>Sftp error: No media was in remote drive</source>
<translation>Sftp error: No media was in remote drive</translation>
<translation type="vanished">Sftp error: No media was in remote drive</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="62"/>
<location filename="../core/errorstrings.cpp" line="50"/>
<source>The config does not contain any containers and credentials for connecting to the server</source>
<translation type="unfinished">Конфиг не содержит контейнеров и учетных данных для подключения к серверу</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="68"/>
<location filename="../core/errorstrings.cpp" line="56"/>
<source>Error when retrieving configuration from API</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="69"/>
<location filename="../core/errorstrings.cpp" line="57"/>
<source>This config has already been added to the application</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="76"/>
<location filename="../core/errorstrings.cpp" line="72"/>
<source>ErrorCode: %1. </source>
<translation type="unfinished"></translation>
</message>
@@ -2685,62 +2686,92 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation type="vanished">Failed to save config to disk</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="47"/>
<location filename="../core/errorstrings.cpp" line="35"/>
<source>OpenVPN config missing</source>
<translation>OpenVPN config missing</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="48"/>
<location filename="../core/errorstrings.cpp" line="36"/>
<source>OpenVPN management server error</source>
<translation>OpenVPN management server error</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="51"/>
<location filename="../core/errorstrings.cpp" line="39"/>
<source>OpenVPN executable missing</source>
<translation>OpenVPN executable missing</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="52"/>
<location filename="../core/errorstrings.cpp" line="40"/>
<source>ShadowSocks (ss-local) executable missing</source>
<translation>ShadowSocks (ss-local) executable missing</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="53"/>
<location filename="../core/errorstrings.cpp" line="41"/>
<source>Cloak (ck-client) executable missing</source>
<translation>Cloak (ck-client) executable missing</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="54"/>
<location filename="../core/errorstrings.cpp" line="42"/>
<source>Amnezia helper service error</source>
<translation>Amnezia helper service error</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="55"/>
<location filename="../core/errorstrings.cpp" line="43"/>
<source>OpenSSL failed</source>
<translation>OpenSSL failed</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="58"/>
<location filename="../core/errorstrings.cpp" line="46"/>
<source>Can&apos;t connect: another VPN connection is active</source>
<translation>Can&apos;t connect: another VPN connection is active</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="59"/>
<location filename="../core/errorstrings.cpp" line="47"/>
<source>Can&apos;t setup OpenVPN TAP network adapter</source>
<translation>Can&apos;t setup OpenVPN TAP network adapter</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="60"/>
<location filename="../core/errorstrings.cpp" line="48"/>
<source>VPN pool error: no available addresses</source>
<translation>VPN pool error: no available addresses</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="65"/>
<location filename="../core/errorstrings.cpp" line="53"/>
<source>VPN connection error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="73"/>
<location filename="../core/errorstrings.cpp" line="60"/>
<source>QFile error: The file could not be opened</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="61"/>
<source>QFile error: An error occurred when reading from the file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="62"/>
<source>QFile error: The file could not be accessed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="63"/>
<source>QFile error: An unspecified error occurred</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="64"/>
<source>QFile error: A fatal error occurred</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="65"/>
<source>QFile error: The operation was aborted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="69"/>
<source>Internal error</source>
<translation>Internal error</translation>
</message>
@@ -3077,8 +3108,8 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<translation>Server #1</translation>
</message>
<message>
<location filename="../settings.cpp" line="206"/>
<location filename="../settings.cpp" line="213"/>
<location filename="../settings.cpp" line="207"/>
<location filename="../settings.cpp" line="214"/>
<source>Server</source>
<translation>Server</translation>
</message>
@@ -3086,17 +3117,17 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<context>
<name>SettingsController</name>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="155"/>
<location filename="../ui/controllers/settingsController.cpp" line="140"/>
<source>All settings have been reset to default values</source>
<translation>Все настройки были сброшены к значению &quot;По умолчанию&quot;</translation>
</message>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="161"/>
<location filename="../ui/controllers/settingsController.cpp" line="150"/>
<source>Cached profiles cleared</source>
<translation>Кэш профиля очищен</translation>
</message>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="139"/>
<location filename="../ui/controllers/settingsController.cpp" line="123"/>
<source>Backup file is corrupted</source>
<translation>Backup файл поврежден</translation>
</message>
@@ -3110,33 +3141,33 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<translation>Сохранить config AmneziaVPN</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="74"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="85"/>
<source>Share</source>
<translation>Поделиться</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="108"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="121"/>
<source>Copy</source>
<translation>Скопировать</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="167"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="177"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="188"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="198"/>
<source>Copied</source>
<translation>Скопировано</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="126"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="141"/>
<source>Copy config string</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="141"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="160"/>
<source>Show connection settings</source>
<translation type="unfinished">Показать настройки подключения</translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="305"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="328"/>
<source>To read the QR code in the Amnezia app, select &quot;Add server&quot; &quot;I have data to connect&quot; &quot;QR code, key or settings file&quot;</source>
<translation>Для считывания QR-кода в приложении Amnezia выберите &quot;Добавить сервер&quot; &quot;У меня есть данные для подключения&quot; &quot;QR-код, ключ или файл настроек&quot;</translation>
</message>
@@ -3228,7 +3259,7 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<context>
<name>VpnConnection</name>
<message>
<location filename="../vpnconnection.cpp" line="457"/>
<location filename="../vpnconnection.cpp" line="458"/>
<source>Mbps</source>
<translation>Mbps</translation>
</message>
@@ -3332,12 +3363,12 @@ This means that AmneziaWG keeps the fast performance of the original while addin
<context>
<name>main2</name>
<message>
<location filename="../ui/qml/main2.qml" line="174"/>
<location filename="../ui/qml/main2.qml" line="179"/>
<source>Private key passphrase</source>
<translation>Кодовая фраза для закрытого ключа</translation>
</message>
<message>
<location filename="../ui/qml/main2.qml" line="197"/>
<location filename="../ui/qml/main2.qml" line="202"/>
<source>Save</source>
<translation>Сохранить</translation>
</message>

View File

@@ -20,45 +20,45 @@
<name>ConnectionController</name>
<message>
<location filename="../ui/controllers/connectionController.h" line="62"/>
<location filename="../ui/controllers/connectionController.cpp" line="83"/>
<location filename="../ui/controllers/connectionController.cpp" line="97"/>
<location filename="../ui/controllers/connectionController.cpp" line="103"/>
<location filename="../ui/controllers/connectionController.cpp" line="84"/>
<location filename="../ui/controllers/connectionController.cpp" line="98"/>
<location filename="../ui/controllers/connectionController.cpp" line="104"/>
<source>Connect</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="40"/>
<location filename="../ui/controllers/connectionController.cpp" line="41"/>
<source>VPN Protocols is not installed.
Please install VPN container at first</source>
<translation>VPN协议</translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="64"/>
<location filename="../ui/controllers/connectionController.cpp" line="65"/>
<source>Connection...</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="69"/>
<location filename="../ui/controllers/connectionController.cpp" line="70"/>
<source>Connected</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="78"/>
<location filename="../ui/controllers/connectionController.cpp" line="79"/>
<source>Reconnection...</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="88"/>
<location filename="../ui/controllers/connectionController.cpp" line="89"/>
<source>Disconnection...</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="114"/>
<location filename="../ui/controllers/connectionController.cpp" line="115"/>
<source>Settings updated successfully, Reconnnection...</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/connectionController.cpp" line="117"/>
<location filename="../ui/controllers/connectionController.cpp" line="118"/>
<source>Settings updated successfully</source>
<translation type="unfinished"></translation>
</message>
@@ -353,17 +353,17 @@ Already installed containers were found on the server. All installed containers
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="224"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="223"/>
<source>VPN protocol</source>
<translation>VPN协议</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="272"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="271"/>
<source>Servers</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageHome.qml" line="360"/>
<location filename="../ui/qml/Pages2/PageHome.qml" line="359"/>
<source>Unable change server while there is an active connection</source>
<translation></translation>
</message>
@@ -1493,7 +1493,7 @@ And if you don&apos;t like the app, all the more support it - the donation will
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="203"/>
<source>Do you want to clear server from Amnezia software?</source>
<source>Do you want to clear server Amnezia-installed services?</source>
<translation>Amnezia软件吗</translation>
</message>
<message>
@@ -1541,7 +1541,7 @@ And if you don&apos;t like the app, all the more support it - the donation will
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="169"/>
<source>Remove server from application</source>
<source>Remove this server from the app</source>
<translation></translation>
</message>
<message>
@@ -1560,7 +1560,7 @@ And if you don&apos;t like the app, all the more support it - the donation will
<translation type="unfinished"></translation>
</message>
<message>
<source>Remove server?</source>
<source>Remove server from application?</source>
<translation type="vanished">?</translation>
</message>
<message>
@@ -1570,11 +1570,11 @@ And if you don&apos;t like the app, all the more support it - the donation will
</message>
<message>
<location filename="../ui/qml/Pages2/PageSettingsServerData.qml" line="199"/>
<source>Clear server from Amnezia software</source>
<source>Clear server Amnezia-installed services</source>
<translation>Amnezia中服务器信息</translation>
</message>
<message>
<source>Clear server from Amnezia software?</source>
<source>Clear server Amnezia-installed services?</source>
<translation type="vanished">Amnezia中服务器信息</translation>
</message>
<message>
@@ -1797,40 +1797,44 @@ And if you don&apos;t like the app, all the more support it - the donation will
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="51"/>
<source>Do not use connection code from public sources. It may have been created to intercept your data.
It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation>使
<translation type="vanished">使
</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="61"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="51"/>
<source>Do not use connection codes from untrusted sources, as they may be created to intercept your data.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="60"/>
<source>What do you have?</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="68"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="67"/>
<source>File with connection settings or backup</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="68"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="67"/>
<source>File with connection settings</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="75"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="74"/>
<source>Open config file</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="95"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="94"/>
<source>QR-code</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="114"/>
<location filename="../ui/qml/Pages2/PageSetupWizardConfigSource.qml" line="113"/>
<source>Key as text</source>
<translation></translation>
</message>
@@ -1930,7 +1934,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardEasy.qml" line="198"/>
<location filename="../ui/qml/Pages2/PageSetupWizardEasy.qml" line="197"/>
<source>Set up later</source>
<translation></translation>
</message>
@@ -2039,32 +2043,32 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<context>
<name>PageSetupWizardStart</name>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="54"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="64"/>
<source>Settings restored from backup file</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="106"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="116"/>
<source>Free service for creating a personal VPN on your server.</source>
<translation>VPN服务</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="107"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="117"/>
<source> Helps you access blocked content without revealing your privacy, even to VPN providers.</source>
<translation>访使VPN提供商也无法获取</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="116"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="126"/>
<source>I have the data to connect</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="136"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="146"/>
<source>I have nothing</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="139"/>
<location filename="../ui/qml/Pages2/PageSetupWizardStart.qml" line="149"/>
<source>https://amnezia.org/instructions/0_starter-guide</source>
<translation type="unfinished"></translation>
</message>
@@ -2105,9 +2109,13 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="95"/>
<source>Do not use connection code from public sources. It could be created to intercept your data.</source>
<translation>使</translation>
<translation type="vanished">使</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="95"/>
<source>Do not use connection codes from untrusted sources, as they may be created to intercept your data.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardViewConfig.qml" line="110"/>
@@ -2199,7 +2207,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="243"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="504"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="513"/>
<source>Users</source>
<translation></translation>
</message>
@@ -2209,52 +2217,52 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation> VPN 访</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="520"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="529"/>
<source>Search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="604"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="613"/>
<source>Creation date: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="618"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="627"/>
<source>Rename</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="650"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="659"/>
<source>Client name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="663"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="672"/>
<source>Save</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="695"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="704"/>
<source>Revoke</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="698"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="707"/>
<source>Revoke the config for a user - %1?</source>
<translation>- %1?</translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="699"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="708"/>
<source>The user will no longer be able to connect to your server.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="700"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="709"/>
<source>Continue</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="701"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="710"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
@@ -2319,8 +2327,8 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="348"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="349"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="356"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="357"/>
<source>Protocol</source>
<translation></translation>
</message>
@@ -2340,14 +2348,14 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="449"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="450"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="457"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="458"/>
<source>Connection format</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageShare.qml" line="198"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="487"/>
<location filename="../ui/qml/Pages2/PageShare.qml" line="496"/>
<source>Share</source>
<translation></translation>
</message>
@@ -2729,86 +2737,108 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="32"/>
<source>Scp error: Generic failure</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Sftp error: End-of-file encountered</source>
<translation>Sftp错误: End-of-file encountered</translation>
<translation type="vanished">Sftp错误: End-of-file encountered</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="33"/>
<source>Sftp error: File does not exist</source>
<translation>Sftp错误: 文件不存在</translation>
<translation type="vanished">Sftp错误: 文件不存在</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="34"/>
<source>Sftp error: Permission denied</source>
<translation>Sftp错误: 权限不足</translation>
<translation type="vanished">Sftp错误: 权限不足</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="35"/>
<source>Sftp error: Generic failure</source>
<translation>Sftp错误: 一般失败</translation>
<translation type="vanished">Sftp错误: 一般失败</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="36"/>
<source>Sftp error: Garbage received from server</source>
<translation>Sftp错误: 从服务器收到垃圾信息</translation>
<translation type="vanished">Sftp错误: 从服务器收到垃圾信息</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="37"/>
<source>Sftp error: No connection has been set up</source>
<translation>Sftp 错误: 未建立连接</translation>
<translation type="vanished">Sftp 错误: 未建立连接</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="38"/>
<source>Sftp error: There was a connection, but we lost it</source>
<translation>Sftp 错误: 已有连接丢失</translation>
<translation type="vanished">Sftp 错误: 已有连接丢失</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="39"/>
<source>Sftp error: Operation not supported by libssh yet</source>
<translation>Sftp error: libssh不支持该操作</translation>
<translation type="vanished">Sftp error: libssh不支持该操作</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="40"/>
<source>Sftp error: Invalid file handle</source>
<translation>Sftp error: 无效的文件句柄</translation>
<translation type="vanished">Sftp error: 无效的文件句柄</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="41"/>
<source>Sftp error: No such file or directory path exists</source>
<translation>Sftp 错误: 文件夹或文件不存在</translation>
<translation type="vanished">Sftp 错误: 文件夹或文件不存在</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="42"/>
<source>Sftp error: An attempt to create an already existing file or directory has been made</source>
<translation>Sftp 错误: 文件或目录已存在</translation>
<translation type="vanished">Sftp 错误: 文件或目录已存在</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="43"/>
<source>Sftp error: Write-protected filesystem</source>
<translation>Sftp 错误: 文件系统写保护</translation>
<translation type="vanished">Sftp 错误: 文件系统写保护</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="44"/>
<source>Sftp error: No media was in remote drive</source>
<translation>Sftp 错误: 远程驱动器中没有媒介</translation>
<translation type="vanished">Sftp 错误: 远程驱动器中没有媒介</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="65"/>
<location filename="../core/errorstrings.cpp" line="53"/>
<source>VPN connection error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="68"/>
<location filename="../core/errorstrings.cpp" line="56"/>
<source>Error when retrieving configuration from API</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="69"/>
<location filename="../core/errorstrings.cpp" line="57"/>
<source>This config has already been added to the application</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="76"/>
<location filename="../core/errorstrings.cpp" line="60"/>
<source>QFile error: The file could not be opened</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="61"/>
<source>QFile error: An error occurred when reading from the file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="62"/>
<source>QFile error: The file could not be accessed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="63"/>
<source>QFile error: An unspecified error occurred</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="64"/>
<source>QFile error: A fatal error occurred</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="65"/>
<source>QFile error: The operation was aborted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="72"/>
<source>ErrorCode: %1. </source>
<translation type="unfinished"></translation>
</message>
@@ -2817,57 +2847,57 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="47"/>
<location filename="../core/errorstrings.cpp" line="35"/>
<source>OpenVPN config missing</source>
<translation>OpenVPN配置丢失</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="48"/>
<location filename="../core/errorstrings.cpp" line="36"/>
<source>OpenVPN management server error</source>
<translation>OpenVPN </translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="51"/>
<location filename="../core/errorstrings.cpp" line="39"/>
<source>OpenVPN executable missing</source>
<translation>OpenVPN </translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="52"/>
<location filename="../core/errorstrings.cpp" line="40"/>
<source>ShadowSocks (ss-local) executable missing</source>
<translation>ShadowSocks (ss-local) </translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="53"/>
<location filename="../core/errorstrings.cpp" line="41"/>
<source>Cloak (ck-client) executable missing</source>
<translation>Cloak (ck-client) </translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="54"/>
<location filename="../core/errorstrings.cpp" line="42"/>
<source>Amnezia helper service error</source>
<translation>Amnezia </translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="55"/>
<location filename="../core/errorstrings.cpp" line="43"/>
<source>OpenSSL failed</source>
<translation>OpenSSL错误</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="58"/>
<location filename="../core/errorstrings.cpp" line="46"/>
<source>Can&apos;t connect: another VPN connection is active</source>
<translation>VPN连接处于活跃状态</translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="59"/>
<location filename="../core/errorstrings.cpp" line="47"/>
<source>Can&apos;t setup OpenVPN TAP network adapter</source>
<translation> OpenVPN TAP </translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="60"/>
<location filename="../core/errorstrings.cpp" line="48"/>
<source>VPN pool error: no available addresses</source>
<translation>VPN </translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="62"/>
<location filename="../core/errorstrings.cpp" line="50"/>
<source>The config does not contain any containers and credentials for connecting to the server</source>
<translation></translation>
</message>
@@ -2876,7 +2906,7 @@ and will not be shared or disclosed to the Amnezia or any third parties</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../core/errorstrings.cpp" line="73"/>
<location filename="../core/errorstrings.cpp" line="69"/>
<source>Internal error</source>
<translation></translation>
</message>
@@ -3245,8 +3275,8 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<translation></translation>
</message>
<message>
<location filename="../settings.cpp" line="206"/>
<location filename="../settings.cpp" line="213"/>
<location filename="../settings.cpp" line="207"/>
<location filename="../settings.cpp" line="214"/>
<source>Server</source>
<translation></translation>
</message>
@@ -3254,17 +3284,17 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<context>
<name>SettingsController</name>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="139"/>
<location filename="../ui/controllers/settingsController.cpp" line="123"/>
<source>Backup file is corrupted</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="155"/>
<location filename="../ui/controllers/settingsController.cpp" line="140"/>
<source>All settings have been reset to default values</source>
<translation></translation>
</message>
<message>
<location filename="../ui/controllers/settingsController.cpp" line="161"/>
<location filename="../ui/controllers/settingsController.cpp" line="150"/>
<source>Cached profiles cleared</source>
<translation></translation>
</message>
@@ -3278,28 +3308,28 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="74"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="85"/>
<source>Share</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="108"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="121"/>
<source>Copy</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="167"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="177"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="188"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="198"/>
<source>Copied</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="126"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="141"/>
<source>Copy config string</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="141"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="160"/>
<source>Show connection settings</source>
<translation></translation>
</message>
@@ -3308,7 +3338,7 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="305"/>
<location filename="../ui/qml/Components/ShareConnectionDrawer.qml" line="328"/>
<source>To read the QR code in the Amnezia app, select &quot;Add server&quot; &quot;I have data to connect&quot; &quot;QR code, key or settings file&quot;</source>
<translation> Amnezia+</translation>
</message>
@@ -3400,7 +3430,7 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<context>
<name>VpnConnection</name>
<message>
<location filename="../vpnconnection.cpp" line="457"/>
<location filename="../vpnconnection.cpp" line="458"/>
<source>Mbps</source>
<translation></translation>
</message>
@@ -3504,12 +3534,12 @@ While it offers a blend of security, stability, and speed, it&apos;s essential t
<context>
<name>main2</name>
<message>
<location filename="../ui/qml/main2.qml" line="174"/>
<location filename="../ui/qml/main2.qml" line="179"/>
<source>Private key passphrase</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/main2.qml" line="197"/>
<location filename="../ui/qml/main2.qml" line="202"/>
<source>Save</source>
<translation></translation>
</message>

View File

@@ -90,7 +90,7 @@ void ApiController::updateServerConfigFromApi()
request.setRawHeader("Authorization",
"Api-Key " + serverConfig.value(configKey::accessToken).toString().toUtf8());
QString endpoint = serverConfig.value(configKey::apiEdnpoint).toString();
request.setUrl(endpoint.replace("https", "http")); // todo remove
request.setUrl(endpoint);
QString protocol = serverConfig.value(configKey::protocol).toString();
@@ -138,7 +138,10 @@ void ApiController::updateServerConfigFromApi()
serverConfig.insert(config_key::defaultContainer, defaultContainer);
m_serversModel->editServer(serverConfig, m_serversModel->getDefaultServerIndex());
} else {
QString err = reply->errorString();
qDebug() << QString::fromUtf8(reply->readAll());
qDebug() << reply->error();
qDebug() << err;
qDebug() << reply->attribute(QNetworkRequest::HttpStatusCodeAttribute);
emit errorOccurred(errorString(ApiConfigDownloadError));
m_isConfigUpdateStarted = false;

View File

@@ -7,9 +7,7 @@
#include "ui/qautostart.h"
#include "version.h"
#ifdef Q_OS_ANDROID
#include "platforms/android/android_utils.h"
#include "platforms/android/android_controller.h"
#include <QJniObject>
#endif
#ifdef Q_OS_IOS
@@ -29,20 +27,6 @@ SettingsController::SettingsController(const QSharedPointer<ServersModel> &serve
m_settings(settings)
{
m_appVersion = QString("%1 (%2, %3)").arg(QString(APP_VERSION), __DATE__, GIT_COMMIT_HASH);
#ifdef Q_OS_ANDROID
if (!m_settings->isScreenshotsEnabled()) {
// Set security screen for Android app
AndroidUtils::runOnAndroidThreadSync([]() {
QJniObject activity = AndroidUtils::getActivity();
QJniObject window = activity.callObjectMethod("getWindow", "()Landroid/view/Window;");
if (window.isValid()) {
const int FLAG_SECURE = 8192;
window.callMethod<void>("addFlags", "(I)V", FLAG_SECURE);
}
});
}
#endif
}
void SettingsController::toggleAmneziaDns(bool enable)
@@ -204,19 +188,6 @@ bool SettingsController::isScreenshotsEnabled()
void SettingsController::toggleScreenshotsEnabled(bool enable)
{
m_settings->setScreenshotsEnabled(enable);
#ifdef Q_OS_ANDROID
std::string command = enable ? "clearFlags" : "addFlags";
// Set security screen for Android app
AndroidUtils::runOnAndroidThreadSync([&command]() {
QJniObject activity = AndroidUtils::getActivity();
QJniObject window = activity.callObjectMethod("getWindow", "()Landroid/view/Window;");
if (window.isValid()) {
const int FLAG_SECURE = 8192;
window.callMethod<void>(command.c_str(), "(I)V", FLAG_SECURE);
}
});
#endif
}
bool SettingsController::isCameraPresent()

View File

@@ -46,6 +46,7 @@ QString LanguageModel::getLocalLanguageName(const LanguageSettings::AvailableLan
case LanguageSettings::AvailableLanguageEnum::China_cn: strLanguage = "\347\256\200\344\275\223\344\270\255\346\226\207"; break;
case LanguageSettings::AvailableLanguageEnum::Persian: strLanguage = "فارسی"; break;
case LanguageSettings::AvailableLanguageEnum::Arabic: strLanguage = "العربية"; break;
case LanguageSettings::AvailableLanguageEnum::Burmese: strLanguage = "မြန်မာဘာသာ"; break;
default:
break;
}
@@ -61,6 +62,7 @@ void LanguageModel::changeLanguage(const LanguageSettings::AvailableLanguageEnum
case LanguageSettings::AvailableLanguageEnum::China_cn: emit updateTranslations(QLocale::Chinese); break;
case LanguageSettings::AvailableLanguageEnum::Persian: emit updateTranslations(QLocale::Persian); break;
case LanguageSettings::AvailableLanguageEnum::Arabic: emit updateTranslations(QLocale::Arabic); break;
case LanguageSettings::AvailableLanguageEnum::Burmese: emit updateTranslations(QLocale::Burmese); break;
default: emit updateTranslations(QLocale::English); break;
}
}
@@ -74,6 +76,7 @@ int LanguageModel::getCurrentLanguageIndex()
case QLocale::Chinese: return static_cast<int>(LanguageSettings::AvailableLanguageEnum::China_cn); break;
case QLocale::Persian: return static_cast<int>(LanguageSettings::AvailableLanguageEnum::Persian); break;
case QLocale::Arabic: return static_cast<int>(LanguageSettings::AvailableLanguageEnum::Arabic); break;
case QLocale::Burmese: return static_cast<int>(LanguageSettings::AvailableLanguageEnum::Burmese); break;
default: return static_cast<int>(LanguageSettings::AvailableLanguageEnum::English); break;
}
}

View File

@@ -14,7 +14,8 @@ namespace LanguageSettings
Russian,
China_cn,
Persian,
Arabic
Arabic,
Burmese
};
Q_ENUM_NS(AvailableLanguageEnum)

View File

@@ -160,7 +160,6 @@ PageType {
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
text: ServersModel.defaultServerDescriptionCollapsed
}
}
expandedContent: Item {
id: serverMenuContainer

View File

@@ -166,7 +166,7 @@ PageType {
LabelWithButtonType {
Layout.fillWidth: true
text: qsTr("Remove server from application")
text: qsTr("Remove this server from the app")
textColor: "#EB5757"
clickedFunction: function() {
@@ -196,11 +196,11 @@ PageType {
visible: content.isServerWithWriteAccess
Layout.fillWidth: true
text: qsTr("Clear server from Amnezia software")
text: qsTr("Clear server Amnezia-installed services")
textColor: "#EB5757"
clickedFunction: function() {
var headerText = qsTr("Do you want to clear server from Amnezia software?")
var headerText = qsTr("Do you want to clear server Amnezia-installed services?")
var descriptionText = qsTr("All containers will be deleted on the server. This means that configuration files, keys and certificates will be deleted.")
var yesButtonText = qsTr("Continue")
var noButtonText = qsTr("Cancel")

View File

@@ -50,8 +50,7 @@ PageType {
Layout.leftMargin: 16
headerText: qsTr("Server connection")
descriptionText: qsTr("Do not use connection code from public sources. It may have been created to intercept your data.\n
It's okay as long as it's from someone you trust.")
descriptionText: qsTr("Do not use connection codes from untrusted sources, as they may be created to intercept your data.")
}
Header2TextType {

View File

@@ -24,10 +24,6 @@ PageType {
PageController.goToPage(PageEnum.PageSetupWizardViewConfig)
}
function onShowBusyIndicator(visible) {
busyIndicator.visible = visible
}
function onClosePage() {
if (stackView.depth <= 1) {
return
@@ -55,7 +51,7 @@ PageType {
}
function onEscapePressed() {
if (isControlsDisabled || busyIndicator.visible) {
if (isControlsDisabled) {
return
}
@@ -165,10 +161,4 @@ PageType {
ConnectionTypeSelectionDrawer {
id: connectionTypeSelection
}
BusyIndicatorType {
id: busyIndicator
anchors.centerIn: parent
z: 1
}
}

View File

@@ -94,7 +94,7 @@ PageType {
Layout.fillWidth: true
Layout.topMargin: 16
text: qsTr("Do not use connection code from public sources. It could be created to intercept your data.")
text: qsTr("Do not use connection codes from untrusted sources, as they may be created to intercept your data.")
color: "#878B91"
}

View File

@@ -14,6 +14,8 @@ import "../Components"
PageType {
id: root
property bool isControlsDisabled: false
Connections {
target: PageController
@@ -32,20 +34,11 @@ PageType {
tabBarStackView.push(pagePath, { "objectName" : pagePath }, StackView.PushTransition)
}
function onShowBusyIndicator(visible) {
busyIndicator.visible = visible
tabBarStackView.enabled = !visible
tabBar.enabled = !visible
}
function onDisableControls(disabled) {
tabBar.enabled = !disabled
isControlsDisabled = disabled
}
function onClosePage() {
tabBar.isServerInfoShow = tabBarStackView.currentItem.objectName !== PageController.getPagePath(PageEnum.PageSettingsServerInfo)
&& tabBarStackView.currentItem.objectName !== PageController.getPagePath(PageEnum.PageSettingsSplitTunneling)
if (tabBarStackView.depth <= 1) {
return
}
@@ -60,8 +53,6 @@ PageType {
} else {
tabBarStackView.push(pagePath, { "objectName" : pagePath }, StackView.Immediate)
}
tabBar.isServerInfoShow = (page === PageEnum.PageSettingsServerInfo) || (page === PageEnum.PageSettingsSplitTunneling) || tabBar.isServerInfoShow
}
function onGoToStartPage() {
@@ -72,7 +63,7 @@ PageType {
}
function onEscapePressed() {
if (!tabBar.enabled || busyIndicator.visible) {
if (root.isControlsDisabled) {
return
}
@@ -141,13 +132,14 @@ PageType {
width: parent.width
height: root.height - tabBar.implicitHeight
enabled: !root.isControlsDisabled
function goToTabBarPage(page) {
connectionTypeSelection.close()
var pagePath = PageController.getPagePath(page)
tabBarStackView.clear(StackView.Immediate)
tabBarStackView.replace(pagePath, { "objectName" : pagePath }, StackView.Immediate)
tabBar.isServerInfoShow = false
}
Component.onCompleted: {
@@ -161,7 +153,6 @@ PageType {
id: tabBar
property int previousIndex: 0
property bool isServerInfoShow: false
anchors.right: parent.right
anchors.left: parent.left
@@ -172,6 +163,8 @@ PageType {
leftPadding: 96
rightPadding: 96
enabled: !root.isControlsDisabled
background: Shape {
width: parent.width
height: parent.height
@@ -192,7 +185,7 @@ PageType {
}
TabImageButtonType {
isSelected: tabBar.isServerInfoShow ? false : tabBar.currentIndex === 0
isSelected: tabBar.currentIndex === 0
image: "qrc:/images/controls/home.svg"
onClicked: {
tabBarStackView.goToTabBarPage(PageEnum.PageHome)
@@ -226,7 +219,7 @@ PageType {
}
TabImageButtonType {
isSelected: tabBar.isServerInfoShow ? true : tabBar.currentIndex === 2
isSelected: tabBar.currentIndex === 2
image: "qrc:/images/controls/settings-2.svg"
onClicked: {
tabBarStackView.goToTabBarPage(PageEnum.PageSettings)
@@ -243,12 +236,6 @@ PageType {
}
}
BusyIndicatorType {
id: busyIndicator
anchors.centerIn: parent
z: 1
}
ConnectionTypeSelectionDrawer {
id: connectionTypeSelection

View File

@@ -86,6 +86,11 @@ Window {
function onGoToPageSettingsBackup() {
PageController.goToPage(PageEnum.PageSettingsBackup)
}
function onShowBusyIndicator(visible) {
busyIndicator.visible = visible
PageController.disableControls(visible)
}
}
Connections {
@@ -215,6 +220,16 @@ Window {
}
}
Item {
anchors.fill: parent
BusyIndicatorType {
id: busyIndicator
anchors.centerIn: parent
z: 1
}
}
function showQuestionDrawer(headerText, descriptionText, yesButtonText, noButtonText, yesButtonFunction, noButtonFunction) {
questionDrawer.headerText = headerText
questionDrawer.descriptionText = descriptionText