Small fixed in 18n

This commit is contained in:
Carl Schwan
2020-11-16 00:12:22 +01:00
parent aa609b70e0
commit 523adace21
2 changed files with 7 additions and 7 deletions

View File

@@ -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()
}

View File

@@ -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();