From 610f46d74e4904d20756533372c1be3ca2b4a6dd Mon Sep 17 00:00:00 2001 From: Sayam Samal Date: Tue, 2 Apr 2024 12:28:53 +0530 Subject: [PATCH] actions_popover: Rename "View message source". This commit renames "View message source" to "View original message". The meaning of "original" in this context is very similar to what source/source code means in software jargon, while being easier to understand and translate for a non-tech savvy user. --- help/keyboard-shortcuts.md | 2 +- help/view-the-markdown-source-of-a-message.md | 4 ++-- web/src/popover_menus_data.js | 2 +- web/tests/popover_menus_data.test.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/help/keyboard-shortcuts.md b/help/keyboard-shortcuts.md index fa4c7c509c..d87c3d5429 100644 --- a/help/keyboard-shortcuts.md +++ b/help/keyboard-shortcuts.md @@ -153,7 +153,7 @@ in the Zulip app to add more to your repertoire as needed. ### For a selected message (outlined in blue) -* **Edit message or view message source**: E +* **Edit message or view original message**: E * **Show message sender's user card**: U diff --git a/help/view-the-markdown-source-of-a-message.md b/help/view-the-markdown-source-of-a-message.md index 93b2ba9b3b..bb01188faf 100644 --- a/help/view-the-markdown-source-of-a-message.md +++ b/help/view-the-markdown-source-of-a-message.md @@ -11,7 +11,7 @@ formatted, or to copy the Markdown source for a reply. {!message-actions-menu.md!} -1. Click **View message source**. You will not see the **View message source** +1. Click **View original message**. You will not see the **View original message** menu option for editable messages that you have sent. !!! keyboard_tip "" @@ -29,7 +29,7 @@ formatted, or to copy the Markdown source for a reply. {!message-actions-menu.md!} -1. Click **View message source**. You will not see the **View message source** +1. Click **View original message**. You will not see the **View original message** menu option for editable messages that you have sent. 1. Click the **Copy and close** diff --git a/web/src/popover_menus_data.js b/web/src/popover_menus_data.js index c850100307..2771a18c7b 100644 --- a/web/src/popover_menus_data.js +++ b/web/src/popover_menus_data.js @@ -44,7 +44,7 @@ export function get_actions_popover_content_context(message_id) { if (is_content_editable) { editability_menu_item = $t({defaultMessage: "Edit message"}); } else { - view_source_menu_item = $t({defaultMessage: "View message source"}); + view_source_menu_item = $t({defaultMessage: "View original message"}); } if (can_move_message) { diff --git a/web/tests/popover_menus_data.test.js b/web/tests/popover_menus_data.test.js index 86f1024588..a0e329b34c 100644 --- a/web/tests/popover_menus_data.test.js +++ b/web/tests/popover_menus_data.test.js @@ -222,7 +222,7 @@ test("not_my_message_view_actions", () => { const response = popover_menus_data.get_actions_popover_content_context(1); - assert.equal(response.view_source_menu_item, "translated: View message source"); + assert.equal(response.view_source_menu_item, "translated: View original message"); assert.equal(response.editability_menu_item, undefined); assert.equal(response.move_message_menu_item, undefined); }); @@ -263,7 +263,7 @@ test("not_my_message_view_source_and_move", () => { add_message_with_view(list, messages); const response = popover_menus_data.get_actions_popover_content_context(1); - assert.equal(response.view_source_menu_item, "translated: View message source"); + assert.equal(response.view_source_menu_item, "translated: View original message"); assert.equal(response.editability_menu_item, undefined); assert.equal(response.move_message_menu_item, "translated: Move messages"); });