Skip to content

Commit 27d8b76

Browse files
XaytonMatteoPologruto
authored andcommitted
Small messages/titles fixes
1 parent 1ec7171 commit 27d8b76

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: certificates/certificates.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func isExpired() (bool, error) {
283283

284284
// PromptInstallCertsSafari prompts the user to install the HTTPS certificates if they are using Safari
285285
func PromptInstallCertsSafari() bool {
286-
buttonPressed := utilities.UserPrompt("display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nIf you use Safari, you need to install it.\" buttons {\"Do not install\", \"Install the certificate for Safari\"} default button 2 with title \"Arduino Agent: Install Certificates\"")
286+
buttonPressed := utilities.UserPrompt("display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nIf you use Safari, you need to install it.\" buttons {\"Do not install\", \"Install the certificate for Safari\"} default button 2 with title \"Arduino Agent: Install certificate\"")
287287
return strings.Contains(string(buttonPressed), "button returned:Install the certificate for Safari")
288288
}
289289

@@ -292,7 +292,7 @@ func PromptExpiredCerts(certDir *paths.Path) {
292292
if expired, err := isExpired(); err != nil {
293293
log.Errorf("cannot check if certificates are expired something went wrong: %s", err)
294294
} else if expired {
295-
buttonPressed := utilities.UserPrompt("display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nYour certificate is expired or close to expiration. Do you want to update it?\" buttons {\"Do not update\", \"Update the certificate for Safari\"} default button 2 with title \"Arduino Agent: Update Certificates\"")
295+
buttonPressed := utilities.UserPrompt("display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nYour certificate is expired or close to expiration. Do you want to update it?\" buttons {\"Do not update\", \"Update the certificate for Safari\"} default button 2 with title \"Arduino Agent: Update certificate\"")
296296
if strings.Contains(string(buttonPressed), "button returned:Update the certificate for Safari") {
297297
err := UninstallCertificates()
298298
if err != nil {

Diff for: systray/systray_real.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ func (s *Systray) start() {
9595
s.updateMenuItem(mRmCrashes, config.LogsIsEmpty())
9696
case <-mManageCerts.ClickedCh:
9797
infoMsg := "The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\n\nYour HTTPS certificate status:\n"
98-
buttons := "{\"Install certificate for Safari\", \"OK\"} default button \"OK\""
98+
buttons := "{\"Install the certificate for Safari\", \"OK\"} default button \"OK\""
9999
certDir := config.GetCertificatesDir()
100100
if config.CertsExist() {
101101
expDate, err := cert.GetExpirationDate()
102102
if err != nil {
103103
log.Errorf("cannot get certificates expiration date, something went wrong: %s", err)
104104
}
105105
infoMsg = infoMsg + "- Certificate installed: Yes\n- Certificate trusted: Yes\n- Certificate expiration date: " + expDate
106-
buttons = "{\"Uninstall certificate for Safari\", \"OK\"} default button \"OK\""
106+
buttons = "{\"Uninstall the certificate for Safari\", \"OK\"} default button \"OK\""
107107
} else {
108108
infoMsg = infoMsg + "- Certificate installed: No\n- Certificate trusted: N/A\n- Certificate expiration date: N/A"
109109
}

0 commit comments

Comments
 (0)