Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Not all the text in my application is translated.
Qt 6.12 LTS is out! See what's new in the release blog

[Solved] Not all the text in my application is translated.

Scheduled Pinned Locked Moved General and Desktop
14 Posts 5 Posters 9.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #4

    Yes I did use tr() on all strings.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sfilippidis
      wrote on last edited by
      #5

      Strange! Could you post one line of code which translated and one that did not?

      https://www.filippidis.name/

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #6

        In one line:

        @gpsUpdaterScreen = new ValueUpdater(tr("GPS coordinates"), tr("Get the GPS coordinates of the demo equipment."), myResources->getGpsObject(), tr("In order to affect the GPS position, please move around."));@

        The last string in that line is translated - the rest is not.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RazrFalcon
          wrote on last edited by
          #7

          Can you post lupdate log?

          PS: I think the use of tr() in class constructor is bad idea...

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #8

            Setting up a MinGW/Qt only environment...
            -- QTDIR set to C:\Qt\4.7.4
            -- PATH set to C:\Qt\4.7.4\bin
            -- Adding C:\MinGW\bin to PATH
            -- Adding C:\Windows\System32 to PATH
            -- QMAKESPEC set to win32-g++

            C:\Qt\4.7.4>cd..

            C:\Qt>cd..

            C:>cd Users\Mads\workspace\FlexTabDemo

            C:\Users\Mads\workspace\FlexTabDemo>lupdate FlexTabDemo.pro
            C:/Qt/4.7.4/mkspecs/features/default_post.prf(5):Function 'system' is not implem
            ented
            C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not im
            plemented
            C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not im
            plemented
            C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not im
            plemented
            C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not im
            plemented
            C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not im
            plemented
            C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(80):Function 'eval' is not im
            plemented
            C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(82):Function 'eval' is not im
            plemented
            C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(84):Function 'eval' is not im
            plemented
            C:/Qt/4.7.4/src/corelib/tools/qstringbuilder.h:45: circular inclusion of c:/Qt/4
            .7.4/include/QtCore/qstring.h
            C:/Qt/4.7.4/src/gui/painting/qwmatrix.h:45: circular inclusion of c:/Qt/4.7.4/in
            clude/QtGui/qmatrix.h
            c:/Qt/4.7.4/include/QtGui/qaction.h:1: circular inclusion of C:/Qt/4.7.4/src/gui
            /kernel/qaction.h
            c:/Qt/4.7.4/include/QtGui/qboxlayout.h:1: circular inclusion of C:/Qt/4.7.4/src/
            gui/kernel/qboxlayout.h
            C:/Qt/4.7.4/src/gui/kernel/qgridlayout.h:45: circular inclusion of c:/Qt/4.7.4/i
            nclude/QtGui/qlayout.h
            Updating 'dan.ts'...
            Found 82 source text(s) (0 new and 82 already existing)
            Updating 'eng.ts'...
            Found 82 source text(s) (0 new and 82 already existing)
            Updating 'ger.ts'...
            Found 82 source text(s) (0 new and 82 already existing)

            C:\Users\Mads\workspace\FlexTabDemo>

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #9

              [quote author="RazrFalcon" date="1321371681"]PS: I think the use of tr() in class constructor is bad idea...[/quote]
              Could you explain why you think so?
              I don't see anything wrong with doing that in this way, but I may be overlooking something.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sfilippidis
                wrote on last edited by
                #10

                I agree with Andre. :-)

                https://www.filippidis.name/

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  RazrFalcon
                  wrote on last edited by
                  #11

                  Andre, it's only my suggestion. I'm not sure about this. :-)

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #12

                    Okay I'm a bit embarrassed...

                    When I first were introduced to Qt Linguist (last week) - a colleague showed me how to use it. It seemed quite simple. And it is, really! You just have to do ALL steps. :)

                    I forgot to run "lrelease myProject.pro"...

                    I'm sorry for the inconvenience.

                    Thank you for your time!

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andre
                      wrote on last edited by
                      #13

                      Ah, ok. Thanks for reporting back!

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        syrianzoro
                        wrote on last edited by
                        #14

                        I get the same problem but I can't find the solution ?
                        please tell me how you resolved it ?
                        the ts file doesn't generated absolutely

                        @

                        Project MESSAGE:
                        C:/Qt/4.7.4/mkspecs/features/default_post.prf(5):Function 'system' is not implemented
                        C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not implemented
                        C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not implemented
                        C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not implemented
                        C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not implemented
                        C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not implemented
                        C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(80):Function 'eval' is not implemented
                        C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(82):Function 'eval' is not implemented
                        C:/Qt/4.7.4/mkspecs/features/debug_and_release.prf(84):Function 'eval' is not implemented

                        This application has requested the Runtime to terminate it in an unusual way.
                        Please contact the application's support team for more information.
                        @

                        Qt is the future

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt
                        • Unsolved