From 8f8779bd740fd809058f51c7af5b424bf99ed06d Mon Sep 17 00:00:00 2001 From: Daniel Jilg Date: Tue, 9 Jul 2019 13:26:28 +0200 Subject: [PATCH] [IB-1923] Revert Previous Fix (#382) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Circumvent erroneous localization by not localizing the string “Pause” * Revert a Change made to trick the L10n system --- Cliqz/Privacy/UI/ControlCenter/OverviewViewController.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cliqz/Privacy/UI/ControlCenter/OverviewViewController.swift b/Cliqz/Privacy/UI/ControlCenter/OverviewViewController.swift index 8017405ba..6bd25da3a 100644 --- a/Cliqz/Privacy/UI/ControlCenter/OverviewViewController.swift +++ b/Cliqz/Privacy/UI/ControlCenter/OverviewViewController.swift @@ -836,8 +836,7 @@ class OverviewViewController: UIViewController { self.restrictSiteButton.setTitle(restrictTitle, for: .normal) self.restrictSiteButton.addTarget(self, action: #selector(restrictSitePressed), for: .touchUpInside) - // Forcing the string instead of using LocalizedString because the L10n system is playing charades - let pauseGhostery = "Pause" + let pauseGhostery = NSLocalizedString("Pause", tableName: "Cliqz", comment: "[ControlCenter -> Overview] Pause Ad blocking button title") self.pauseGhosteryButton.setTitle(pauseGhostery, for: .normal) self.pauseGhosteryButton.addTarget(self, action: #selector(pauseGhosteryPressed), for: .touchUpInside) self.pauseGhosteryButton.titleLabel?.font = UIFont.systemFont(ofSize: 14, weight: UIFont.Weight.medium)