From 80bc362f048f7d2fb282266779edea2040c5e402 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 9 May 2020 17:33:19 +0200 Subject: [PATCH] Hide guidance string for non-embedded providers String key is not found when NSLocalizedString returns key itself. --- Passepartout-iOS/Global/Theme.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Passepartout-iOS/Global/Theme.swift b/Passepartout-iOS/Global/Theme.swift index f1b2adca..c2decd79 100644 --- a/Passepartout-iOS/Global/Theme.swift +++ b/Passepartout-iOS/Global/Theme.swift @@ -197,7 +197,7 @@ extension Infrastructure.Metadata { var guidanceString: String? { let key = "account.sections.guidance.footer.infrastructure.\(name)" let format = NSLocalizedString(key, tableName: "Core", bundle: Bundle(for: AppDelegate.self), comment: "") - guard !format.isEmpty else { + guard format != key else { return nil } return String(format: format, locale: .current, description)