From bfd363df5d5841c070c4e3cd032acb68cfba25ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Lo=CC=81pez=20Brante?= Date: Sat, 9 Jul 2022 18:40:22 -0400 Subject: [PATCH] [Translation] Privacy policy URL can now be loaded from strings files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kevin López Brante --- Application/AppController.m | 2 +- en.lproj/Localizable.strings | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/AppController.m b/Application/AppController.m index e583058f2..9c884b9e9 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -508,7 +508,7 @@ static AppController *kAppController = nil; } - (IBAction)privacyPolicy:(id)sender { - [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://www.iubenda.com/privacy-policy/59859310"]]; + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:NSLocalizedString(@"PrivacyPolicyURL", @"Privacy policy URL from Iubenda.")]]; } - (IBAction)feedback:(id)sender { diff --git a/en.lproj/Localizable.strings b/en.lproj/Localizable.strings index f0a036299..d51f5fd16 100644 --- a/en.lproj/Localizable.strings +++ b/en.lproj/Localizable.strings @@ -86,3 +86,5 @@ "dhms" = "%@, %@, %@ and %@"; "hms" = "%@, %@ and %@"; "ms" = "%@ and %@"; + +"PrivacyPolicyURL" = "https://www.iubenda.com/privacy-policy/59859310";