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

lconvert: converting from .po to .ts adds extra new lines to comments

    XMLWordPrintable

Details

    • 945d7c1f00f08fb1cb29bd548e8c4d0a42857f67 (qt/qttools/5.13)

    Description

      For example:

      msgid ""
      msgstr ""
      "MIME-Version: 1.0\n"
      "Content-Type: text/plain; charset=UTF-8\n"
      "Content-Transfer-Encoding: 8bit\n"
      "Plural-Forms: nplurals=2; plural=(n != 1);\n"
      "X-Language: fi_FI\n"
      
      # translator comment
      #. some text
      #. ts-id some-id
      msgid "some text"
      msgstr "..."
      

      The "translator comment" and "some text" will have line feed at the end causing it to become:

          <message id="some-id">
              <source>some text</source>
              <extracomment>some text
      </extracomment>
              <translatorcomment>translator comment
      </translatorcomment>
              <translation>...</translation>
          </message>
      

      The issue is that when converting from .ts to .po to .ts, there seem to be more changes than necessary because of these new lines.

      Attachments

        For Gerrit Dashboard: QTBUG-67908
        # Subject Branch Project Status CR V

        Activity

          People

            lugerard Lucie Gerard
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes