Skip to content

Commit 5ca7629

Browse files
committed
Localize profile alert action button text
1 parent eba2f9f commit 5ca7629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Loop/Managers/ProfileExpirationAlerter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class ProfileExpirationAlerter {
4444
title: NSLocalizedString("Profile Expires Soon", comment: "The title for notification of upcoming profile expiration"),
4545
message: String(format: NSLocalizedString("Loop will stop working in %@. You will need to update Loop before that, with a new provisioning profile.", comment: "Format string for body for notification of upcoming provisioning profile expiration. (1: amount of time until expiration"), timeUntilExpirationStr!),
4646
preferredStyle: .alert)
47-
dialog.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
48-
dialog.addAction(UIAlertAction(title: "More Info", style: .default, handler: { (_) in
47+
dialog.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: "Text for ok action on notification of upcoming profile expiration"), style: .default, handler: nil))
48+
dialog.addAction(UIAlertAction(title: NSLocalizedString("More Info", comment: "Text for more info action on notification of upcoming profile expiration"), style: .default, handler: { (_) in
4949
UIApplication.shared.open(URL(string: "https://loopkit.github.io/loopdocs/build/updating/")!)
5050
}))
5151
viewControllerToPresentFrom.present(dialog, animated: true, completion: nil)

0 commit comments

Comments
 (0)