-
User Story
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
DaVinci 64, DaVinci 66, DaVinci 67, DaVinci 68, DaVinci 69
-
b7849d42ef (qt/qttools/dev) b7849d42ef (qt/tqtc-qttools/dev), 240096084 (6.4), 8a5e16ea3 (tqtc/lts-6.2), a2676cdd4 (6.4), 66cd1e4cd (tqtc/lts-5.15), 069a77f20 (tqtc/lts-6.2), e5e1d8fa4 (tqtc/lts-5.15)
Qt documentation pages should mark snippets, class names ... as not translatable.
Motivation
Automated translation of webpages is becoming more and more popular. One can for instance translate a web page via Google Translate. Chrome supports this automatically by a 'translate' button.
Anyhow, when doing this for doc.qt.io, a couple of issues emerge:
- Code snippets like the qmake, CMake include lines for class information is partially translated too. For instance 'REQUIRED COMPONENTS' keywords in CMake become 'ERFODERLICHE COMPONENTEN'.
- Function names, types, and argument names are partially translated, too.
- Fixed names like 'Qt Core' or 'Qt Test' are translated, too
Proposed fixes
Code snippets, keywords ... should be marked with class="notranslate" in the generated html. This should be fairly easy to do as part of qdoc for fixed places. Anyhow, for module names etc we might have to enforce dedicated macros ...
- resulted in
-
QTBUG-109220 Whitespace missing around <a translate="no"> link targets
-
- Closed
-
For Gerrit Dashboard: QTBUG-106679 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
441982,7 | qdoc: Add translate attribute to HTML blocks | dev | qt/qttools | Status: MERGED | +2 | 0 |
444113,3 | qdoc: Add translate attribute to HTML blocks | 6.4 | qt/qttools | Status: MERGED | +2 | 0 |
444115,3 | qdoc: Add translate attribute to HTML blocks | tqtc/lts-6.2 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |
444116,6 | qdoc: Add translate attribute to HTML blocks | tqtc/lts-5.15 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |
444992,5 | qdoc: Append translate attribute to few more blocks | dev | qt/qttools | Status: MERGED | +2 | 0 |
448624,3 | qdoc: Append translate attribute to few more blocks | 6.4 | qt/qttools | Status: MERGED | +2 | 0 |
448681,4 | qdoc: Append translate attribute to few more blocks | tqtc/lts-6.2 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |
449034,2 | qdoc: Append translate attribute to few more blocks | tqtc/lts-5.15 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |