diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b043f62..3b6b7ee 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -36,6 +36,7 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config" + android:localeConfig="@xml/locales_config" android:theme="@style/Theme.FreeTurn" android:enableOnBackInvokedCallback="true" tools:targetApi="33"> diff --git a/app/src/main/java/com/freeturn/app/App.kt b/app/src/main/java/com/freeturn/app/App.kt index 74f92c9..a1465d0 100644 --- a/app/src/main/java/com/freeturn/app/App.kt +++ b/app/src/main/java/com/freeturn/app/App.kt @@ -1,6 +1,7 @@ package com.freeturn.app import android.app.Application +import android.content.Context import android.content.pm.ApplicationInfo import com.freeturn.app.data.AppPreferences import com.freeturn.app.di.appModule @@ -36,6 +37,10 @@ class App : Application() { private val log: ProxyLog by inject() private val scope = CoroutineScope(Dispatchers.Default + SupervisorJob()) + override fun attachBaseContext(base: Context) { + super.attachBaseContext(AppLocale.wrap(base)) + } + override fun onCreate() { super.onCreate() // ed25519/curve25519 работает через Bouncy Castle в classpath. jsch 2.x подхватывает его сам. diff --git a/app/src/main/java/com/freeturn/app/AppLocale.kt b/app/src/main/java/com/freeturn/app/AppLocale.kt new file mode 100644 index 0000000..0f0e942 --- /dev/null +++ b/app/src/main/java/com/freeturn/app/AppLocale.kt @@ -0,0 +1,76 @@ +package com.freeturn.app + +import android.app.Activity +import android.app.Application +import android.app.LocaleManager +import android.content.Context +import android.content.res.Configuration +import android.content.res.Resources +import android.os.Build +import android.os.LocaleList +import androidx.annotation.RequiresApi +import java.util.Locale + +/** + * Язык интерфейса поверх системного. API 33+ - системный per-app locale (виден и в + * настройках Android), ниже - свой тег и обёртка контекста в attachBaseContext. + * Пустой тег - язык системы. + */ +object AppLocale { + + val SUPPORTED = listOf("ru", "en") + + // SharedPreferences, не DataStore: тег нужен синхронно в attachBaseContext, до Koin. + private const val PREFS = "app_locale" + private const val KEY_TAG = "tag" + + fun current(context: Context): String { + val tag = if (Build.VERSION.SDK_INT >= 33) { + context.localeManager().applicationLocales.get(0)?.language.orEmpty() + } else { + storedTag(context) + } + return tag.takeIf { it in SUPPORTED }.orEmpty() + } + + fun set(activity: Activity, tag: String) { + if (tag == current(activity)) return + if (Build.VERSION.SDK_INT >= 33) { + // Система сама пересоздаёт активити и обновляет ресурсы процесса. + activity.localeManager().applicationLocales = + if (tag.isEmpty()) LocaleList.getEmptyLocaleList() else LocaleList.forLanguageTags(tag) + return + } + activity.prefs().edit().putString(KEY_TAG, tag).commit() + // Уведомления, виджет и VM берут строки из application-контекста - его тоже. + applyTo(activity.application) + activity.recreate() + } + + fun wrap(base: Context): Context { + if (Build.VERSION.SDK_INT >= 33) return base + val locale = targetLocale(storedTag(base)) ?: return base + Locale.setDefault(locale) + return base.createConfigurationContext(Configuration(base.resources.configuration).withLocale(locale)) + } + + @Suppress("DEPRECATION") // createConfigurationContext не обновляет уже живой Application + private fun applyTo(app: Application) { + val locale = targetLocale(storedTag(app)) ?: Resources.getSystem().configuration.locales[0] + Locale.setDefault(locale) + val res = app.resources + res.updateConfiguration(Configuration(res.configuration).withLocale(locale), res.displayMetrics) + } + + private fun targetLocale(tag: String): Locale? = + tag.takeIf { it in SUPPORTED }?.let(Locale::forLanguageTag) + + private fun Configuration.withLocale(locale: Locale) = apply { setLocales(LocaleList(locale)) } + + private fun storedTag(context: Context): String = context.prefs().getString(KEY_TAG, null).orEmpty() + + private fun Context.prefs() = getSharedPreferences(PREFS, Context.MODE_PRIVATE) + + @RequiresApi(33) + private fun Context.localeManager() = getSystemService(LocaleManager::class.java) +} diff --git a/app/src/main/java/com/freeturn/app/MainActivity.kt b/app/src/main/java/com/freeturn/app/MainActivity.kt index 7376bd8..8836953 100644 --- a/app/src/main/java/com/freeturn/app/MainActivity.kt +++ b/app/src/main/java/com/freeturn/app/MainActivity.kt @@ -1,5 +1,6 @@ package com.freeturn.app +import android.content.Context import android.content.Intent import android.net.VpnService import android.os.Bundle @@ -28,6 +29,10 @@ class MainActivity : ComponentActivity() { private val proxyViewModel: ProxyViewModel by viewModel() private val linkImportBus: LinkImportBus by inject() + override fun attachBaseContext(newBase: Context) { + super.attachBaseContext(AppLocale.wrap(newBase)) + } + override fun onCreate(savedInstanceState: Bundle?) { val splashScreen = installSplashScreen() super.onCreate(savedInstanceState) diff --git a/app/src/main/java/com/freeturn/app/service/ProxyService.kt b/app/src/main/java/com/freeturn/app/service/ProxyService.kt index a0ea2ef..8c8eacb 100644 --- a/app/src/main/java/com/freeturn/app/service/ProxyService.kt +++ b/app/src/main/java/com/freeturn/app/service/ProxyService.kt @@ -12,6 +12,7 @@ import android.os.PowerManager import android.os.SystemClock import androidx.core.app.ServiceCompat import androidx.core.content.ContextCompat +import com.freeturn.app.AppLocale import com.freeturn.app.R import com.freeturn.app.data.AppPreferences import com.freeturn.app.data.CoreCommand @@ -58,6 +59,11 @@ class ProxyService : VpnService() { private var tun: ParcelFileDescriptor? = null private var socks5: Socks5Server? = null + + // Тексты уведомлений и ошибок сессии берутся из контекста сервиса, не приложения. + override fun attachBaseContext(newBase: Context) { + super.attachBaseContext(AppLocale.wrap(newBase)) + } private var wakeLock: PowerManager.WakeLock? = null // Сколько устройство успело проспать к прошлой проверке: разница elapsedRealtime diff --git a/app/src/main/java/com/freeturn/app/ui/screens/settings/AppScreen.kt b/app/src/main/java/com/freeturn/app/ui/screens/settings/AppScreen.kt index dfe291a..c98314d 100644 --- a/app/src/main/java/com/freeturn/app/ui/screens/settings/AppScreen.kt +++ b/app/src/main/java/com/freeturn/app/ui/screens/settings/AppScreen.kt @@ -12,6 +12,7 @@ import android.os.PowerManager import android.provider.Settings import android.net.Uri import androidx.annotation.StringRes +import androidx.activity.compose.LocalActivity import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.animation.AnimatedContent @@ -28,6 +29,8 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.widthIn import androidx.compose.foundation.rememberScrollState +import androidx.compose.foundation.selection.selectable +import androidx.compose.foundation.selection.selectableGroup import androidx.compose.foundation.verticalScroll import androidx.compose.material3.AlertDialog import androidx.compose.material3.ButtonDefaults @@ -35,6 +38,7 @@ import androidx.compose.material3.FilledTonalButton import androidx.compose.material3.LargeFlexibleTopAppBar import androidx.compose.material3.LoadingIndicator import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.RadioButton import androidx.compose.material3.Scaffold import androidx.compose.material3.SnackbarHost import androidx.compose.material3.SnackbarHostState @@ -54,12 +58,14 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.input.nestedscroll.nestedScroll import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.stringResource +import androidx.compose.ui.semantics.Role import androidx.compose.ui.unit.dp import androidx.core.net.toUri import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleEventObserver import androidx.lifecycle.compose.LocalLifecycleOwner import androidx.lifecycle.compose.collectAsStateWithLifecycle +import com.freeturn.app.AppLocale import com.freeturn.app.R import com.freeturn.app.domain.UpdateError import com.freeturn.app.domain.UpdateState @@ -151,7 +157,7 @@ fun AppScreen( ) { SectionLabel(stringResource(R.string.app_section_interface)) SettingsGroup { - SettingsGroupItem(0, 3) { + SettingsGroupItem(0, 4) { SettingsSwitchRow( title = stringResource(R.string.privacy_mode_title), subtitle = stringResource(R.string.privacy_mode_desc), @@ -160,7 +166,7 @@ fun AppScreen( onCheckedChange = { settingsViewModel.setPrivacyMode(it) } ) } - SettingsGroupItem(1, 3) { + SettingsGroupItem(1, 4) { SettingsSwitchRow( title = stringResource(R.string.dynamic_theme_title), subtitle = stringResource(R.string.dynamic_theme_desc), @@ -169,7 +175,7 @@ fun AppScreen( onCheckedChange = { settingsViewModel.setDynamicTheme(it) } ) } - SettingsGroupItem(2, 3) { + SettingsGroupItem(2, 4) { SettingsSwitchRow( title = stringResource(R.string.seasonal_decor_title), subtitle = stringResource(R.string.seasonal_decor_desc), @@ -178,6 +184,9 @@ fun AppScreen( onCheckedChange = { settingsViewModel.setSeasonalDecor(it) } ) } + SettingsGroupItem(3, 4) { + LanguageRow() + } } SectionLabel(stringResource(R.string.app_section_connection)) @@ -408,7 +417,69 @@ private fun UpdateError.labelRes(): Int = when (this) { UpdateError.FILE_MISSING -> R.string.update_error_file } -/** Строка сброса: error-тинт иконки и заголовка, без trailing-шеврона. */ +/** Язык интерфейса; смена пересоздаёт активити. */ +@Composable +private fun LanguageRow() { + val context = LocalContext.current + val activity = LocalActivity.current + var showDialog by rememberSaveable { mutableStateOf(false) } + val current = remember { AppLocale.current(context) } + val options = listOf("") + AppLocale.SUPPORTED + + SettingsEntryRow( + iconRes = R.drawable.language_24px, + title = stringResource(R.string.language_title), + subtitle = languageName(current), + onClick = { showDialog = true } + ) + + if (showDialog) { + AlertDialog( + onDismissRequest = { showDialog = false }, + title = { Text(stringResource(R.string.language_title)) }, + text = { + Column(Modifier.selectableGroup()) { + options.forEach { tag -> + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(Spacing.md), + modifier = Modifier + .fillMaxWidth() + .selectable( + selected = tag == current, + role = Role.RadioButton, + onClick = { + showDialog = false + if (tag != current) { + HapticUtil.perform(context, HapticUtil.Pattern.SELECTION) + activity?.let { AppLocale.set(it, tag) } + } + } + ) + .padding(vertical = Spacing.md) + ) { + RadioButton(selected = tag == current, onClick = null) + Text(languageName(tag), style = MaterialTheme.typography.bodyLarge) + } + } + } + }, + confirmButton = { + TextButton(shapes = ButtonDefaults.shapes(), onClick = { showDialog = false }) { + Text(stringResource(R.string.cancel)) + } + } + ) + } +} + +@Composable +private fun languageName(tag: String): String = when (tag) { + "ru" -> stringResource(R.string.language_ru) + "en" -> stringResource(R.string.language_en) + else -> stringResource(R.string.language_system) +} + /** * Статус исключения из оптимизации батареи и запрос его заново. Стартовый диалог * показывается один раз за установку, а без исключения система в Doze режет туннель - @@ -469,6 +540,7 @@ private fun Context.openBatterySettings(exempt: Boolean) { private fun Context.isIgnoringBatteryOptimizations(): Boolean = getSystemService(PowerManager::class.java).isIgnoringBatteryOptimizations(packageName) +/** Строка сброса: error-тинт иконки и заголовка, без trailing-шеврона. */ @Composable private fun ResetRow(onClick: () -> Unit) { Row( diff --git a/app/src/main/res/drawable/language_24px.xml b/app/src/main/res/drawable/language_24px.xml new file mode 100644 index 0000000..a92bb5f --- /dev/null +++ b/app/src/main/res/drawable/language_24px.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/values-en/strings.xml b/app/src/main/res/values-en/strings.xml new file mode 100644 index 0000000..aefc351 --- /dev/null +++ b/app/src/main/res/values-en/strings.xml @@ -0,0 +1,551 @@ + + + + + Home + Proxy active + Tunnel active + Connecting… + Tap to start + No servers + Add a server to start the proxy + Add server + + + Share + Share + Connection + Users + Grant VPN access without server management rights + User name + Latin letters, digits, . _ - + The server needs it to accept the connection (32 hex characters) + Invalid format: 32 hex characters (0-9, a-f) + Server + Select a server + Share + Checking server… + Server unavailable + Retry + Proxy + The user connects over VPN - WireGuard or AmneziaWG + The user connects through the proxy + Obfuscation + Access type + No servers to share + Add a server to share a connection + Add server + Users + Refresh list + No users yet + This device + Proxy access + Unnamed + last seen %1$s + never connected + Actions + Show link + Revoke access + Access for \"%1$s\" + Share the link or QR code only with people you trust. Changing the obfuscation key will require issuing a new link. + QR code with the access link + Copy + Share + Revoke access? + User \"%1$s\" will be removed from the server and their connection will stop working. This cannot be undone. + Revoke + Include call link + The recipient will not need their own account + The server has no address - add it in the server settings + SSH error + The server management script version does not match - update the app. + The SSH server key does not match the saved one - the server may have been spoofed. Connection aborted, see the SSH log for details. + + + Import connection + Imported server + Call link + Enter a call link to establish the connection + The link came with the access - you can replace it with your own + A server with this address already exists + This configuration is already imported + Import + Server added + Setup complete. Start the connection on the home screen. + Go to connection + Import failed + Invalid link or unsupported app version. + Got it + Could not save the server. Please try again. + + + Scan QR code + Point the camera at a QR code + Camera access is required to scan QR codes + Allow access + Open settings + Camera access denied + + + Add + Connection + Paste a link + Paste + No freeturn:// link in the clipboard + Other ways to connect + Own server + Set up the server connection yourself + Manual setup + Enter parameters manually + Create + Restore + Load a backup + QR code + Scan a code from a screen + Soon + New server + + + Step %1$d of %2$d + Server parameters + Installation + Server ready + Continue + Install + Go home + Checking connection… + Checking the server environment + WireGuard port + Client config (.conf) + Generate port + VPN protocol + UDP - WireGuard/AmneziaWG, TCP - Xray + External UDP port of the server, random from 56000–56999 + Traffic is disguised as a voice call. The key will be generated and filled in automatically. + No traffic disguise. You can enable it later in the server settings. + You can fill this in later in the connection settings + Saving configuration + Installing and starting + The server is set up, but the profile was not saved - the server list is corrupted + FreeTurn is already installed on the server - fields are filled with its settings. + Where traffic goes + VPN on the server + New WireGuard + Existing VPN + The installer will set up WireGuard on the server (interface ft-wg0) and issue configs itself - for you and for the people you share with. + Your VPN is already running on the server (Amnezia, wg-easy, 3x-ui). FreeTurn only forwards traffic into it and does not touch the VPN itself - take client configs from its panel. + WireGuard subnet + Client addresses, the server gets .1. Must not overlap with the server networks. + A network address with a /16-/29 prefix, e.g. 10.13.13.0/24 + VPN address + host:port of your VPN that FreeTurn forwards traffic to + Expected format host:port + Server + FreeTurn in a container. Docker will be installed automatically - the first installation may take a few minutes. + FreeTurn as a system service, without Docker. + Take the VPN client config from your panel and import it in \"Connection mode\". + Retry + Back to settings + Server set up and running + The server is added and made active - start it from the home screen. + WireGuard config received from the server and connected. + Address + Obfuscation + Off + Abort installation? + The installation will stop. Completed steps are kept, running it again is safe. + Abort + Stay + Required field + Port from 1 to 65535 + Same as the WireGuard port + A server with this address is already in the list - another entry will be added. + If left empty, it will be named \"New server\". + Name + Done + In progress + Failed + Pending + Captcha required + SSH: pairing… + Pair again + No connection to the server + The SSH session is not active. Pair again to manage the server. + Proxy active - tap to stop + Tunnel active - tap to stop + Error - tap to restart + Start proxy + Android client + Proxy core + Reset settings + Reset + Reset all settings? + All settings will be deleted and the proxy stopped. The app will restart. + Cancel + + + Connection + turn-proxy server address + IP and port of turn-proxy on your VPS + Call link + Calls -> Create -> Copy link (do not press \"End\") + Paste + Local listen address + Address where the client accepts traffic from WireGuard/XRay + Performance + Advanced + Threads: %1$d + 8–12 recommended + How many TURN streams one account serves + Streams per account: %1$d + + Mode + The tunnel works only over UDP forwarding + Obfuscation + Pacing: off + Pacing: %1$d ms + Pause between packets on both sides. 20 ms matches a voice call; the higher it is, the lower the speed ceiling. + Off + Stop the connection to change the method or link + Empty - the key will be generated on apply + Invalid format - 64 hex characters required + Synced server settings + Sync with server + Server sync is off. Check the settings manually. + Transport + UDP lowers latency, TCP is more stable + Manual captcha + Solve the captcha manually instead of automatic recognition + Carrier DNS + Use the current network DNS instead of the system resolver + Disabled: the manual DNS list above is in effect + DNS resolver + Auto - tries the system DNS, switches to DNS-over-HTTPS when blocked + Auto + DNS servers (manual) + Comma or space separated. Takes priority over carrier DNS. Empty - not set. + Invalid DNS addresses will be skipped. + + Select an obfuscation profile to set the key. + + + Logs + Copy + Clear + No logs + + + Server configuration + Listen port + Port on which the server accepts client connections + Install + Update + Obf key (64 hex) + Generate new key + Start server + Stop server + SSH log + Server journal + Log is empty + + + Show password + Hide password + Pairing + Back + Server details + Server IP address + SSH port + User name + Password + Private key + Authentication + Sign-in method + Private key (PEM) + sudo password + Required if you sign in as a non-root user and sudo asks for a password. Otherwise leave it empty. + Connect + Pairing with the server… + Authenticating… + Checking SSH… + + + Update + Check + Checking… + Update available + Version %1$s is available + Download + Downloading update + Downloading: %1$d%% + Update downloaded + The APK is ready to install. Install now? + Ready to install + Install + You have the latest version + Could not get release info + The release has no APK + No connection to the server + Could not download the update + Update signature does not match - installation cancelled + Update file not found + + Verbose logging + Detailed core output + Alternative TURN node + Use the specified TURN server instead of auto-selection + TURN node address + IP or host of the alternative TURN server + + Dynamic theme + Use system colors (Material You) + Privacy mode + Hides IPs and ports + Seasonal decor + Leaves and glow around the connect button + Language + System default + + + Connecting… + Proxy + Captcha + Captcha required + Open the app to complete the check + Connection error + VPN permission required - open the app + VPN permission not granted - proxy not started + Could not start the service: %1$s + Connection settings are not filled in + The core rejected the configuration: %1$s + The core failed to start: %1$s + Could not parse the WireGuard config: %1$s + Could not bring up the VPN interface: %1$s + + + Robot check + Complete the check to continue + Close + The captcha is open in an external browser. Return to the app after completing it. + + + Telegram channel + Stay updated + Subscribe to the Telegram channel to be the first to know about new versions. + Subscribe + Not now + + + Delete + Not saved + Untitled + + + Disconnect + Threads: %1$d/%2$d + + + FreeTurn - proxy + Connected + Connecting… + Disconnected + No active server + Start + Stop + + + Start + Start proxy + Stop + Stop proxy + + + Tunnel name + + + Split tunneling + Mode + Selected only + All except selected + Search apps + No apps found + Turn on to select apps + Stop the connection to change split tunneling + Nothing selected - no app will go through the VPN + Split tunneling is off + Split tunneling is on + + + Servers + + + Show logs + Core output and the logs button on the home screen + + + Advanced + Debugging and diagnostics + Debug mode + Shows debug info: core state, server journal and verbose logs + Listen on 0.0.0.0:1080 to share the WireGuard tunnel over a hotspot + Restart server on profile switch + Restart the server with the new profile parameters + Debug info + Core state, server journal and SSH log + Core state + State + Running + Stopped + Not installed + Version + Launch parameters + Server + Client + Logs + Log actions + Send file + Log file is empty + + + Settings + Settings + Servers + Manage added servers and their settings + No servers added + Delete server? + Server \"%1$s\" and all its settings will be removed from the app. + + Management + Remove FreeTurn from server + Remove the service, WireGuard and user list from the remote server + Remove server from app + Only the app entry is removed - the server is not changed + + Remove FreeTurn from server? + All FreeTurn components will be removed from the server. Users you shared access with will lose their connection. + Remove + Retry + Removing from server + Removing FreeTurn components from the server over SSH… + Server cleaned + FreeTurn components have been removed from the server. + Done + Connection settings + Client parameters: address, threads, DNS + Server settings + State, obfuscation, forwarding and core management + + Server running + Server stopped + Could not connect + Core not installed + Sync off + Applying settings… + Updating server… + Uploading local build… + Stopping server… + + Connecting… + SSH not set up + Server inactive + The server has no SSH pairing: managing it from the app is unavailable, client settings still work. + Apply + Fix the ARQ values + Check the listen and backend addresses + Check the obf key + Wait for the server operation + Server not active + To manage the core and SSH connection, make this server active. + Make active + Active + Server actions + Rename + Clone + Rename server + Server name + Save + Connection mode + Proxy or VPN (WireGuard), config import + Proxy + VPN + Traffic goes through a local proxy, without a tunnel. + All device traffic is tunneled through WireGuard. + Forwarding + UDP relay: the local port accepts WireGuard/AmneziaWG traffic. + TCP forwarder: the local port is used by Xray or sing-box, no own tunnel is brought up. + If another app holds the VPN on the device, exclude FreeTurn from its tunnel - otherwise traffic will loop. + The server must run in the same mode, otherwise it will reject the session. + + ARQ profile + Profile + Standard + Mobile + Custom + Core default: minimal latency, more overhead traffic. + Gentle on cellular networks: less frequent polling, smaller windows, batched ACKs. + Values are set manually; applied to both client and server. + Loop interval, ms + Fast resend, duplicate ACKs + Send window, packets + Receive window, packets + Segment MTU, bytes + Allowed 300–1350 + Fast mode + Send without accumulation delay + No congestion control + Do not shrink the window on loss + Immediate ACK + Lower latency, more overhead traffic + Must be greater than zero + Must be 0 or greater + Must be between 300 and 1350 + Load from file + Tunnel configuration + Change server + + + App + Theme, language and updates + Interface + Connection + Unrestricted background use + No restrictions. If the tunnel still drops during sleep, open \"Battery\" and choose \"Unrestricted\" + Not allowed - the tunnel drops in sleep mode + Connect on launch + Restore the session when the app opens if the system dropped it + Prompts + Do not offer updates + Do not show the update suggestion dialog + Do not offer Telegram + Do not show the channel subscription dialog + Updates + Reset + Delete all app data + Current version %1$s + + + Backup + Export settings + Profiles and settings to an encrypted file + Export + Restore + Restore + Password + Repeat password + Needed to restore on another device. It cannot be recovered. + Enter a password + Passwords do not match + Settings exported + Could not save the file + Current servers and settings will be replaced. + Servers restored: %1$d + Could not restore + Wrong password + Invalid file format + + + About + Version, description and links + Free Turn proxies WireGuard and Xray traffic through public TURN servers. Open source and no telemetry: all settings are stored only on your device. + Links + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4867845..8621532 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -3,7 +3,7 @@ Главная - Free Turn + Free Turn Прокси активен Туннель активен Подключение… @@ -20,7 +20,7 @@ Предоставление доступа к VPN без прав управления сервером Имя пользователя Латиница, цифры, . _ - - Client ID + Client ID Нужен серверу, чтобы принять подключение (32 hex-символа) Неверный формат: 32 hex-символа (0-9, a-f) Сервер @@ -29,8 +29,8 @@ Проверка сервера… Сервер недоступен Повторить - WireGuard - AmneziaWG + WireGuard + AmneziaWG Прокси Пользователь подключается по VPN - WireGuard или AmneziaWG Пользователь подключается через прокси @@ -121,7 +121,7 @@ Проверка окружения сервера Порт WireGuard Клиентский конфиг (.conf) - [Interface]\n… + [Interface]\n… Сгенерировать порт Протокол VPN UDP - WireGuard/AmneziaWG, TCP - Xray @@ -143,12 +143,12 @@ Адреса клиентов, у сервера - .1. Не должна пересекаться с сетями сервера. Сетевой адрес с префиксом /16-/29, например 10.13.13.0/24 Адрес VPN - 127.0.0.1:51820 + 127.0.0.1:51820 host:port вашего VPN, куда FreeTurn пересылает трафик Нужен формат host:port Сервер - Docker - systemd + Docker + systemd FreeTurn в контейнере. Docker поставится сам - первая установка может занять несколько минут. FreeTurn - системная служба, без Docker. Клиентский конфиг VPN возьмите в своей панели и импортируйте в \"Режиме подключения\". @@ -175,8 +175,8 @@ Ошибка В ожидании Требуется прохождение капчи - TCP - UDP + TCP + UDP SSH: сопряжение… Повторить сопряжение Нет подключения к серверу @@ -196,17 +196,17 @@ Подключение Адрес turn-proxy сервера - 1.2.3.4:56000 + 1.2.3.4:56000 IP и порт turn-proxy на вашем VPS Ссылка на звонок - https://site.ru/call/… + https://site.ru/call/… Звонки -> Создать -> Скопировать ссылку (не нажимайте \"Завершить\") Вставить Локальный адрес прослушивания - 127.0.0.1:9000 + 127.0.0.1:9000 Адрес, на котором клиент принимает трафик от WireGuard/XRay Производительность - DNS + DNS Дополнительно Потоки: %1$d Рекомендуется 8–12 @@ -220,11 +220,11 @@ Пейсинг: %1$d мс Пауза между пакетами на обеих сторонах. 20 мс - как у голосового звонка; чем больше, тем ниже потолок скорости. Выкл - rtpopus - rtpopus2 - rtpopus3 - Relay - Direct + rtpopus + rtpopus2 + rtpopus3 + Relay + Direct Остановите подключение, чтобы сменить способ или ссылку Пусто - ключ сгенерируется при применении Неверный формат - нужны 64 hex-символа @@ -241,8 +241,8 @@ DNS-резолвер Авто - пробует системный DNS, переключается на DNS-over-HTTPS при блокировке Авто - UDP/53 - DoH + UDP/53 + DoH DNS-серверы (вручную) Через запятую/пробел. Приоритет над DNS оператора. Пусто - не задавать. Некорректные DNS-адреса будут пропущены. @@ -258,7 +258,7 @@ Конфигурация сервера Порт прослушивания - 56000 + 56000 Порт, на котором сервер принимает подключения от клиентов Установить Обновить @@ -277,7 +277,7 @@ Назад Данные сервера IP-адрес сервера - 1.2.3.4 + 1.2.3.4 SSH порт Имя пользователя Пароль @@ -285,7 +285,7 @@ Аутентификация Способ входа Приватный ключ (PEM) - -----BEGIN RSA PRIVATE KEY-----\n… + -----BEGIN RSA PRIVATE KEY-----\n… Пароль sudo Требуется, если вход выполняется не под root и sudo запрашивает пароль. Иначе оставьте поле пустым. Подключиться @@ -319,7 +319,7 @@ Альтернативный TURN-узел Указанный TURN-сервер вместо автоподбора Адрес TURN-узла - 255.255.255.255 + 255.255.255.255 IP или хост альтернативного TURN-сервера Динамическая тема @@ -328,9 +328,13 @@ Скрывает IP и порты Сезонный декор Листва и свечение вокруг кнопки подключения + Язык + Как в системе + Русский + English - FreeTurn + FreeTurn Подключение… Прокси Капча @@ -367,7 +371,7 @@ Отключить Потоки: %1$d/%2$d - Free Turn + Free Turn FreeTurn - прокси @@ -412,7 +416,7 @@ Отладка и диагностика Режим отладки Открывает отладочную информацию: состояние ядра, журнал сервера и подробные логи - SOCKS5 Hotspot + SOCKS5 Hotspot Слушать на 0.0.0.0:1080 для раздачи WireGuard-туннеля через точку доступа Перезапуск сервера при смене профиля Перезапускать сервер под параметры нового профиля @@ -484,7 +488,7 @@ Чтобы управлять ядром и SSH-подключением, сделайте этот сервер активным. Сделать активным Активный - SSH + SSH Действия с сервером Переименовать Клонировать @@ -532,7 +536,7 @@ Приложение - Тема, приватность и обновления + Тема, язык и обновления Интерфейс Подключение Работа в фоне без ограничений diff --git a/app/src/main/res/xml/locales_config.xml b/app/src/main/res/xml/locales_config.xml new file mode 100644 index 0000000..976deee --- /dev/null +++ b/app/src/main/res/xml/locales_config.xml @@ -0,0 +1,5 @@ + + + + +