Adding translating types in function history.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adsooi 2022-01-22 23:18:25 +01:00
parent e4316747e4
commit d4e578da9e
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

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