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

Have to clear out entire build to see translation update

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 6.3.1
    • None
    • All

    Description

      I'm adding translations to Japanese and German to my application.  So I added these lines into my CMake file for my project:

       

      # Add files for translations
      qt_add_translations(PSRayTracing_QtUI
        TS_FILES
        i18n/qt_ui_en_US.ts
        i18n/qt_ui_de_DE.ts
        i18n/qt_ui_ja_JP.ts
      )
      add_dependencies(PSRayTracing_QtUI release_translations)

      When I change the locale of my device (e.g. Linux Desktop, Android, or iOS), I do see my app loading the correct translation.  But if a change an entry in a `.ts` file, I'm not seeing the change applied until I've cleared out the entire build  (e.g. via a `cmake --build . --target clean`).

       

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            define-private-public Ben S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes