Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose and feed: Improve label for DMs to yourself.
Alya Abbott0ea04f31bc89
diff --git a/web/src/compose_ui.ts b/web/src/compose_ui.tsindex 93c229c1586..5e949e1755d 100644--- a/web/src/compose_ui.ts+++ b/web/src/compose_ui.ts@@ -460,7 +460,7 @@ export function compute_placeholder_text(opts: ComposePlaceholderOptions): strin} else if (opts.direct_message_user_ids.length > 0) {const user_ids = opts.direct_message_user_ids;if (people.is_direct_message_conversation_with_self(user_ids)) {- return $t({defaultMessage: "Message yourself"});+ return $t({defaultMessage: "Write yourself a note"});}const users = people.get_users_from_ids(user_ids);const recipient_parts = users.map((user) => {diff --git a/web/src/narrow_banner.ts b/web/src/narrow_banner.tsindex 3f49f9265be..604eeae941d 100644--- a/web/src/narrow_banner.ts+++ b/web/src/narrow_banner.ts@@ -373,8 +373,7 @@ export function pick_empty_narrow_banner(current_filter: Filter): NarrowBannerDaif (people.is_my_user_id(recipient_user.user_id)) {return {title: $t({- defaultMessage:- "You have not sent any direct messages to yourself yet!",+ defaultMessage: "You haven't sent yourself any notes yet!",}),html: $t_html({defaultMessage:diff --git a/web/templates/reply_recipient_label.hbs b/web/templates/reply_recipient_label.hbsindex da202e3314a..d463a4e5cad 100644--- a/web/templates/reply_recipient_label.hbs+++ b/web/templates/reply_recipient_label.hbs@@ -1,6 +1,6 @@{{#if is_dm_with_self}}{{#tr}}- Message yourself+ Write yourself a note{{/tr}}{{else}}{{#tr}}diff --git a/web/tests/compose_closed_ui.test.cjs b/web/tests/compose_closed_ui.test.cjsindex 32607833b0f..81695313dc9 100644--- a/web/tests/compose_closed_ui.test.cjs+++ b/web/tests/compose_closed_ui.test.cjs@@ -222,7 +222,7 @@ run_test("test_non_message_list_input", () => {user_ids: [current_user.user_id],});let label = $("#left_bar_compose_reply_button_big").html();- assert.equal(label, "Message yourself");+ assert.equal(label, "Write yourself a note");// Invalid data for a the reply button text.compose_closed_ui.update_recipient_text_for_reply_button({diff --git a/web/tests/message_view.test.cjs b/web/tests/message_view.test.cjsindex ad396a00373..adeaa23fb10 100644--- a/web/tests/message_view.test.cjs+++ b/web/tests/message_view.test.cjs@@ -472,7 +472,7 @@ run_test("show_empty_narrow_message", ({mock_template, override}) => {assert.equal($(".empty_feed_notice_main").html(),empty_narrow_html(- "translated: You have not sent any direct messages to yourself yet!",+ "translated: You haven't sent yourself any notes yet!","translated HTML: Use this space for personal notes, or to test out Zulip features.",),);