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

Rich text in Linguist

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Tools: Linguist
    • None

    Description

      Hello everyone,

      I introduced a formatted text in a QLabel widget ("ab/ someText") using
      the Qt Designer. When I generate the .ts files, the corresponding text
      to be translated is the following:

      <html><head><meta name="qrichtext" content="1" /><style
      type="text/css">\np, li { white-space: pre-wrap; }\n</style></head><body
      style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400;
      font-style:normal;">\n<p style=" margin-top:0px; margin-bottom:0px;
      margin-left:0px; margin-right:0px; -qt-block-indent:0;
      text-indent:0px;"><span style=" font-weight:600;">ab/</span>
      someText</p></body></html>
      

      I find the text above difficult to translate, obviously by a translator
      (not a programmer), and the problem is worse when we intend to translate
      a right-to-left language.

      So, to resolve this problem, I suggest adding in Qt Linguist the
      possibility of drawing the source text as plain text or rich text and
      adding buttons to format the translated text (make it bold, italic,
      colors, etc.).

      Thanks,
      Moez

      Attachments

        Issue Links

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

          Activity

            People

              kkohne Kai Köhne
              hjk hjk
              Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes