From 53540432e109fc7013572a5e43af967b6361df98 Mon Sep 17 00:00:00 2001 From: "M@" Date: Tue, 27 Jul 2021 19:03:19 -0400 Subject: [PATCH] compose: Fix typos in error message for too-long compose content. --- frontend_tests/node_tests/compose_validate.js | 2 +- static/js/compose_validate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend_tests/node_tests/compose_validate.js b/frontend_tests/node_tests/compose_validate.js index ffe9fb949a..8a8dbb5b1b 100644 --- a/frontend_tests/node_tests/compose_validate.js +++ b/frontend_tests/node_tests/compose_validate.js @@ -478,7 +478,7 @@ test_ui("test_check_overflow_text", () => { assert.ok(textarea.hasClass("over_limit")); assert.equal( $("#compose-error-msg").html(), - "translated HTML: Message length should'nt be greatar than 10000 characters.", + "translated HTML: Message length shouldn't be greater than 10000 characters.", ); assert.ok(send_button.prop("disabled")); diff --git a/static/js/compose_validate.js b/static/js/compose_validate.js index d94f628f60..3ef6f2844b 100644 --- a/static/js/compose_validate.js +++ b/static/js/compose_validate.js @@ -471,7 +471,7 @@ export function check_overflow_text() { $t_html( { defaultMessage: - "Message length should'nt be greatar than {max_length} characters.", + "Message length shouldn't be greater than {max_length} characters.", }, {max_length}, ),