Skip to content

Commit

Permalink
Add localization strings to force update
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-said-rehouni committed Oct 10, 2024
1 parent 9ed2dbd commit 66025f5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PIA VPN/ForceUpdateViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 2 additions & 0 deletions PIA VPN/SwiftGen+Assets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -791,6 +792,7 @@ enum Asset {
Flags.flagZa,
Flags.flagZm,
Flags.flagZw,
forceUpdateShield,
icon3dtConnect,
icon3dtDisconnect,
icon3dtSelectRegion,
Expand Down
12 changes: 12 additions & 0 deletions PIA VPN/SwiftGen+Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions PIA VPN/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit 66025f5

Please sign in to comment.