message_actions: Rename Edit to Edit message and Collapse to Collapse message.

This commit renames Edit to Edit message and Collapse to Collapse message
for better readability and to match the Delete message and
Copy link to message options.
This commit is contained in:
Akarsh Jain 2022-08-01 16:50:04 +05:30 committed by Tim Abbott
parent 544b88e7ec
commit 72cc5d6bd2
7 changed files with 7 additions and 7 deletions

View File

@ -471,7 +471,7 @@ export function toggle_actions_popover(element, id) {
let editability_menu_item;
if (editability === message_edit.editability_types.FULL) {
use_edit_icon = true;
editability_menu_item = $t({defaultMessage: "Edit"});
editability_menu_item = $t({defaultMessage: "Edit message"});
} else if (editability === message_edit.editability_types.TOPIC_ONLY) {
use_edit_icon = false;
editability_menu_item = $t({defaultMessage: "View source / Move message"});

View File

@ -49,7 +49,7 @@
<li>
<a class="popover_toggle_collapse" data-message-id="{{message_id}}" tabindex="0">
<i class="fa fa-minus" aria-hidden="true"></i>
{{t "Collapse" }} <span class="hotkey-hint">()</span>
{{t "Collapse message" }} <span class="hotkey-hint">()</span>
</a>
</li>
{{/if}}

View File

@ -1,5 +1,5 @@
{{#if is_editable}}
<i class="fa fa-pencil edit_content_button" role="button" tabindex="0" aria-label="{{t 'Edit' }} (e)" data-tippy-content="{{#tr}}Edit{{/tr}} (e)"></i>
<i class="fa fa-pencil edit_content_button" role="button" tabindex="0" aria-label="{{t 'Edit message' }} (e)" data-tippy-content="{{#tr}}Edit message{{/tr}} (e)"></i>
{{else}}
<i class="fa fa-file-code-o edit_content_button" role="button" tabindex="0" aria-label="{{t 'View source' }} (e)" data-tippy-content="{{#tr}}View source{{/tr}} (e)" data-message-id="{{msg_id}}"></i>
{{/if}}

View File

@ -10,7 +10,7 @@ remove the message content from view.
{!message-actions-menu.md!}
3. Click **Collapse**.
3. Click **Collapse message**.
{end_tabs}

View File

@ -48,7 +48,7 @@ destination streams.
{!message-actions-menu.md!}
1. Select the first option. It may be called **View source / Move message**,
or simply **Edit**. If it's called **View source**, then you are not
or simply **Edit message**. If it's called **View source**, then you are not
allowed to edit the stream of that message.
1. Select the destination stream for the message from the streams dropdown list.

View File

@ -23,7 +23,7 @@ for the details on when topic editing is allowed.
{!message-actions-menu.md!}
1. Select the first option. It may be called **View source / Move message**,
or simply **Edit**. If it's called **View source**, then you are not
or simply **Edit message**. If it's called **View source**, then you are not
allowed to edit the topic of that message.
1. Set the destination topic.

View File

@ -37,7 +37,7 @@ for the details on when topic editing is allowed.
{!message-actions-menu.md!}
1. Select the first option. It may be called **View source / Move message**,
or simply **Edit**. If it's called **View source**, then you are not
or simply **Edit message**. If it's called **View source**, then you are not
allowed to edit the topic of that message.
1. Edit the topic.