Results 1 to 3 of 3

Thread: lupdate breaks files

  1. #1
    Join Date
    Dec 2008
    Posts
    5
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default lupdate breaks files

    Hi,

    I have the following scenario.
    There are 36 TS files in my project.
    35 of them were updated once in a while with lupdate, so they went through almost every release of Qt from 3.2 to 4.5.
    One file created with Linguist 3.x was never updated in between because we forgot to put it in the TRANSLATIONS section.
    Now I included the filename there and ran lupdate. The following happened:
    - all files before the outdated on were processed properly
    - the file itself was updated but the location tag was not included
    - all files that came after the outdated one got their location tags removed

    It looks a bit like Linguist switching to a legacy mode if confronted with old TS files and then not switching back.

    Did anyone ever see a thing like that?

    Regards

  2. #2
    Join Date
    Dec 2008
    Posts
    5
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: lupdate breaks files

    Just some missing bits:

    I tried to convert the file with
    Qt Code:
    1. lconvert -if ts11 -of ts --verbose -i psi_sl.ts -o psi_sl2.ts
    To copy to clipboard, switch view to plain text mode 
    but it only added the new XML header.

    Here I have Qt 4.5.1 running.

    Regards

  3. #3
    Join Date
    Dec 2008
    Posts
    5
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: lupdate breaks files

    I solved my problem by installing a Debian Lenny in a VirtualBox to have Qt 4.4, ran lupdate there (which added the location tags), copied the file back to my system, ran lconvert to make it a TS20.

    After that the normal lupdate run worked again. All the files are processed properly.

    No idea though why lupdate from Qt 4.5 chokes here.

    Regards

Similar Threads

  1. lupdate doesn't see any sources in subdirs
    By araglin in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2009, 07:30
  2. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 21:05
  3. 4.2 and lupdate
    By Byngl in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 03:55
  4. Replies: 5
    Last Post: 22nd September 2006, 08:04
  5. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.