Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Problem with lupdate.
Forum Updated to NodeBB v4.3 + New Features

[Solved] Problem with lupdate.

Scheduled Pinned Locked Moved General and Desktop
11 Posts 6 Posters 10.5k 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.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #2

    Seems to be a known problem:

    "QTBUG-14825":http://bugreports.qt.nokia.com/browse/QTBUG-14825
    http://www.qtcentre.org/archive/index.php/t-25907.html

    http://www.catb.org/~esr/faqs/smart-questions.html

    1 Reply Last reply
    0
    • B Offline
      B Offline
      blex
      wrote on last edited by
      #3

      To Volker:

      I think that question is not about

      @
      circular inclusion of <filename>
      @

      but about last message

      @
      Premature end of document
      @


      Oleksiy Balabay

      1 Reply Last reply
      0
      • B Offline
        B Offline
        blex
        wrote on last edited by
        #4

        To soroush:

        Could you share the persian.ts file? I will try it in my environment


        Oleksiy Balabay

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

          persian.ts is an emoty file I simply added to project. I also added below lines to the .pro file. (I'm trying to do what explained in training video)

          @TRANSLATIONS+= persian.ts@

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #6

            I get a similar error when a .ts file exists but is empty. It works again when I remove the empty file.

            So you could try to remove persian.ts and try again.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Smar
              wrote on last edited by
              #7

              I think lrelease should tell proper error instead of this error...

              So I’d suggest you to submit a bug about that to Qt’s bug tracker.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                soroush
                wrote on last edited by
                #8

                OK. Thanks.

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vishu
                  wrote on last edited by
                  #9

                  hi.. i am struck exactly here can you explain how you resolved it... please.....

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

                    Hi,
                    Add following lines in <project_name>.ts file :

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

                    It may resolve the problem of "Premature end of document".

                    1 Reply Last reply
                    0
                    • V Offline
                      V Offline
                      vishu
                      wrote on last edited by
                      #11

                      Hi...
                      Thanks for your replay i solved it long time back,
                      Thanks

                      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 Extensions
                      • Unsolved