| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 4 | |
When a property contains comment as well as string, like this:
<property name="text">
<string>My Button</string>
<comment>A shiny button.</comment>
</property>
uic seems to ignore the comment and generates the tr() call:
tr("My Button", 0)
instead of:
tr("My Button", "A shiny button.")
Is this bug, feature, or undefined behavior? Can something be done about it,
so that the comment does show in the tr() call?
The comment is needed to support i18n API of KDE. The Qt comment is treated
as disambiguation string for the text, together with text it forms unique
message key in KDE's PO files. So by not having the comment in the generated
tr() call, this possiblity of disambiguation is lost when using UI files.
--
[ signature omitted ]
Attachment:
pgpqZ1hEbyVWv.pgp
Description: PGP signature