From ea0e013e8193b91f647fb77c5b41513588cf8fe1 Mon Sep 17 00:00:00 2001 From: 2-4601 Date: Sun, 17 Jan 2016 23:41:45 +0200 Subject: [PATCH] Add a trifle of i18n to KeyVerificationView Two strings were left behind: - "Their identity (they read)" - "Your identity (you read)" I saved them. // FREEBIE --- _locales/en/messages.json | 7 +++++++ background.html | 4 ++-- js/views/key_verification_view.js | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 48aec7f6..bc266928 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -97,6 +97,13 @@ "verifyIdentity": { "message": "Verify Identity" }, + "theirIdentity": { + "message": "Their identity (they read):", + "description": "They is used here as a gender-neutral third-person singular" + }, + "yourIdentity": { + "message": "Your identity (you read):" + }, "deleteMessages": { "message": "Delete messages" }, diff --git a/background.html b/background.html index db6f48a8..647499b0 100644 --- a/background.html +++ b/background.html @@ -216,11 +216,11 @@ {{ verifyIdentity }}
-

Their identity (they read):

+

{{theirIdentity}}

{{ #their_key }} {{ . }} {{ /their_key }}
-

Your identity (you read):

+

{{yourIdentity}}

{{ #your_key }} {{ . }} {{ /your_key }}
diff --git a/js/views/key_verification_view.js b/js/views/key_verification_view.js index b7ffbbfe..bc38c6b9 100644 --- a/js/views/key_verification_view.js +++ b/js/views/key_verification_view.js @@ -27,6 +27,8 @@ render_attributes: function() { return { verifyIdentity: i18n('verifyIdentity'), + yourIdentity: i18n('yourIdentity'), + theirIdentity: i18n('theirIdentity'), your_key: this.splitKey(this.model.your_key), their_key: this.splitKey(this.model.their_key) };