From 523adace2106d64328a4674fffad5d7c758f409e Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 16 Nov 2020 00:12:22 +0100 Subject: [PATCH] Small fixed in 18n --- .../NeoChat/Menu/Timeline/FileDelegateContextMenu.qml | 10 +++++----- imports/NeoChat/Page/RoomPage.qml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/imports/NeoChat/Menu/Timeline/FileDelegateContextMenu.qml b/imports/NeoChat/Menu/Timeline/FileDelegateContextMenu.qml index b751bb054..bf4ad03e2 100644 --- a/imports/NeoChat/Menu/Timeline/FileDelegateContextMenu.qml +++ b/imports/NeoChat/Menu/Timeline/FileDelegateContextMenu.qml @@ -18,31 +18,31 @@ Menu { id: root MenuItem { - text: "View Source" + text: i18n("View Source") onTriggered: viewSource() } MenuItem { - text: "Open Externally" + text: i18n("Open Externally") onTriggered: downloadAndOpen() } MenuItem { - text: "Save As" + text: i18n("Save As") onTriggered: saveFileAs() } MenuItem { - text: "Reply" + text: i18n("Reply") onTriggered: reply() } MenuItem { - text: "Redact" + text: i18n("Redact") onTriggered: redact() } diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index c8471958f..7c53601d3 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -365,13 +365,13 @@ Kirigami.ScrollablePage { background: Item {} function openMessageContext(author, message, eventId, toolTip, model) { - const contextMenu = messageDelegateContextMenu.createObject(root, { + const contextMenu = messageDelegateContextMenu.createObject(page, { 'author': author, 'message': message, 'eventId': eventId, }); contextMenu.viewSource.connect(function() { - messageSourceDialog.createObject(root, { + messageSourceDialog.createObject(page, { 'sourceText': toolTip, }).open(); contextMenu.close();