Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: 5.15.1, 5.14.2.2, 5.15.3
-
Fix Version/s: 6.2.0
-
Component/s: Tooling
-
Labels:None
-
Platform/s:
-
Commits:3f7108cfa0abbce35d35352212f9d0a12312963d (qt/tqtc-qttools/6.2) 5217a8553f41d43c21755667f7f05064209ee8f3 (qt/tqtc-qttools/dev)
Description
As it currently stands, the tool pyside2-lupdate does not support translator comments or meta-data strings like its c++ counterpart does.
The c++ version supports the following according to the documentation :
A translator comment for adding extra information to a source string
//: This name refers to a host name. hostNameLabel->setText(tr("Name:"));
Meta-data strings for assigning an ID to a source string
//= qtn_foo_bar QString text = MyMagicClass::tr("Sim sala bim.");
It would be nice to have a pyside counterpart to these types of comments.
For the translator comments:
#: This name refers to a host name.
host_name_label.setText(self.tr("Name:"))
For the meta-data
#= qtn_foo_bar
text = MyMagicClass.tr("Sim sala bim.");
Attachments
Issue Links
- relates to
-
PYSIDE-1252 Add Python support in lupdate
-
- Closed
-