[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#738617: /usr/lib/x86_64-linux-gnu/qt5/bin/lupdate: lupdate would need qmldevtools to collect translation strings from qml files



Package: qttools5-dev-tools
Version: 5.2.0-9
Severity: minor
File: /usr/lib/x86_64-linux-gnu/qt5/bin/lupdate

Dear Maintainer,

lupdate has conditional support to collect strings from qml files. To
enable qml support qttools build would need access to qmldevtools module.
If I understand qt module system correctly that would mean build
dependency to qtdeclarative5-private-dev.

The optional dependency is in 
src/linguist/lupdate/lupdate.pro

test.pro:
TARGET = test

QT += quick

lupdate_only {
SOURCES += test.qml
}

TRANSLATIONS = en.ts

OTHER_FILES = test.qml


test.qml:

import QtQuick 2.0

Rectangle {
	width: 400
	height: 400

	Text {
		text: qsTr("Translated text")
	}
}


result:
$ lupdate test.pro 
lupdate warning: Some files have been ignored due to missing qml/javascript support
Updating 'en.ts'...
    Found 0 source text(s) (0 new and 0 already existing)

Thanks,
Pauli


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages qttools5-dev-tools depends on:
ii  libc6                            2.17-97
ii  libgcc1                          1:4.8.2-15
ii  libqt5core5a [qtbase-abi-5-2-0]  5.2.0+dfsg-7
ii  libqt5dbus5                      5.2.0+dfsg-7
ii  libqt5designer5                  5.2.0-9
ii  libqt5designercomponents5        5.2.0-9
ii  libqt5gui5                       5.2.0+dfsg-7
ii  libqt5help5                      5.2.0-9
ii  libqt5network5                   5.2.0+dfsg-7
ii  libqt5printsupport5              5.2.0+dfsg-7
ii  libqt5sql5                       5.2.0+dfsg-7
ii  libqt5widgets5                   5.2.0+dfsg-7
ii  libqt5xml5                       5.2.0+dfsg-7
ii  libstdc++6                       4.8.2-15
ii  qtchooser                        39-g4717841-2
ii  zlib1g                           1:1.2.8.dfsg-1

Versions of packages qttools5-dev-tools recommends:
ii  libqt5sql5-sqlite  5.2.0+dfsg-7

qttools5-dev-tools suggests no packages.

-- no debconf information


Reply to: