From 9abf7da0258f5b85a4ce4c6f6cfb2b0e44baf99a Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 12 Jun 2024 09:57:35 +0200 Subject: Lexer: Fix spelling error in translatable message Pick-to: 6.8 Change-Id: I0625e5675f9a7424eebee84b734faa69f676f74a Reviewed-by: Ulf Hermann --- src/qml/parser/qqmljslexer.cpp | 2 +- tests/auto/qml/qqmlparser/tst_qqmlparser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/parser/qqmljslexer.cpp b/src/qml/parser/qqmljslexer.cpp index d57fb7c54a..aa95f6302f 100644 --- a/src/qml/parser/qqmljslexer.cpp +++ b/src/qml/parser/qqmljslexer.cpp @@ -1220,7 +1220,7 @@ int Lexer::scanNumber(QChar ch) _state.errorCode = IllegalNumber; _errorMessage = QCoreApplication::translate( "QQmlParser", - "There can be at most one numeric separator beetwen digits" + "There can be at most one numeric separator between digits" ); return false; } diff --git a/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp b/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp index 0a8411ddcf..62f67e548f 100644 --- a/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp +++ b/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp @@ -547,7 +547,7 @@ void tst_qqmlparser::invalidNumericSeparator_data() { QTest::addColumn("error"); QTest::newRow("Trailing numeric separator") << "1_" << "A trailing numeric separator is not allowed in numeric literals"; - QTest::newRow("Multiple numeric separators") << "1__2" << "There can be at most one numeric separator beetwen digits"; + QTest::newRow("Multiple numeric separators") << "1__2" << "There can be at most one numeric separator between digits"; } void tst_qqmlparser::invalidNumericSeparator() { -- cgit v1.2.3