mirror of
https://github.com/moparisthebest/mail
synced 2024-11-11 11:45:02 -05:00
externalize strings from editor
This commit is contained in:
parent
0dc1cc68bc
commit
8dd30e3752
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user