diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 2b9aeb661a..38d6e5f058 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1282,6 +1282,10 @@ "message": "Link New Device", "description": "The menu option shown in Signal iOS to add a new linked device" }, + "LinkScreen__scan-this-code": { + "message": "Scan this code in the Signal app on your phone", + "description": "Alt text for the QR code on the device link screen" + }, "Preferences--device-name": { "message": "Device name", "description": "The label in settings panel shown for the user-provided name for this desktop instance" diff --git a/ts/util/lint/exceptions.json b/ts/util/lint/exceptions.json index e07ee21a36..9efe0a068c 100644 --- a/ts/util/lint/exceptions.json +++ b/ts/util/lint/exceptions.json @@ -13693,6 +13693,13 @@ "reasonCategory": "usageTrusted", "updated": "2021-09-15T21:07:50.995Z" }, + { + "rule": "jQuery-$(", + "path": "ts/views/install_view.js", + "line": " this.$('#qr img').attr('alt', window.i18n('LinkScreen__scan-this-code'));", + "reasonCategory": "usageTrusted", + "updated": "2021-09-28T00:13:42.086Z" + }, { "rule": "jQuery-html(", "path": "ts/views/install_view.js", @@ -13805,6 +13812,13 @@ "reasonCategory": "usageTrusted", "updated": "2021-09-15T21:07:50.995Z" }, + { + "rule": "jQuery-$(", + "path": "ts/views/install_view.ts", + "line": " this.$('#qr img').attr('alt', window.i18n('LinkScreen__scan-this-code'));", + "reasonCategory": "usageTrusted", + "updated": "2021-09-28T00:13:42.086Z" + }, { "rule": "jQuery-html(", "path": "ts/views/install_view.ts", @@ -14274,4 +14288,4 @@ "reasonCategory": "usageTrusted", "updated": "2021-09-17T21:02:59.414Z" } -] +] \ No newline at end of file diff --git a/ts/views/install_view.ts b/ts/views/install_view.ts index 73fb83ae0f..53a079f089 100644 --- a/ts/views/install_view.ts +++ b/ts/views/install_view.ts @@ -169,6 +169,7 @@ Whisper.InstallView = Whisper.View.extend({ this.qr = new window.QRCode(this.$('#qr')[0]).makeCode(url); this.$('#qr').removeAttr('title'); this.$('#qr').addClass('ready'); + this.$('#qr img').attr('alt', window.i18n('LinkScreen__scan-this-code')); }, setDeviceNameDefault() { const deviceName = window.textsecure.storage.user.getDeviceName();