-
User Story
-
Resolution: Fixed
-
P3: Somewhat important
-
6.9
-
None
-
-
947fd416e (dev), 5cde6536d (dev)
For id-based translations in C++ code we have the function qtTrId. It was introduced with the following comment:
// Defined in qcoreapplication.cpp // The better name qTrId() is reserved for an upcoming function which would // return a much more powerful QStringFormatter instead of a QString. Q_CORE_EXPORT QString qtTrId(const char *id, int n = -1);
QStringFormatter never materialized, though. See https://lists.qt-project.org/pipermail/development/2017-August/030677.html
Standard C++ has std::format now, but it's questionable whether qTrId should wrap it or aid format strings in another way.
Consider adding qTrId as alias for qtTrId.
Or at least remove the comment.
| For Gerrit Dashboard: QTBUG-134544 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 675406,8 | Add qTrId() alias for qtTrId() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 675411,2 | Tests: Add test coverage for qTrId() alias | dev | qt/qttools | Status: ABANDONED | 0 | 0 |
| 675854,2 | lupdate: Add support for qTrId() function | dev | qt/qttools | Status: MERGED | +2 | 0 |