Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-106679

Prepare documentation pages for automated translation

    XMLWordPrintable

Details

    • 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)

    Description

      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 ...

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              veshivas Venugopal Shivashankar
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: