From 8dd30e3752cb1ce57642c3307002224acc3cbc14 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 15 Jan 2014 10:57:28 +0100 Subject: [PATCH] externalize strings from editor --- src/js/app-config.js | 4 +++- src/js/controller/write.js | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/js/app-config.js b/src/js/app-config.js index 7106b4e..026f38e 100644 --- a/src/js/app-config.js +++ b/src/js/app-config.js @@ -54,7 +54,9 @@ define(function(require) { cryptSuffix: '-----END PGP MESSAGE-----', signature: 'Sent securely from Whiteout Mail', webSite: 'http://whiteout.io', - verificationSubject: 'New public key uploaded' + verificationSubject: 'New public key uploaded', + sendBtnInvite: 'Invite & send securely', + sendBtnSecure: 'Send securely' }; return app; diff --git a/src/js/controller/write.js b/src/js/controller/write.js index 46e5e35..547228d 100644 --- a/src/js/controller/write.js +++ b/src/js/controller/write.js @@ -5,6 +5,7 @@ define(function(require) { appController = require('js/app-controller'), aes = require('cryptoLib/aes-cbc'), util = require('cryptoLib/util'), + str = require('js/app-config').string, emailDao; // @@ -165,12 +166,12 @@ define(function(require) { // sender can invite only one use at a time if (!allSecure && numReceivers === 1) { - $scope.sendBtnText = 'Invite & send securely'; + $scope.sendBtnText = str.sendBtnInvite; $scope.okToSend = true; $scope.sendBtnSecure = false; } else if (allSecure && numReceivers > 0) { // all recipients are secure - $scope.sendBtnText = 'Send securely'; + $scope.sendBtnText = str.sendBtnSecure; $scope.okToSend = true; $scope.sendBtnSecure = true; }