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

lupdate -locations absolute creates relatives and not absolute paths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.4.1, 6.5.0 Beta1
    • 5.15.10
    • Tools: Linguist
    • None
    • Linux/Wayland, Windows
    • 883a8ea122 (qt/qttools/dev) fe6227629f (qt/qttools/6.4) fe6227629f (qt/tqtc-qttools/6.4) 883a8ea122 (qt/tqtc-qttools/dev) fe6227629f (qt/tqtc-qttools/6.4.1) fe6227629f (qt/tqtc-qttools/tqtc/qtinsight-6.4)

    Description

      We are working on a very large project and therefore have thousands of source files with about 12k strings to translate into various languages. In order to keep track we read the generated .ts files into a database and export / import from there to portions we can give to external resources for translation.

      For this processing we want to have absolute file paths in our .ts files.

      The used call is:

      lupdate -recursive -locations absolute -no-obsolete -source-language en_US -target-language <lang> <project-path> -ts <output file path>

      The result looks like:

      <TS version="2.1" language="de_DE" sourcelanguage="en_US">
      <context>
      <name>ApplicationMainWindow</name>
      <message>
      <location filename="../../../XYZ/share/widgets/XYZwindow.ui" line="90"/>
      <location filename="../../../XYZ/share/widgets/XYZwindow.ui" line="90"/>
      <location filename="../../../XYZ/share/widgets/XYZwindow.ui" line="59"/>
      <location filename="../../../XYZ/share/widgets/XYZwindow.ui" line="90"/>
      <source>Time Line</source>
      <translation type="unfinished"></translation>
      </message>

      [...]

       

      We would expect these paths to be absolute.

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            cyril Harald Prasser
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes