Hi there.

I think I found a bug in lupdate.

See attached file. It is simple java class extended from QDialog.

        package what.the.fuck.package;

        public class WtfDotInNameOfClass extends QDialog  {

            Ui_eDokumentRecipientsDialog ui;
            LinkedList<String> m_cc = new LinkedList();
            String m_recipient = null;

        ....

Using qtjambi lupdate, the result of
~/opt/qtjambi-linux64-lgpl-4.5.2_01/bin/lupdate -extensions java . -ts test.ts

is:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
    <name>.WtfDotInNameOfClass</name>
    <message>
        <source>Information</source>
        <translation type="unfinished"></translation>
    </message>
...

Where is the package name?

Using qt 4.6 lupdate, following error occure:

lupdate-qt4 -extensions java . -ts test.ts
Scanning directory '.'...
/mnt/public/msk/d/EditRecipient.java:1: Package keyword should be followed by 
com.package.name;
Aborted

The package name is not detected at all.

My questions are:

1.      Is this the qtjambi or qt bug? Is the qtjambi lupdate differing from qt
        lupdate? I think it is the same binary as was build from qt sources ...

2.      if the same, is ts extraction from java sources officially supported by
        nokia ( to fill bugreport there ) ?


thx

-- 
Dusan

Attachment: EditRecipient.java
Description: application/executable

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to