Add tr() for expression parser error

This commit is contained in:
Nathan Woodrow 2024-02-04 23:20:24 +11:00 committed by Nyall Dawson
parent 6374a99b2e
commit a73fce75a0

View File

@ -237,7 +237,7 @@ bool QgsExpression::hasParserError() const
QString QgsExpression::parserErrorString() const
{
return d->mParserErrorString.replace( "syntax error, unexpected end of file",
"Invalid expression. Unexpected end. You might not have finished the full expression" );
tr( "Invalid expression. Unexpected end. You might not have finished the full expression" ) );
}
QList<QgsExpression::ParserError> QgsExpression::parserErrors() const