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 881 - pyside-lupdate generates incorrect context when a class contains another class
: pyside-lupdate generates incorrect context when a class contains another class
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: pyside-tools
: 1.0.3
: All All
: P3 normal
Assigned To: Lauro Moura
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-10 15:11 EEST by Anders Boberg
Modified: 2011-06-22 20:14 EEST (History)
8 users (show)

See Also:


Attachments
Example with incorrect context for translation string. (570 bytes, text/plain)
2011-06-10 15:11 EEST, Anders Boberg
Details
Project file used when running pyside-lupdate (42 bytes, text/plain)
2011-06-10 15:13 EEST, Anders Boberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Boberg 2011-06-10 15:11:48 EEST
Created attachment 339 [details]
Example with incorrect context for translation string.

When using pyside-lupdate to generate a translation file for a module with a
class-within-a-class, the context for the translation strings of the outer
class is sometimes set to be the name of the inner class, with the end result
that the string is not translated properly by QTranslator.

This seems to occur only when the inner class is declared before the
translation string. A workaround for the bug is to declare the inner class
after the string that is to be translated.

I have attached an example that reproduces this bug for me.
Comment 1 Anders Boberg 2011-06-10 15:13:14 EEST
Created attachment 340 [details]
Project file used when running pyside-lupdate
Comment 2 Marcelo Lira 2011-06-20 16:17:44 EEST
Fixed in PySide-Tools/365f37c4
Comment 3 renato filho 2011-06-22 20:14:15 EEST
release 1.0.4