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

Bundling translation file of plist does not work with XCode 13

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 94207621ee (qt/qtbase/dev) 94207621ee (qt/tqtc-qtbase/dev) 2b8938edeb (qt/qtbase/6.4) 2b8938edeb (qt/tqtc-qtbase/6.4) edca76bea8 (qt/qtbase/6.3) edca76bea8 (qt/tqtc-qtbase/6.3) 73278a6038 (qt/tqtc-qtbase/5.15) 47f8ef31d1 (qt/tqtc-qtbase/6.2)

    Description

      Defining below in .pro works fine with XCode 12

      QMAKE_INFO_PLIST = $$PWD/Info.plist
      
      TRANSLATE_ja.files = $$PWD/ja.lproj/InfoPlist.strings
      TRANSLATE_ja.path = ja.lproj
      TRANSLATE_en.files = $$PWD/en.lproj/InfoPlist.strings
      TRANSLATE_en.path = en.lproj
      QMAKE_BUNDLE_DATA += TRANSLATE_ja TRANSLATE_en
      

      plist is translated and the structure in .app is

      en.lproj/InfoPlist.strings
      ja.lproj/InfoPlist.strings
      

      However, this does not work with XCode 13.
      plist is not translated and the result in .app is

      en.lproj/en.lproj/InfoPlist.strings
      ja.lproj/ja.lproj/InfoPlist.strings
      

      It works fine with XCode 13 if TRANSLATE_xx.path is not set, that is in .pro

      TRANSLATE_ja.files = $$PWD/ja.lproj/InfoPlist.strings
      TRANSLATE_en.files = $$PWD/en.lproj/InfoPlist.strings
      QMAKE_BUNDLE_DATA += TRANSLATE_ja TRANSLATE_en
      

      Sample code is attached qtbug98417.zip

      Attachments

        1. qtbug98417.zip
          625 kB
          Nahomi Gröhn

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: