From d4e578da9e9aad36a1b3f84e5ea269783457bf8b Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sat, 22 Jan 2022 23:18:25 +0100 Subject: [PATCH] Adding translating types in function history. --- .../qml/eu/ad5001/LogarithmPlotter/js/historylib.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/historylib.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/historylib.js index 7d23ee5..d72bc17 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/historylib.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/historylib.js @@ -74,7 +74,7 @@ class CreateNewObject extends Action { } getReadableString() { - return qsTr("New %1 %2 created.").arg(this.targetType).arg(this.targetName) + return qsTr("New %1 %2 created.").arg(Objects.types[this.targetType].displayType()).arg(this.targetName) } } @@ -91,7 +91,7 @@ class DeleteObject extends CreateNewObject { } getReadableString() { - return qsTr("%1 %2 deleted.").arg(this.targetType).arg(this.targetName) + return qsTr("%1 %2 deleted.").arg(Objects.types[this.targetType].displayType()).arg(this.targetName) } } @@ -130,7 +130,7 @@ class EditedProperty extends Action { getReadableString() { var prev = this.previousValue == null ? ""+this.previousValue : this.previousValue.toString() var next = this.newValue == null ? ""+this.newValue : this.newValue.toString() - return qsTr('%1 of %2 %3 changed from "%4" to "%5".').arg(this.targetPropertyReadable).arg(this.targetType).arg(this.targetName).arg(prev).arg(next) + return qsTr('%1 of %2 %3 changed from "%4" to "%5".').arg(this.targetPropertyReadable).arg(Objects.types[this.targetType].displayType()).arg(this.targetName).arg(prev).arg(next) } }