Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
Qt 4.7 from git (commit 1c20abaa) on Linux 64-bit
-
e53cd1a6c32e2de719e82a1e0f25b104a0fee995
Description
Given the code below
Item { property int number: 10 Text { id: literal text: qsTr("literal number is %n", "", 10) } Text { text: qsTr("non-literal number is %n", "", number) anchors.top: literal.bottom } }
lupdate will only find the first message as plural, the other one singular. The relevant code is http://qt.gitorious.org/qt/qt/blobs/4.7/tools/linguist/lupdate/qdeclarative.cpp#line106 and http://qt.gitorious.org/qt/qt/blobs/4.7/tools/linguist/lupdate/qdeclarative.cpp#line139 where lupdate casts the expression to a NumericLiteral, which obviously fails.