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

Beautify the output in format .po of lconvert or add some sort of argument as "switch"

    XMLWordPrintable

Details

    Description

      When the source string and/or translated string are relatively long, they are automatically broken into multiple lines if converted to .po format. I attached a .ts file as an example. Steps to reproduce:
      1. lrelease test.ts -qm test.qm
      2. lconvert -i test.qm -if qm -o test.po -of po

      Then the content of .po file will look like:

      msgid ""
      "The device '%1' reached via one click to connect (DHCP) has a different "
      "Engineering ID."
      msgstr ""
      "Das Gerät '%1' erreichbar über DHCP (ein Klick um zu verbinden) hat eine "
      "andere Engineering ID."
      

      Some users are not very satisfied with such formatting. They'd like "one-liners", like:

      msgid "The device '%1' reached via one click to connect (DHCP) has a different Engineering ID."
      msgstr "Das Gerät '%1' erreichbar über DHCP (ein Klick um zu verbinden) hat eine andere Engineering ID."
      

      Update: the result is the same if .ts file is converted directly to .po file

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes