PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 335 - QT_TRANSLATE_NOOP has incorrect signature
: QT_TRANSLATE_NOOP has incorrect signature
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-09-01 09:22 EEST by Matti Airas
Modified: 2010-09-10 19:21 EEST (History)
8 users (show)

See Also:


Attachments
Testcase (240 bytes, text/x-python)
2010-09-01 09:22 EEST, Matti Airas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Airas 2010-09-01 09:22:53 EEST
Created attachment 77 [details]
Testcase

The PySide implementation of Qt macro QT_TRANSLATE_NOOP has an incorrect
signature. The attached testcase gives:

Traceback (most recent call last):
  File "./qtn_bug.py", line 5, in <module>
    listEntries = [QtCore.QT_TRANSLATE_NOOP("MainWindow", "First"),
TypeError: QT_TRANSLATE_NOOP() takes exactly one argument (2 given)

but works on PyQt.

This affects the example i18n.py.
Comment 1 Hugo Parente Lima 2010-09-01 17:00:58 EEST
Fixed in commit:
pyside/e0a5ca517f60b24fed19ac406300be8d103730b4