Commit 57ab94d4 authored by Jose Blaya's avatar Jose Blaya
Browse files

Merge branch '293-piax-change-trust-cellular-networks-message' into 'release/3.0.0'

Resolve "PIAX. Change 'Trust cellular networks' message"

See merge request ios/vpn-ios!402
parents 30669dc6 10c3c1ee
......@@ -474,11 +474,11 @@ internal enum L10n {
}
}
internal enum Cellular {
/// PIA automatically enables the VPN when connecting to cellular networks if this option is disabled.
/// PIA automatically enables the VPN when connecting to cellular networks if this option is enabled.
internal static let description = L10n.tr("Localizable", "settings.hotspothelper.cellular.description")
/// Cellular networks
internal static let networks = L10n.tr("Localizable", "settings.hotspothelper.cellular.networks")
/// Trust cellular networks
/// Protect over cellular networks
internal static let title = L10n.tr("Localizable", "settings.hotspothelper.cellular.title")
}
internal enum Enable {
......
......@@ -107,7 +107,7 @@ class TrustedNetworksViewController: AutolayoutViewController {
@objc private func toggleCellularData(_ sender: UISwitch) {
let preferences = Client.preferences.editable()
preferences.trustCellularData = sender.isOn
preferences.trustCellularData = !sender.isOn
preferences.commit()
hasUpdatedPreferences = true
}
......@@ -263,7 +263,7 @@ extension TrustedNetworksViewController: UITableViewDelegate, UITableViewDataSou
cell.detailTextLabel?.text = nil
cell.accessoryView = switchCellularData
cell.selectionStyle = .none
switchCellularData.isOn = Client.preferences.trustCellularData
switchCellularData.isOn = !Client.preferences.trustCellularData
}
......
......@@ -210,9 +210,9 @@
"settings.trusted.networks.connect.message" = "Protect this network by connecting to VPN?";
"hotspothelper.display.name" = "🔒 Activate VPN WiFi Protection in PIA Settings to secure this connection.";
"hotspothelper.display.protected.name" = "🔒 PIA VPN WiFi Protection Enabled - We got your back.";
"settings.hotspothelper.cellular.title" = "Trust cellular networks";
"settings.hotspothelper.cellular.title" = "Protect over cellular networks";
"settings.hotspothelper.wifi.trust.title" = "VPN WiFi Protection";
"settings.hotspothelper.cellular.description" = "PIA automatically enables the VPN when connecting to cellular networks if this option is disabled.";
"settings.hotspothelper.cellular.description" = "PIA automatically enables the VPN when connecting to cellular networks if this option is enabled.";
"settings.hotspothelper.cellular.networks" = "Cellular networks";
"settings.hotspothelper.wifi.networks" = "WiFi networks";
"settings.trusted.networks.sections.untrusted" = "Untrusted networks";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment