Skip to content

Commit

Permalink
rebase + refactor sumo link
Browse files Browse the repository at this point in the history
  • Loading branch information
MattLichtenstein committed Jan 18, 2024
1 parent 9da993f commit 01ff742
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ constexpr const char* MOZILLA_VPN_SUMO_URL =
constexpr const char* SUMO_DNS =
"https://support.mozilla.org/kb/how-do-i-change-my-dns-settings";

constexpr const char* SUMO_MULTIHOP =
"https://support.mozilla.org/kb/"
"multi-hop-encrypt-your-data-twice-enhanced-security";

PRODBETAEXPR(QString, contactSupportUrl, "https://accounts.firefox.com/support",
"https://accounts.stage.mozaws.net/support")

Expand Down
6 changes: 2 additions & 4 deletions src/mozillavpn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1385,10 +1385,8 @@ void MozillaVPN::registerUrlOpenerLabels() {
uo->registerUrlLabel("sumoDns",
[]() -> QString { return Constants::SUMO_DNS; });

uo->registerUrlLabel("sumoMultihop", []() -> QString {
return "https://support.mozilla.org/en-US/kb/"
"multi-hop-encrypt-your-data-twice-enhanced-security";
});
uo->registerUrlLabel("sumoMultihop",
[]() -> QString { return Constants::SUMO_MULTIHOP; });
}

void MozillaVPN::errorHandled() {
Expand Down
13 changes: 13 additions & 0 deletions src/translations/strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,19 @@ devices:
value: My devices
comment: Title for the menu bar when viewing the devices or device limit pages

helpSheets:
dnsTitle:
value: Custom DNS settings
comment: Title label for the custom dns help sheet
dnsHeader:
value: What is a custom DNS?
comment: Header label for the custom dns help sheet
dnsBody1:
value: Whenever you connect to a website, a DNS (domain name system) first turns the domain name (e.g. www.mozilla.org) into an IP address that allows your internet traffic to reach that destination.
comment: Body text for the custom dns help sheet
dnsBody2:
value: Mozilla VPN allows you to choose a custom DNS server if you prefer. If you use one, you won’t be able to use other privacy features in the VPN like tracker blocking.
comment: Body text for the custom dns help sheet
locationTitle:
value: Location selection
comment: Title label for the location selection help sheet
Expand Down

0 comments on commit 01ff742

Please sign in to comment.