1
0
mirror of https://github.com/moparisthebest/mail synced 2024-08-13 16:43:47 -04:00

externalize strings from editor

This commit is contained in:
Tankred Hase 2014-01-15 10:57:28 +01:00
parent 0dc1cc68bc
commit 8dd30e3752
2 changed files with 6 additions and 3 deletions

View File

@ -54,7 +54,9 @@ define(function(require) {
cryptSuffix: '-----END PGP MESSAGE-----', cryptSuffix: '-----END PGP MESSAGE-----',
signature: 'Sent securely from Whiteout Mail', signature: 'Sent securely from Whiteout Mail',
webSite: 'http://whiteout.io', webSite: 'http://whiteout.io',
verificationSubject: 'New public key uploaded' verificationSubject: 'New public key uploaded',
sendBtnInvite: 'Invite & send securely',
sendBtnSecure: 'Send securely'
}; };
return app; return app;

View File

@ -5,6 +5,7 @@ define(function(require) {
appController = require('js/app-controller'), appController = require('js/app-controller'),
aes = require('cryptoLib/aes-cbc'), aes = require('cryptoLib/aes-cbc'),
util = require('cryptoLib/util'), util = require('cryptoLib/util'),
str = require('js/app-config').string,
emailDao; emailDao;
// //
@ -165,12 +166,12 @@ define(function(require) {
// sender can invite only one use at a time // sender can invite only one use at a time
if (!allSecure && numReceivers === 1) { if (!allSecure && numReceivers === 1) {
$scope.sendBtnText = 'Invite & send securely'; $scope.sendBtnText = str.sendBtnInvite;
$scope.okToSend = true; $scope.okToSend = true;
$scope.sendBtnSecure = false; $scope.sendBtnSecure = false;
} else if (allSecure && numReceivers > 0) { } else if (allSecure && numReceivers > 0) {
// all recipients are secure // all recipients are secure
$scope.sendBtnText = 'Send securely'; $scope.sendBtnText = str.sendBtnSecure;
$scope.okToSend = true; $scope.okToSend = true;
$scope.sendBtnSecure = true; $scope.sendBtnSecure = true;
} }