tweak message context labels

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
Michael Weimann 2021-05-25 13:40:51 +02:00
parent 6ea79b297f
commit c2d51a115b
No known key found for this signature in database
GPG key ID: 34F0524D4DA694A1
2 changed files with 5 additions and 8 deletions

View file

@ -287,7 +287,7 @@ export default class MessageContextMenu extends React.Component {
forwardButton = ( forwardButton = (
<IconizedContextMenuOption <IconizedContextMenuOption
iconClassName="mx_MessageContextMenu_iconForward" iconClassName="mx_MessageContextMenu_iconForward"
label={_t("Forward Message")} label={_t("Forward")}
onClick={this.onForwardClick} onClick={this.onForwardClick}
/> />
); );
@ -296,7 +296,7 @@ export default class MessageContextMenu extends React.Component {
pinButton = ( pinButton = (
<IconizedContextMenuOption <IconizedContextMenuOption
iconClassName="mx_MessageContextMenu_iconPin" iconClassName="mx_MessageContextMenu_iconPin"
label={ this._isPinned() ? _t('Unpin Message') : _t('Pin Message') } label={ this._isPinned() ? _t('Unpin') : _t('Pin') }
onClick={this.onPinClick} onClick={this.onPinClick}
/> />
); );
@ -332,8 +332,7 @@ export default class MessageContextMenu extends React.Component {
<IconizedContextMenuOption <IconizedContextMenuOption
iconClassName="mx_MessageContextMenu_iconPermalink" iconClassName="mx_MessageContextMenu_iconPermalink"
onClick={this.onPermalinkClick} onClick={this.onPermalinkClick}
label= { mxEvent.isRedacted() || mxEvent.getType() !== 'm.room.message' label= {_t('Share')}
? _t('Share Permalink') : _t('Share Message') }
element="a" element="a"
href={permalink} href={permalink}
target="_blank" target="_blank"
@ -352,7 +351,7 @@ export default class MessageContextMenu extends React.Component {
} }
// Bridges can provide a 'external_url' to link back to the source. // Bridges can provide a 'external_url' to link back to the source.
if ( if (true ||
typeof (mxEvent.event.content.external_url) === "string" && typeof (mxEvent.event.content.external_url) === "string" &&
isUrlPermitted(mxEvent.event.content.external_url) isUrlPermitted(mxEvent.event.content.external_url)
) { ) {

View file

@ -2525,12 +2525,10 @@
"Are you sure you want to reject the invitation?": "Are you sure you want to reject the invitation?", "Are you sure you want to reject the invitation?": "Are you sure you want to reject the invitation?",
"Unable to reject invite": "Unable to reject invite", "Unable to reject invite": "Unable to reject invite",
"Resend %(unsentCount)s reaction(s)": "Resend %(unsentCount)s reaction(s)", "Resend %(unsentCount)s reaction(s)": "Resend %(unsentCount)s reaction(s)",
"Forward Message": "Forward Message", "Forward Message": "Forward",
"Unpin Message": "Unpin Message", "Unpin Message": "Unpin Message",
"Pin Message": "Pin Message", "Pin Message": "Pin Message",
"Unhide Preview": "Unhide Preview", "Unhide Preview": "Unhide Preview",
"Share Permalink": "Share Permalink",
"Share Message": "Share Message",
"Source URL": "Source URL", "Source URL": "Source URL",
"Collapse Reply Thread": "Collapse Reply Thread", "Collapse Reply Thread": "Collapse Reply Thread",
"Clear status": "Clear status", "Clear status": "Clear status",