mirror of
https://github.com/jkcoxson/LocalDevVPN.git
synced 2026-03-02 14:36:16 +01:00
Add and update localization strings in ContentView
This commit is contained in:
@@ -759,7 +759,7 @@ struct StatusOverviewCard: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
DashboardCard {
|
DashboardCard {
|
||||||
VStack(alignment: .leading, spacing: 18) {
|
VStack(alignment: .leading, spacing: 18) {
|
||||||
Text("Current status")
|
Text("current_status")
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
|
|
||||||
HStack(spacing: 18) {
|
HStack(spacing: 18) {
|
||||||
@@ -796,15 +796,15 @@ struct StatusOverviewCard: View {
|
|||||||
private var statusTip: String {
|
private var statusTip: String {
|
||||||
switch tunnelManager.tunnelStatus {
|
switch tunnelManager.tunnelStatus {
|
||||||
case .connected:
|
case .connected:
|
||||||
return NSLocalizedString("Connected to 10.7.0.1", comment: "")
|
return NSLocalizedString("connected_to_10.7.0.1", comment: "")
|
||||||
case .connecting:
|
case .connecting:
|
||||||
return NSLocalizedString("macOS might ask you to approve the VPN", comment: "")
|
return NSLocalizedString("macos_might_ask_you_to_approve_the_vpn", comment: "")
|
||||||
case .disconnecting:
|
case .disconnecting:
|
||||||
return NSLocalizedString("Disconnecting safely", comment: "")
|
return NSLocalizedString("disconnecting_safely", comment: "")
|
||||||
case .error:
|
case .error:
|
||||||
return NSLocalizedString("Open Settings to review details", comment: "")
|
return NSLocalizedString("open_settings_to_review_details", comment: "")
|
||||||
default:
|
default:
|
||||||
return NSLocalizedString("Tap connect to create the tunnel", comment: "")
|
return NSLocalizedString("tap_connect_to_create_the_tunnel", comment: "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -848,9 +848,9 @@ struct ConnectivityControlsCard: View {
|
|||||||
DashboardCard {
|
DashboardCard {
|
||||||
VStack(alignment: .leading, spacing: 18) {
|
VStack(alignment: .leading, spacing: 18) {
|
||||||
VStack(alignment: .leading, spacing: 4) {
|
VStack(alignment: .leading, spacing: 4) {
|
||||||
Text("Connection")
|
Text("connection")
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
Text("Start or stop the secure local tunnel.")
|
Text("start_or_stop_the_secure_local_tunnel")
|
||||||
.font(.footnote)
|
.font(.footnote)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
@@ -859,9 +859,9 @@ struct ConnectivityControlsCard: View {
|
|||||||
|
|
||||||
Toggle(isOn: $autoConnect) {
|
Toggle(isOn: $autoConnect) {
|
||||||
VStack(alignment: .leading, spacing: 2) {
|
VStack(alignment: .leading, spacing: 2) {
|
||||||
Text("Auto-connect on launch")
|
Text("auto-connect_on_launch")
|
||||||
.fontWeight(.semibold)
|
.fontWeight(.semibold)
|
||||||
Text("Resume your last state automatically.")
|
Text("resume_your_last_state_automatically")
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
@@ -972,9 +972,9 @@ struct ConnectionStatsView: View {
|
|||||||
DashboardCard {
|
DashboardCard {
|
||||||
VStack(alignment: .leading, spacing: 18) {
|
VStack(alignment: .leading, spacing: 18) {
|
||||||
VStack(alignment: .leading, spacing: 4) {
|
VStack(alignment: .leading, spacing: 4) {
|
||||||
Text("Session details")
|
Text("session_details")
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
Text("Live stats while the tunnel is connected.")
|
Text("live_stats_while_the_tunnel_is_connected")
|
||||||
.font(.footnote)
|
.font(.footnote)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
@@ -994,24 +994,24 @@ struct ConnectionStatsView: View {
|
|||||||
|
|
||||||
Divider()
|
Divider()
|
||||||
|
|
||||||
Text("Network configuration")
|
Text("network_configuration")
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
|
|
||||||
ConnectionInfoRow(
|
ConnectionInfoRow(
|
||||||
title: "Local device IP",
|
title: "local_device_ip",
|
||||||
value: deviceIP,
|
value: deviceIP,
|
||||||
icon: "desktopcomputer"
|
icon: "desktopcomputer"
|
||||||
)
|
)
|
||||||
|
|
||||||
ConnectionInfoRow(
|
ConnectionInfoRow(
|
||||||
title: "Tunnel IP",
|
title: "tunnel_ip",
|
||||||
value: fakeIP,
|
value: fakeIP,
|
||||||
icon: "point.3.filled.connected.trianglepath.dotted"
|
icon: "point.3.filled.connected.trianglepath.dotted"
|
||||||
)
|
)
|
||||||
|
|
||||||
ConnectionInfoRow(
|
ConnectionInfoRow(
|
||||||
title: "Subnet mask",
|
title: "subnet_mask",
|
||||||
value: subnetMask,
|
value: subnetMask,
|
||||||
icon: "network"
|
icon: "network"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/* MARK: Start Screen */
|
/* MARK: Start Screen */
|
||||||
|
|
||||||
|
"current_status" = "Current status";
|
||||||
|
|
||||||
"disconnected" = "Disconnected";
|
"disconnected" = "Disconnected";
|
||||||
"connecting" = "Connecting";
|
"connecting" = "Connecting";
|
||||||
"connected" = "Connected";
|
"connected" = "Connected";
|
||||||
@@ -9,12 +11,28 @@
|
|||||||
"local_tunnel_active" = "Local Tunnel Active";
|
"local_tunnel_active" = "Local Tunnel Active";
|
||||||
"local_tunnel_inactive" = "Local Tunnel Inactive";
|
"local_tunnel_inactive" = "Local Tunnel Inactive";
|
||||||
|
|
||||||
|
"connected_to_10.7.0.1" = "Connected to 10.7.0.1";
|
||||||
|
"macos_might_ask_you_to_approve_the_vpn" = "macOS might ask you to approve the VPN";
|
||||||
|
"disconnecting_safely" = "Disconnecting safely…";
|
||||||
|
"open_settings_to_review_details" = "Open Settings to review details";
|
||||||
|
"tap_connect_to_create_the_tunnel" = "Tap connect to create the tunnel";
|
||||||
|
|
||||||
|
"connection" = "connection";
|
||||||
|
"start_or_stop_the_secure_local_tunnel" = "Start or stop the secure local tunnel.";
|
||||||
|
|
||||||
"connect" = "Connect";
|
"connect" = "Connect";
|
||||||
"disconnect" = "Disconnect";
|
"disconnect" = "Disconnect";
|
||||||
"connecting_ellipsis" = "Connecting...";
|
"connecting_ellipsis" = "Connecting...";
|
||||||
"disconnecting_ellipsis" = "Disconnecting...";
|
"disconnecting_ellipsis" = "Disconnecting...";
|
||||||
"server_address_name" = "LocalDevVPN Local Tunnel";
|
"server_address_name" = "LocalDevVPN Local Tunnel";
|
||||||
|
|
||||||
|
"auto-connect_on_launch" = "Auto-connect on launch";
|
||||||
|
"resume_your_last_state_automatically" = "Resume your last state automatically.";
|
||||||
|
|
||||||
|
"session_details" = "Session details";
|
||||||
|
"live_stats_while_the_tunnel_is_connected" = "Live stats while the tunnel is connected.";
|
||||||
|
"local_device_ip" = "Local device IP";
|
||||||
|
|
||||||
"local_tunnel_details" = "Tunnel Details";
|
"local_tunnel_details" = "Tunnel Details";
|
||||||
"time_connected" = "Time Connected";
|
"time_connected" = "Time Connected";
|
||||||
"status" = "Status";
|
"status" = "Status";
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/* MARK: Pantalla de inicio */
|
/* MARK: Pantalla de inicio */
|
||||||
|
|
||||||
|
"current_status" = "Estado actual";
|
||||||
|
|
||||||
"disconnected" = "Desconectado";
|
"disconnected" = "Desconectado";
|
||||||
"connecting" = "Conectando";
|
"connecting" = "Conectando";
|
||||||
"connected" = "Conectado";
|
"connected" = "Conectado";
|
||||||
@@ -9,12 +11,28 @@
|
|||||||
"local_tunnel_active" = "Túnel local activo";
|
"local_tunnel_active" = "Túnel local activo";
|
||||||
"local_tunnel_inactive" = "Túnel local inactivo";
|
"local_tunnel_inactive" = "Túnel local inactivo";
|
||||||
|
|
||||||
|
"connected_to_10.7.0.1" = "Conectado a 10.7.0.1";
|
||||||
|
"macos_might_ask_you_to_approve_the_vpn" = "macOS podría pedirte que apruebes la VPN";
|
||||||
|
"disconnecting_safely" = "Desconectando de forma segura…";
|
||||||
|
"open_settings_to_review_details" = "Abre Configuración para revisar los detalles";
|
||||||
|
"tap_connect_to_create_the_tunnel" = "Toca conectar para crear el túnel";
|
||||||
|
|
||||||
|
"connection" = "Conexión";
|
||||||
|
"start_or_stop_the_secure_local_tunnel" = "Inicia o detén el túnel local seguro.";
|
||||||
|
|
||||||
"connect" = "Conectar";
|
"connect" = "Conectar";
|
||||||
"disconnect" = "Desconectar";
|
"disconnect" = "Desconectar";
|
||||||
"connecting_ellipsis" = "Conectando...";
|
"connecting_ellipsis" = "Conectando...";
|
||||||
"disconnecting_ellipsis" = "Desconectando...";
|
"disconnecting_ellipsis" = "Desconectando...";
|
||||||
"server_address_name" = "Túnel Local de LocalDevVPN";
|
"server_address_name" = "Túnel Local de LocalDevVPN";
|
||||||
|
|
||||||
|
"auto-connect_on_launch" = "Conexión automática al iniciar";
|
||||||
|
"resume_your_last_state_automatically" = "Recupera tu último estado automáticamente.";
|
||||||
|
|
||||||
|
"session_details" = "Detalles de la sesión";
|
||||||
|
"live_stats_while_the_tunnel_is_connected" = "Estadísticas en vivo mientras el túnel está conectado.";
|
||||||
|
"local_device_ip" = "IP del dispositivo local";
|
||||||
|
|
||||||
"local_tunnel_details" = "Detalles del Túnel";
|
"local_tunnel_details" = "Detalles del Túnel";
|
||||||
"time_connected" = "Tiempo Conectado";
|
"time_connected" = "Tiempo Conectado";
|
||||||
"status" = "Estado";
|
"status" = "Estado";
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/* MARK: Start Screen */
|
/* MARK: Start Screen */
|
||||||
|
|
||||||
|
"current_status" = "Stato attuale";
|
||||||
|
|
||||||
"disconnected" = "Disconnesso";
|
"disconnected" = "Disconnesso";
|
||||||
"connecting" = "Connessione in corso";
|
"connecting" = "Connessione in corso";
|
||||||
"connected" = "Connesso";
|
"connected" = "Connesso";
|
||||||
@@ -9,12 +11,28 @@
|
|||||||
"local_tunnel_active" = "Tunnel locale attivo";
|
"local_tunnel_active" = "Tunnel locale attivo";
|
||||||
"local_tunnel_inactive" = "Tunnel locale inattivo";
|
"local_tunnel_inactive" = "Tunnel locale inattivo";
|
||||||
|
|
||||||
|
"connected_to_10.7.0.1" = "Connesso a 10.7.0.1";
|
||||||
|
"macos_might_ask_you_to_approve_the_vpn" = "macOS potrebbe chiederti di approvare la VPN";
|
||||||
|
"disconnecting_safely" = "Disconnessione in corso in modo sicuro…";
|
||||||
|
"open_settings_to_review_details" = "Apri Impostazioni per visualizzare i dettagli";
|
||||||
|
"tap_connect_to_create_the_tunnel" = "Tocca Connetti per creare il tunnel";
|
||||||
|
|
||||||
|
"connection" = "Connessione";
|
||||||
|
"start_or_stop_the_secure_local_tunnel" = "Avvia o interrompi il tunnel locale sicuro.";
|
||||||
|
|
||||||
"connect" = "Connetti";
|
"connect" = "Connetti";
|
||||||
"disconnect" = "Disconnetti";
|
"disconnect" = "Disconnetti";
|
||||||
"connecting_ellipsis" = "Connessione in corso...";
|
"connecting_ellipsis" = "Connessione in corso...";
|
||||||
"disconnecting_ellipsis" = "Disconnessione in corso...";
|
"disconnecting_ellipsis" = "Disconnessione in corso...";
|
||||||
"server_address_name" = "Tunnel Locale di LocalDevVPN";
|
"server_address_name" = "Tunnel Locale di LocalDevVPN";
|
||||||
|
|
||||||
|
"auto-connect_on_launch" = "Connessione automatica all’avvio";
|
||||||
|
"resume_your_last_state_automatically" = "Riprende automaticamente il tuo ultimo stato.";
|
||||||
|
|
||||||
|
"session_details" = "Dettagli della sessione";
|
||||||
|
"live_stats_while_the_tunnel_is_connected" = "Statistiche in tempo reale mentre il tunnel è connesso.";
|
||||||
|
"local_device_ip" = "IP del dispositivo locale";
|
||||||
|
|
||||||
"local_tunnel_details" = "Dettagli del Tunnel";
|
"local_tunnel_details" = "Dettagli del Tunnel";
|
||||||
"time_connected" = "Tempo Connesso";
|
"time_connected" = "Tempo Connesso";
|
||||||
"status" = "Stato";
|
"status" = "Stato";
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/* MARK: Start Screen */
|
/* MARK: Start Screen */
|
||||||
|
|
||||||
|
"current_status" = "현재 상태";
|
||||||
|
|
||||||
"disconnected" = "연결 끊김";
|
"disconnected" = "연결 끊김";
|
||||||
"connecting" = "연결중";
|
"connecting" = "연결중";
|
||||||
"connected" = "연결됨";
|
"connected" = "연결됨";
|
||||||
@@ -9,12 +11,28 @@
|
|||||||
"local_tunnel_active" = "로컬 터널 활성화됨";
|
"local_tunnel_active" = "로컬 터널 활성화됨";
|
||||||
"local_tunnel_inactive" = "로컬 터널 비활성화됨";
|
"local_tunnel_inactive" = "로컬 터널 비활성화됨";
|
||||||
|
|
||||||
|
"connected_to_10.7.0.1" = "10.7.0.1에 연결됨";
|
||||||
|
"macos_might_ask_you_to_approve_the_vpn" = "macOS에서 VPN 승인 요청이 나타날 수 있습니다";
|
||||||
|
"disconnecting_safely" = "안전하게 연결 해제 중…";
|
||||||
|
"open_settings_to_review_details" = "자세한 내용을 보려면 설정을 여세요";
|
||||||
|
"tap_connect_to_create_the_tunnel" = "터널을 생성하려면 연결을 누르세요";
|
||||||
|
|
||||||
|
"connection" = "연결";
|
||||||
|
"start_or_stop_the_secure_local_tunnel" = "보안 로컬 터널을 시작하거나 중지합니다.";
|
||||||
|
|
||||||
"connect" = "연결";
|
"connect" = "연결";
|
||||||
"disconnect" = "연결 끊기";
|
"disconnect" = "연결 끊기";
|
||||||
"connecting_ellipsis" = "연결중...";
|
"connecting_ellipsis" = "연결중...";
|
||||||
"disconnecting_ellipsis" = "연결 해제 중...";
|
"disconnecting_ellipsis" = "연결 해제 중...";
|
||||||
"server_address_name" = "LocalDevVPN 로컬 터널";
|
"server_address_name" = "LocalDevVPN 로컬 터널";
|
||||||
|
|
||||||
|
"auto-connect_on_launch" = "실행 시 자동 연결";
|
||||||
|
"resume_your_last_state_automatically" = "마지막 상태를 자동으로 재개합니다.";
|
||||||
|
|
||||||
|
"session_details" = "세션 세부사항";
|
||||||
|
"live_stats_while_the_tunnel_is_connected" = "터널이 연결된 동안 실시간 통계";
|
||||||
|
"local_device_ip" = "로컬 기기 IP";
|
||||||
|
|
||||||
"local_tunnel_details" = "터널 정보";
|
"local_tunnel_details" = "터널 정보";
|
||||||
"time_connected" = "연결 지속 시간";
|
"time_connected" = "연결 지속 시간";
|
||||||
"status" = "상태";
|
"status" = "상태";
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/* MARK: Start Screen */
|
/* MARK: Start Screen */
|
||||||
|
|
||||||
|
"current_status" = "Aktualny status";
|
||||||
|
|
||||||
"disconnected" = "Rozłączony";
|
"disconnected" = "Rozłączony";
|
||||||
"connecting" = "Łączenie";
|
"connecting" = "Łączenie";
|
||||||
"connected" = "Połączony";
|
"connected" = "Połączony";
|
||||||
@@ -9,12 +11,28 @@
|
|||||||
"local_tunnel_active" = "Lokalny tunel aktywny";
|
"local_tunnel_active" = "Lokalny tunel aktywny";
|
||||||
"local_tunnel_inactive" = "Lokalny tunel nieaktywny";
|
"local_tunnel_inactive" = "Lokalny tunel nieaktywny";
|
||||||
|
|
||||||
|
"connected_to_10.7.0.1" = "Połączono z 10.7.0.1";
|
||||||
|
"macos_might_ask_you_to_approve_the_vpn" = "macOS może poprosić Cię o zatwierdzenie VPN";
|
||||||
|
"disconnecting_safely" = "Bezpieczne rozłączanie…";
|
||||||
|
"open_settings_to_review_details" = "Otwórz Ustawienia, aby zobaczyć szczegóły";
|
||||||
|
"tap_connect_to_create_the_tunnel" = "Stuknij Połącz, aby utworzyć tunel";
|
||||||
|
|
||||||
|
"connection" = "Połączenie";
|
||||||
|
"start_or_stop_the_secure_local_tunnel" = "Uruchom lub zatrzymaj bezpieczny tunel lokalny.";
|
||||||
|
|
||||||
"connect" = "Połącz";
|
"connect" = "Połącz";
|
||||||
"disconnect" = "Rozłącz";
|
"disconnect" = "Rozłącz";
|
||||||
"connecting_ellipsis" = "Łączenie...";
|
"connecting_ellipsis" = "Łączenie...";
|
||||||
"disconnecting_ellipsis" = "Rozłączanie...";
|
"disconnecting_ellipsis" = "Rozłączanie...";
|
||||||
"server_address_name" = "Lokalny tunel LocalDevVPN";
|
"server_address_name" = "Lokalny tunel LocalDevVPN";
|
||||||
|
|
||||||
|
"auto-connect_on_launch" = "Automatyczne łączenie przy uruchomieniu";
|
||||||
|
"resume_your_last_state_automatically" = "Automatycznie przywraca Twój ostatni stan.";
|
||||||
|
|
||||||
|
"session_details" = "Szczegóły sesji";
|
||||||
|
"live_stats_while_the_tunnel_is_connected" = "Statystyki na żywo podczas połączenia z tunelem.";
|
||||||
|
"local_device_ip" = "Lokalny adres IP urządzenia";
|
||||||
|
|
||||||
"local_tunnel_details" = "Szczegóły tunelu";
|
"local_tunnel_details" = "Szczegóły tunelu";
|
||||||
"time_connected" = "Czas połączenia";
|
"time_connected" = "Czas połączenia";
|
||||||
"status" = "Status";
|
"status" = "Status";
|
||||||
|
|||||||
Reference in New Issue
Block a user