Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.7, 5.15.10, 6.2.1, 6.2.4
-
macOS 12.0, Windows 10
-
-
8b4dab1e4c (qt/tqtc-qttools/6.4) afbc20ed01 (qt/tqtc-qttools/dev) 8c60d2d288 (qt/tqtc-qttools/6.2) 18a38fe652 (qt/qttools/6.3) 18a38fe652 (qt/tqtc-qttools/6.3) 8c60d2d288 (qt/tqtc-qttools/6.2.5) 4b4f38d266 (qt/tqtc-qttools/5.15)
Description
In the following code, lupdate ignores tr().
const QString TestBackend::getSomeText() const noexcept { return tr("Some text to translate"); }
It works fine if 'noexcept' keyword is not defined.
A workaround is to explicitly define the class name like below
TestBackend::tr("Some text to translate")
Sample project is attached, qtbug99415-noexcept.zip .
Attachments
Issue Links
- relates to
-
QTBUG-42744 lupdate needs C++11 support
- Closed
-
QTBUG-104426 lupdate uses return type as context for free functions
- Closed