Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit 1b186e7

Browse files
author
Daniel Jilg
authored
Circumvent erroneous localization by not localizing the string “Pause” (#381)
1 parent 80cbec8 commit 1b186e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Cliqz/Privacy/UI/ControlCenter/OverviewViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,8 @@ class OverviewViewController: UIViewController {
836836
self.restrictSiteButton.setTitle(restrictTitle, for: .normal)
837837
self.restrictSiteButton.addTarget(self, action: #selector(restrictSitePressed), for: .touchUpInside)
838838

839-
let pauseGhostery = NSLocalizedString("Pause Ghostery", tableName: "Cliqz", comment: "[ControlCenter -> Overview] Pause Ghostery button title")
839+
// Forcing the string instead of using LocalizedString because the L10n system is playing charades
840+
let pauseGhostery = "Pause"
840841
self.pauseGhosteryButton.setTitle(pauseGhostery, for: .normal)
841842
self.pauseGhosteryButton.addTarget(self, action: #selector(pauseGhosteryPressed), for: .touchUpInside)
842843
self.pauseGhosteryButton.titleLabel?.font = UIFont.systemFont(ofSize: 14, weight: UIFont.Weight.medium)

0 commit comments

Comments
 (0)