You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expectedMessage = QString("Expected between %2 and %4 max but got %3" ).arg( func->minParams(), func->params() );
247
+
expectedMessage = QObject::tr( "Expected between %1 and %2 parameters but %3 were provided." ).arg( QString::number( func->minParams() ), QString::number( func->params() ), QString::number( $3->count() ) );
248
248
}
249
-
exp_error(&yyloc, parser_ctx, QString( "%1 function is called with wrong number of arguments."
250
-
"%2 but got %3" ).arg( QgsExpression::Functions()[fnIndex]->name() )
251
-
.arg( expectedMessage )
252
-
.arg( $3->count() ).toLocal8Bit().constData() );
249
+
exp_error(&yyloc, parser_ctx, QObject::tr( "%1 function is called with wrong number of arguments. %2" ).arg( QgsExpression::Functions()[fnIndex]->name(), expectedMessage ).toUtf8().constData() );
exp_error(&yyloc, parser_ctx, QString( "%1 function is called with wrong number of arguments" ).arg( QgsExpression::Functions()[fnIndex]->name() ).toLocal8Bit().constData() );
275
+
exp_error(&yyloc, parser_ctx, QObject::tr( "%1 function is called with wrong number of arguments" ).arg( QgsExpression::Functions()[fnIndex]->name() ).toLocal8Bit().constData() );
278
276
YYERROR;
279
277
}
280
278
$$ = new QgsExpressionNodeFunction(fnIndex, new QgsExpressionNode::NodeList());
0 commit comments