> 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
>
I check this with lupdate from Qt 4.6.2. With the package
"what.the.fuck.package;" is broken. But if I change the package name to
"com.nettrace.jpa" or "org.nettrace.jpa" the lupdate works as expected.
this is the ouput test.ts file:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
<name>com.nettrace.jpa.WtfDotInNameOfClass</name>
<message>
<location filename="EditRecipient.java" line="20"/>
<source>Information</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="EditRecipient.java" line="20"/>
<source>Input string is not email.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
The possible problem is with malformed package names.
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest