[ffe] Add support for Qt Designer UI files
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | intltool |
High
|
Данило Шеган | ||
| | intltool (Ubuntu) |
Medium
|
Unassigned | ||
Bug Description
Qt Designer files are XML files that describe the UI of a Qt application, and are the Glade .ui file equivalent in the Qt world.
Their format definition can be found here:
- http://
While many Qt projects use Qt's own i18n/l10n framework, others rely on gettext. Some examples are core Ubuntu applications such as the Ubuntu One client and Checkbox, which have started to migrate to Qt-based user interfaces while overriding Qt's i18n system and using gettext instead.
These cases need a way to extract translatable messages from Qt's .ui files, merge the translations in .pot files and thus integrate with the gettext workflow.
Related branches
- Данило Шеган: Approve on 2014-02-11
-
Diff: 392 lines (+306/-1)7 files modifieddoc/intltool-extract.8 (+2/-0)
intltool-extract.in (+73/-1)
tests/cases/Makefile.am (+2/-0)
tests/cases/extract-qtdesigner.ui (+210/-0)
tests/results/Makefile.am (+1/-0)
tests/results/extract-qtdesigner.ui.h (+13/-0)
tests/selftest.pl.in (+5/-0)
| dobey (dobey) wrote : | #1 |
| tags: | added: kubuntu |
| Changed in intltool (Ubuntu): | |
| importance: | Undecided → Medium |
| status: | New → Triaged |
| milestone: | none → ubuntu-14.04 |
| Changed in intltool: | |
| milestone: | none → 0.51.0 |
| assignee: | nobody → Данило Шеган (danilo) |
| importance: | Undecided → High |
| status: | New → Fix Committed |
| Changed in intltool (Ubuntu): | |
| milestone: | ubuntu-14.04 → none |
| Sandro Mani (sandromani) wrote : | #2 |
Shouldn't the result of getXMLstring be passed to entity_decode first? Something along the attached patch. Perhaps I'm not doing this as was planned (basically I'm running a regex-replace on the generate ui_XXX.h files to replace QApplication:
[1] https:/
The attachment "intltool_
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| Changed in intltool: | |
| status: | Fix Committed → Fix Released |
| dobey (dobey) wrote : | #4 |
This apparently needs a freeze exception to be able to get the new version into Ubuntu which contains this. :-/
| summary: |
- Add support for Qt Designer UI files + [ffe] Add support for Qt Designer UI files |
| Changed in intltool (Ubuntu): | |
| status: | Triaged → New |
| Iain Lane (laney) wrote : | #5 |
Are you asking to upload a patch to just add this feature or the new upstream release?
| Sebastien Bacher (seb128) wrote : | #6 |
the new upstream release
| Sebastien Bacher (seb128) wrote : | #7 |
the corresponding changes/requested upload is https:/
| Daniel Holbach (dholbach) wrote : | #8 |
Looks good from a sponsoring perspective. Can we get somebody from the release team to review this?
| Daniel Holbach (dholbach) wrote : | #9 |
<infinity> dholbach: Alright, the "new feature" parts of that look reasonably isolated, go for it.
| Changed in intltool (Ubuntu): | |
| status: | New → Confirmed |
| Changed in intltool (Ubuntu): | |
| status: | Confirmed → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #10 |
This bug was fixed in the package intltool - 0.51.0-1
---------------
intltool (0.51.0-1) experimental; urgency=medium
[ Rodney Dawes ]
* New upstream release.
- Support Qt Designer UI files (LP: #953342)
- Do not include full path to source files in template. (LP: #1316777)
- Support spaces around '=' in key files. (LP: #1395561)
- Support single quotes in intltool-extract regex. (LP: #1034153)
* debian/watch:
- Fix search pattern URL to be https.
* debian/control.in:
- Bump standards version.
[ Iain Lane ]
* debian/
-- Rodney Dawes <email address hidden> Mon, 16 Mar 2015 18:17:42 +0000
| Changed in intltool (Ubuntu): | |
| status: | Fix Committed → Fix Released |


For the record, Ubuntu One is using gettext/intltool already for the Qt apps, and not using the Qt Linguist features.