Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[IB-1923] Revert Previous Fix (#382)

* Circumvent erroneous localization by not localizing the string “Pause”

* Revert a Change made to trick the L10n system
  • Loading branch information
winsmith authored and pavel-cliqz committed Jul 9, 2019
1 parent 512b228 commit 8f8779bd740fd809058f51c7af5b424bf99ed06d
Showing with 1 addition and 2 deletions.
  1. +1 −2 Cliqz/Privacy/UI/ControlCenter/OverviewViewController.swift
@@ -836,8 +836,7 @@ class OverviewViewController: UIViewController {
self.restrictSiteButton.setTitle(restrictTitle, for: .normal) self.restrictSiteButton.setTitle(restrictTitle, for: .normal)
self.restrictSiteButton.addTarget(self, action: #selector(restrictSitePressed), for: .touchUpInside) 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 = NSLocalizedString("Pause", tableName: "Cliqz", comment: "[ControlCenter -> Overview] Pause Ad blocking button title")
let pauseGhostery = "Pause"
self.pauseGhosteryButton.setTitle(pauseGhostery, for: .normal) self.pauseGhosteryButton.setTitle(pauseGhostery, for: .normal)
self.pauseGhosteryButton.addTarget(self, action: #selector(pauseGhosteryPressed), for: .touchUpInside) self.pauseGhosteryButton.addTarget(self, action: #selector(pauseGhosteryPressed), for: .touchUpInside)
self.pauseGhosteryButton.titleLabel?.font = UIFont.systemFont(ofSize: 14, weight: UIFont.Weight.medium) self.pauseGhosteryButton.titleLabel?.font = UIFont.systemFont(ofSize: 14, weight: UIFont.Weight.medium)

0 comments on commit 8f8779b

Please sign in to comment.