diff options
Diffstat (limited to 'web-ui/app')
-rw-r--r-- | web-ui/app/js/mail_view/ui/mail_view.js | 16 | ||||
-rw-r--r-- | web-ui/app/locales/en_US/translation.json | 5 | ||||
-rw-r--r-- | web-ui/app/templates/mails/full_view.hbs | 4 |
3 files changed, 15 insertions, 10 deletions
diff --git a/web-ui/app/js/mail_view/ui/mail_view.js b/web-ui/app/js/mail_view/ui/mail_view.js index 4315226c..86605b37 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -103,7 +103,7 @@ define( if(_.isEmpty(mail.security_casing.locks)) { statusClass.push('--not-encrypted'); statusLabel = 'not-encrypted'; - tooltip = 'This message is not encrypted.'; + tooltip = 'not-encrypted-label-tooltip'; } else { statusClass.push('--encrypted'); @@ -113,11 +113,11 @@ define( if(hasAnyEncryptionInfo) { statusLabel = 'encrypted'; - tooltip = 'This message was encrypted.'; + tooltip = 'encrypted-label-tooltip'; } else { statusClass.push('--with-error'); statusLabel = 'encryption-error'; - tooltip = 'This message had an encryption error.'; + tooltip = 'encryption-error-label-tooltip'; } } @@ -140,28 +140,28 @@ define( if(_.isEmpty(mail.security_casing.imprints) || hasNoSignatureInformation) { statusClass.push('--not-signed'); statusLabel.push('not-signed'); - tooltip = 'The sender could not be verified.'; + tooltip = 'not-signed-label-tooltip'; } else { statusClass.push('--signed'); statusLabel.push('signed'); - tooltip = 'You are communicating with the real sender.'; + tooltip = 'signed-label-tooltip'; if(_.any(mail.security_casing.imprints, function(imprint) { return imprint.state === 'from_revoked'; })) { statusClass.push('--revoked'); statusLabel.push('signature-revoked'); - tooltip = 'The sender could not be verified.'; + tooltip = 'not-signed-label-tooltip'; } if(_.any(mail.security_casing.imprints, function(imprint) { return imprint.state === 'from_expired'; })) { statusClass.push('--expired'); statusLabel.push('signature-expired'); - tooltip = 'The sender could not be verified.'; + tooltip = 'not-signed-label-tooltip'; } if(this.isNotTrusted(mail)) { statusClass.push('--not-trusted'); statusLabel.push('signature-not-trusted'); - tooltip = 'The sender could not be verified.'; + tooltip = 'not-signed-label-tooltip'; } } diff --git a/web-ui/app/locales/en_US/translation.json b/web-ui/app/locales/en_US/translation.json index 873b4a56..6e2cef80 100644 --- a/web-ui/app/locales/en_US/translation.json +++ b/web-ui/app/locales/en_US/translation.json @@ -38,6 +38,11 @@ "not-encrypted": "Not encrypted", "signed": "Verified sender", "not-signed": "Not signed", + "encrypted-label-tooltip": "This message was encrypted.", + "encryption-error-label-tooltip": "This message had an encryption error.", + "not-encrypted-label-tooltip": "This message is not encrypted.", + "not-signed-label-tooltip": "The sender could not be verified.", + "signed-label-tooltip": "You are communicating with the real sender.", "sending-mail": "Sending...", "trash-button": "Delete it", "search-placeholder" : "Search...", diff --git a/web-ui/app/templates/mails/full_view.hbs b/web-ui/app/templates/mails/full_view.hbs index 44ed44ed..0068b7f7 100644 --- a/web-ui/app/templates/mails/full_view.hbs +++ b/web-ui/app/templates/mails/full_view.hbs @@ -8,12 +8,12 @@ <!-- TODO --> <div class="column large-12 no-padding security-status"> {{#if signatureStatus}} - <span class="security-status__label {{ signatureStatus.cssClass }}" data-label="{{ signatureStatus.tooltipText }}"> + <span class="security-status__label {{ signatureStatus.cssClass }}" data-label="{{t signatureStatus.tooltipText }}"> {{t signatureStatus.label }} </span> {{/if}} {{#if encryptionStatus}} - <span class="security-status__label {{ encryptionStatus.cssClass }}" data-label="{{ encryptionStatus.tooltipText }}"> + <span class="security-status__label {{ encryptionStatus.cssClass }}" data-label="{{t encryptionStatus.tooltipText }}"> {{t encryptionStatus.label }} </span> {{/if}} |