From 66025f560c5c87a846f8697388055157f28fd767 Mon Sep 17 00:00:00 2001 From: Said Rehouni Date: Thu, 10 Oct 2024 09:45:26 +0300 Subject: [PATCH] Add localization strings to force update --- PIA VPN/ForceUpdateViewController.swift | 6 +++--- PIA VPN/SwiftGen+Assets.swift | 2 ++ PIA VPN/SwiftGen+Strings.swift | 12 ++++++++++++ PIA VPN/en.lproj/Localizable.strings | 6 ++++++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/PIA VPN/ForceUpdateViewController.swift b/PIA VPN/ForceUpdateViewController.swift index f9d9ba30..61daed20 100644 --- a/PIA VPN/ForceUpdateViewController.swift +++ b/PIA VPN/ForceUpdateViewController.swift @@ -17,13 +17,13 @@ class ForceUpdateViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() - - // Do any additional setup after loading the view. styleUpdateButton() + titleLabel.text = L10n.Localizable.Forceupdate.Label.title + descriptionLabel.text = L10n.Localizable.Forceupdate.Label.subtitle updateButton.addTarget(self, action: #selector(updateButtonTapped), for: .touchUpInside) - updateButton.setTitle("Update Now", for: .normal) + updateButton.setTitle(L10n.Localizable.Forceupdate.Button.update, for: .normal) } @objc func updateButtonTapped() { diff --git a/PIA VPN/SwiftGen+Assets.swift b/PIA VPN/SwiftGen+Assets.swift index ad824e85..8fb0da22 100644 --- a/PIA VPN/SwiftGen+Assets.swift +++ b/PIA VPN/SwiftGen+Assets.swift @@ -409,6 +409,7 @@ enum Asset { static let flagZm = ImageAsset(name: "flag-zm") static let flagZw = ImageAsset(name: "flag-zw") } + static let forceUpdateShield = ImageAsset(name: "force_update_shield") static let icon3dtConnect = ImageAsset(name: "icon-3dt-connect") static let icon3dtDisconnect = ImageAsset(name: "icon-3dt-disconnect") static let icon3dtSelectRegion = ImageAsset(name: "icon-3dt-select-region") @@ -791,6 +792,7 @@ enum Asset { Flags.flagZa, Flags.flagZm, Flags.flagZw, + forceUpdateShield, icon3dtConnect, icon3dtDisconnect, icon3dtSelectRegion, diff --git a/PIA VPN/SwiftGen+Strings.swift b/PIA VPN/SwiftGen+Strings.swift index b6d1af46..f8d9daab 100644 --- a/PIA VPN/SwiftGen+Strings.swift +++ b/PIA VPN/SwiftGen+Strings.swift @@ -364,6 +364,18 @@ internal enum L10n { /// Renewal internal static let title = L10n.tr("Localizable", "expiration.title", fallback: "Renewal") } + internal enum Forceupdate { + internal enum Button { + /// Update Now + internal static let update = L10n.tr("Localizable", "forceupdate.button.update", fallback: "Update Now") + } + internal enum Label { + /// You’re using an older version of PIA. Update your app now to enjoy an enhanced experience with all the latest features. + internal static let subtitle = L10n.tr("Localizable", "forceupdate.label.subtitle", fallback: "You’re using an older version of PIA. Update your app now to enjoy an enhanced experience with all the latest features.") + /// Upgrade Your Experience + internal static let title = L10n.tr("Localizable", "forceupdate.label.title", fallback: "Upgrade Your Experience") + } + } internal enum Friend { internal enum Referrals { /// Full name diff --git a/PIA VPN/en.lproj/Localizable.strings b/PIA VPN/en.lproj/Localizable.strings index 510ea4a3..fb3cc116 100644 --- a/PIA VPN/en.lproj/Localizable.strings +++ b/PIA VPN/en.lproj/Localizable.strings @@ -598,3 +598,9 @@ "tvos.signup.terms_conditions.description" = "This Terms of Service Agreement ('Agreement') covers the scope of your use and access to the PIA Private Internet Access, Inc. ('PIA') website (“Site”) located at www.privateinternetaccess.com, virtual private networking ('VPN'), and PIA's services provided through the Site ('Service(s)'). By visiting the Site, purchasing a subscription, and/or using the Services, You ('You' or 'Subscriber') ('PIA' and 'Subscriber' collectively known as 'Parties') acknowledge that you have read the Agreement, fully understand the terms and agree to be bound by all of the terms of the Agreement."; "tvos.signup.terms_conditions.qr_code.message" = "Scan the QR code to access the full terms and conditions policy on your device."; + + +//Force update (iOS) +"forceupdate.label.title" = "Upgrade Your Experience"; +"forceupdate.label.subtitle" = "You’re using an older version of PIA. Update your app now to enjoy an enhanced experience with all the latest features."; +"forceupdate.button.update" = "Update Now";