diff --git a/src/components/views/rooms/SendMessageComposer.js b/src/components/views/rooms/SendMessageComposer.js index 50a09eb894..7f17ceba6e 100644 --- a/src/components/views/rooms/SendMessageComposer.js +++ b/src/components/views/rooms/SendMessageComposer.js @@ -24,6 +24,7 @@ import {PartCreator} from '../../../editor/parts'; import EditorStateTransfer from '../../../utils/EditorStateTransfer'; import {MatrixClient} from 'matrix-js-sdk'; import BasicMessageComposer from "./BasicMessageComposer"; +import { _t } from '../../../languageHandler'; function createMessageContent(model, editedEvent) { const body = textSerialize(model); @@ -69,7 +70,7 @@ export default class SendMessageComposer extends React.Component { } } - _sendMessage = () => { + _sendMessage() { const {roomId} = this.props.room; this.context.matrixClient.sendMessage(roomId, createMessageContent(this.model)); this.model.reset([]); @@ -98,6 +99,7 @@ export default class SendMessageComposer extends React.Component { ref={this._setEditorRef} model={this.model} room={this.props.room} + label={_t("Send message")} /> ); diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index fd5e42bcb4..53d8529c65 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -923,6 +923,7 @@ "This Room": "This Room", "All Rooms": "All Rooms", "Search…": "Search…", + "Send message": "Send message", "Failed to connect to integrations server": "Failed to connect to integrations server", "No integrations server is configured to manage stickers with": "No integrations server is configured to manage stickers with", "You don't currently have any stickerpacks enabled": "You don't currently have any stickerpacks enabled",