Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit cf16f76

Browse files
Chan Chak Shingzoracon
authored andcommitted
Properly change ON/OFF switch description, fix #17891 (#17919)
1 parent 66c2e97 commit cf16f76

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

chromium/pages/popup/ux.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,11 @@ function updateEnabledDisabledUI() {
154154
// Hide or show the rules sections
155155
if (item.globalEnabled) {
156156
document.body.className = ""
157+
e('onoffswitch_label').innerText = chrome.i18n.getMessage("menu_globalEnable");
157158
showHttpNowhereUI();
158159
} else {
159160
document.body.className = "disabled";
160-
e('onoffswitch_label').innerText = 'HTTPS Everywhere is OFF';
161+
e('onoffswitch_label').innerText = chrome.i18n.getMessage("menu_globalDisable");
161162
}
162163
});
163164
}

src/chrome/locale/en/https-everywhere.dtd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<!ENTITY https-everywhere.menu.donate_eff_imperative "Donate to EFF">
99
<!ENTITY https-everywhere.menu.observatory "SSL Observatory Preferences">
10-
<!ENTITY https-everywhere.menu.globalEnable "HTTPS Everywhere is OFF">
10+
<!ENTITY https-everywhere.menu.globalDisable "HTTPS Everywhere is OFF">
1111
<!ENTITY https-everywhere.menu.globalEnable "HTTPS Everywhere is ON">
1212
<!ENTITY https-everywhere.menu.encryptAllSitesEligible "Encrypt All Sites Eligible is ON">
1313
<!ENTITY https-everywhere.menu.encryptAllSitesEligible "Encrypt All Sites Eligible is OFF">

0 commit comments

Comments
 (0)