Update verification-related strings to better match mobile app
FREEBIE
This commit is contained in:
parent
f654532fa8
commit
b6cca41a0c
7 changed files with 53 additions and 43 deletions
|
@ -34,7 +34,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"youMarkedAsVerified": {
|
"youMarkedAsVerified": {
|
||||||
"message": "You marked $name$ as verified.",
|
"message": "You marked your safety number with $name$ as verified.",
|
||||||
"description": "Shown in the conversation history when the user marks a contact as verified.",
|
"description": "Shown in the conversation history when the user marks a contact as verified.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"youMarkedAsNotVerified": {
|
"youMarkedAsNotVerified": {
|
||||||
"message": "You marked $name$ as not verified.",
|
"message": "You marked your safety number with $name$ as unverified.",
|
||||||
"description": "Shown in the conversation history when the user marks a contact as not verified, whether on the safety number screen or by dismissing a banner or dialog.",
|
"description": "Shown in the conversation history when the user marks a contact as not verified, whether on the safety number screen or by dismissing a banner or dialog.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"youMarkedAsVerifiedOtherDevice": {
|
"youMarkedAsVerifiedOtherDevice": {
|
||||||
"message": "You marked $name$ as verified on another device.",
|
"message": "You marked your safety number with $name$ as verified from another device.",
|
||||||
"description": "Shown in the conversation history when we discover that the user marked a contact as verified on another device.",
|
"description": "Shown in the conversation history when we discover that the user marked a contact as verified on another device.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"youMarkedAsNotVerifiedOtherDevice": {
|
"youMarkedAsNotVerifiedOtherDevice": {
|
||||||
"message": "You marked $name$ as not verified on anther device.",
|
"message": "You marked your safety number with $name$ as not verified from another device.",
|
||||||
"description": "Shown in the conversation history when we discover that the user marked a contact as not verified on another device.",
|
"description": "Shown in the conversation history when we discover that the user marked a contact as not verified on another device.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -158,10 +158,13 @@
|
||||||
"description": "Label for a button to accept a new safety number"
|
"description": "Label for a button to accept a new safety number"
|
||||||
},
|
},
|
||||||
"verify": {
|
"verify": {
|
||||||
"message": "Verify"
|
"message": "Mark as verified"
|
||||||
|
},
|
||||||
|
"unverify": {
|
||||||
|
"message": "Clear verification"
|
||||||
},
|
},
|
||||||
"isVerified": {
|
"isVerified": {
|
||||||
"message": "$name$ is verified.",
|
"message": "You have verified your safety number with $name$.",
|
||||||
"description": "Summary state shown at top of the safety number screen if user has verified contact.",
|
"description": "Summary state shown at top of the safety number screen if user has verified contact.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -171,7 +174,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"isNotVerified": {
|
"isNotVerified": {
|
||||||
"message": "$name$ is not verified.",
|
"message": "You have not verified your safety number with $name$.",
|
||||||
"description": "Summary state shown at top of the safety number screen if user has not verified contact.",
|
"description": "Summary state shown at top of the safety number screen if user has not verified contact.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -306,9 +309,6 @@
|
||||||
"showSafetyNumber": {
|
"showSafetyNumber": {
|
||||||
"message": "Show safety number"
|
"message": "Show safety number"
|
||||||
},
|
},
|
||||||
"markAsNotVerified": {
|
|
||||||
"message": "Mark as not verified"
|
|
||||||
},
|
|
||||||
"verifyHelp": {
|
"verifyHelp": {
|
||||||
"message": "If you wish to verify the security of your end-to-end encryption with $name$, compare the numbers above with the numbers on their device.",
|
"message": "If you wish to verify the security of your end-to-end encryption with $name$, compare the numbers above with the numbers on their device.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
|
|
|
@ -337,15 +337,6 @@
|
||||||
</script>
|
</script>
|
||||||
<script type='text/x-tmpl-mustache' id='key-verification'>
|
<script type='text/x-tmpl-mustache' id='key-verification'>
|
||||||
<div class='container'>
|
<div class='container'>
|
||||||
<div class='summary'>
|
|
||||||
{{ #isVerified }}
|
|
||||||
<span class='icon verified'></span>
|
|
||||||
{{ /isVerified }}
|
|
||||||
{{ ^isVerified }}
|
|
||||||
<span class='icon shield'></span>
|
|
||||||
{{ /isVerified }}
|
|
||||||
{{ verifiedStatus }}
|
|
||||||
</div>
|
|
||||||
{{ ^has_their_key }}
|
{{ ^has_their_key }}
|
||||||
<div class='placeholder'>{{ their_key_unknown }}</div>
|
<div class='placeholder'>{{ their_key_unknown }}</div>
|
||||||
{{ /has_their_key }}
|
{{ /has_their_key }}
|
||||||
|
@ -358,6 +349,15 @@
|
||||||
{{ /has_their_key }}
|
{{ /has_their_key }}
|
||||||
{{ verifyHelp }}
|
{{ verifyHelp }}
|
||||||
<p> {{> link_to_support }} </p>
|
<p> {{> link_to_support }} </p>
|
||||||
|
<div class='summary'>
|
||||||
|
{{ #isVerified }}
|
||||||
|
<span class='icon verified'></span>
|
||||||
|
{{ /isVerified }}
|
||||||
|
{{ ^isVerified }}
|
||||||
|
<span class='icon shield'></span>
|
||||||
|
{{ /isVerified }}
|
||||||
|
{{ verifiedStatus }}
|
||||||
|
</div>
|
||||||
<div class='verify'>
|
<div class='verify'>
|
||||||
<button class='verify grey'>
|
<button class='verify grey'>
|
||||||
{{ verifyButton }}
|
{{ verifyButton }}
|
||||||
|
|
|
@ -142,8 +142,7 @@
|
||||||
|| (beginningVerified !== verified && verified !== UNVERIFIED)
|
|| (beginningVerified !== verified && verified !== UNVERIFIED)
|
||||||
|| (keychange && verified === VERIFIED)) {
|
|| (keychange && verified === VERIFIED)) {
|
||||||
|
|
||||||
var local = !options.viaSyncMessage && !options.viaContactSync;
|
this.addVerifiedChange(this.id, verified === VERIFIED, {local: !options.viaSyncMessage});
|
||||||
this.addVerifiedChange(this.id, verified === VERIFIED, {local: local});
|
|
||||||
}
|
}
|
||||||
if (!options.viaSyncMessage) {
|
if (!options.viaSyncMessage) {
|
||||||
return this.sendVerifySyncMessage(this.id, verified);
|
return this.sendVerifySyncMessage(this.id, verified);
|
||||||
|
@ -302,7 +301,7 @@
|
||||||
if (this.isPrivate()) {
|
if (this.isPrivate()) {
|
||||||
var groups = ConversationController.getAllGroupsInvolvingId(id);
|
var groups = ConversationController.getAllGroupsInvolvingId(id);
|
||||||
_.forEach(groups, function(group) {
|
_.forEach(groups, function(group) {
|
||||||
group.addVerifiedChange(id, verified);
|
group.addVerifiedChange(id, verified, options);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
var name = this.model.getTitle();
|
var name = this.model.getTitle();
|
||||||
var yourSafetyNumberWith = i18n('yourSafetyNumberWith', name);
|
var yourSafetyNumberWith = i18n('yourSafetyNumberWith', name);
|
||||||
var isVerified = this.model.isVerified();
|
var isVerified = this.model.isVerified();
|
||||||
var verifyButton = isVerified ? i18n('markAsNotVerified') : i18n('verify');
|
var verifyButton = isVerified ? i18n('unverify') : i18n('verify');
|
||||||
var verifiedStatus = isVerified ? i18n('isVerified', name) : i18n('isNotVerified', name);
|
var verifiedStatus = isVerified ? i18n('isVerified', name) : i18n('isNotVerified', name);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -77,17 +77,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.key-verification {
|
.key-verification {
|
||||||
|
.container {
|
||||||
|
max-width: 750px;
|
||||||
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
font-size: $font-size-small;
|
font-size: $font-size-small;
|
||||||
}
|
}
|
||||||
|
|
||||||
.summary {
|
|
||||||
margin: 10px 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
height: 1.25em;
|
height: 1.25em;
|
||||||
width: 1.25em;
|
width: 1.25em;
|
||||||
|
@ -135,6 +134,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.summary {
|
||||||
|
margin: 30px 0 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
div.verify {
|
div.verify {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -142,9 +146,8 @@
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-detail {
|
.message-detail {
|
||||||
|
|
|
@ -1083,13 +1083,12 @@ input.search {
|
||||||
.discussion-container {
|
.discussion-container {
|
||||||
background-color: #eee; }
|
background-color: #eee; }
|
||||||
|
|
||||||
|
.key-verification .container {
|
||||||
|
max-width: 750px; }
|
||||||
.key-verification label {
|
.key-verification label {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
font-size: 0.92857em; }
|
font-size: 0.92857em; }
|
||||||
.key-verification .summary {
|
|
||||||
margin: 10px 0;
|
|
||||||
text-align: center; }
|
|
||||||
.key-verification .icon {
|
.key-verification .icon {
|
||||||
height: 1.25em;
|
height: 1.25em;
|
||||||
width: 1.25em;
|
width: 1.25em;
|
||||||
|
@ -1129,12 +1128,16 @@ input.search {
|
||||||
.key-verification .qr img {
|
.key-verification .qr img {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
max-width: 100%; }
|
max-width: 100%; }
|
||||||
|
.key-verification .summary {
|
||||||
|
margin: 30px 0 10px;
|
||||||
|
text-align: center; }
|
||||||
.key-verification div.verify {
|
.key-verification div.verify {
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
.key-verification button.verify {
|
.key-verification button.verify {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 10px; }
|
padding: 10px;
|
||||||
|
margin: 0; }
|
||||||
|
|
||||||
.message-detail {
|
.message-detail {
|
||||||
background-color: #eee; }
|
background-color: #eee; }
|
||||||
|
|
|
@ -323,15 +323,6 @@
|
||||||
</script>
|
</script>
|
||||||
<script type='text/x-tmpl-mustache' id='key-verification'>
|
<script type='text/x-tmpl-mustache' id='key-verification'>
|
||||||
<div class='container'>
|
<div class='container'>
|
||||||
<div class='summary'>
|
|
||||||
{{ #isVerified }}
|
|
||||||
<span class='icon verified'></span>
|
|
||||||
{{ /isVerified }}
|
|
||||||
{{ ^isVerified }}
|
|
||||||
<span class='icon shield'></span>
|
|
||||||
{{ /isVerified }}
|
|
||||||
{{ verifiedStatus }}
|
|
||||||
</div>
|
|
||||||
{{ ^has_their_key }}
|
{{ ^has_their_key }}
|
||||||
<div class='placeholder'>{{ their_key_unknown }}</div>
|
<div class='placeholder'>{{ their_key_unknown }}</div>
|
||||||
{{ /has_their_key }}
|
{{ /has_their_key }}
|
||||||
|
@ -343,6 +334,20 @@
|
||||||
</div>
|
</div>
|
||||||
{{ /has_their_key }}
|
{{ /has_their_key }}
|
||||||
<p> {{> link_to_support }} </p>
|
<p> {{> link_to_support }} </p>
|
||||||
|
<div class='summary'>
|
||||||
|
{{ #isVerified }}
|
||||||
|
<span class='icon verified'></span>
|
||||||
|
{{ /isVerified }}
|
||||||
|
{{ ^isVerified }}
|
||||||
|
<span class='icon shield'></span>
|
||||||
|
{{ /isVerified }}
|
||||||
|
{{ verifiedStatus }}
|
||||||
|
</div>
|
||||||
|
<div class='verify'>
|
||||||
|
<button class='verify grey'>
|
||||||
|
{{ verifyButton }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
<!-- index -->
|
<!-- index -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue