Using translated property name in usage error messages.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2024-09-23 18:23:45 +02:00
parent 34a436fe49
commit bac802ec5b
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 6 additions and 2 deletions

View file

@ -145,7 +145,9 @@ Repeater {
title: qsTranslate("expression", "LogarithmPlotter - Parsing error") title: qsTranslate("expression", "LogarithmPlotter - Parsing error")
text: "" text: ""
function showDialog(propName, propValue, error) { function showDialog(propName, propValue, error) {
text = qsTranslate("error", "Error while parsing expression for property %1:\n%2\n\nEvaluated expression: %3").arg(propName).arg(error).arg(propValue) text = qsTranslate("error", "Error while parsing expression for property %1:\n%2\n\nEvaluated expression: %3")
.arg(qsTranslate('prop', propName))
.arg(error).arg(propValue)
open() open()
} }
} }

View file

@ -202,7 +202,9 @@ Item {
title: qsTranslate("expression", "LogarithmPlotter - Parsing error") title: qsTranslate("expression", "LogarithmPlotter - Parsing error")
text: "" text: ""
function showDialog(propName, propValue, error) { function showDialog(propName, propValue, error) {
text = qsTranslate("expression", "Error while parsing expression for property %1:\n%2\n\nEvaluated expression: %3").arg(propName).arg(error).arg(propValue) text = qsTranslate("expression", "Error while parsing expression for property %1:\n%2\n\nEvaluated expression: %3")
.arg(qsTranslate('prop', propName))
.arg(error).arg(propValue)
open() open()
} }
} }