PDA

View Full Version : lupdate breaks files



icwiener
16th May 2009, 18:16
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

icwiener
16th May 2009, 20:33
Just some missing bits:

I tried to convert the file with

lconvert -if ts11 -of ts --verbose -i psi_sl.ts -o psi_sl2.ts
but it only added the new XML header.

Here I have Qt 4.5.1 running.

Regards

icwiener
17th May 2009, 02:01
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