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

Generated TS files are missing the language and sourcelanguage attributes

XMLWordPrintable

    • 9b4d45d40 (dev), 31229209a (6.8), 78c505359 (6.7), d722167dc (dev), c649eda7f (6.9), e37029a42 (6.8)

      TS files normally have the language and sourcelanguage attributes set for the target and source languages.
      For example,

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE TS>
      <TS version="2.1" language="fr_FR" sourcelanguage="en_US" >
      </TS>
      

      The qt_add_translations() command is generating .ts files which are missing the language and sourcelanguage attributes.
      For example,

      <TS version="2.1">
      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE TS>
      <TS version="2.1">
      </TS>
      

      Same behavior also observed when generating a plurals-only .ts file via the qt_add_lupdate(PLURAL_TS_FILE file.ts) and qt_add_translations(PLURAL_TS_FILE file.ts) commands.

      To reproduce issue, build attached project with update_translations. 

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

            jbornema Joerg Bornemann
            lysandra.sola Lysandra Sola
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: