Details
Description
The current state of pyside2-lupdate is not optimal considering all the new features that lupdate has been getting during the last releases.
Since already there is official Python support in other tools like uic and rcc, we should aim to provide Python support for lupdate too.
This process will allow us to remove the dependency with the pyside2-tools sub-repository, and will enable anyone to use their local tools to interact with Python code too.
At first glance, it seems the structure from pylupdate and lupdate are quite similar, so the additional support will be translated into:
- create a python.cpp file in the lupdate repository that includes the basic functionallities, like load(), the AST parsing, among others.
- disable all the options that make no sense for Python files, like the interaction with .pro files.
Luckily we could reuse the current code from pylupdate and adapt it for the current lupdate structure.
Attachments
Issue Links
- relates to
-
PYSIDE-1376 Translator comments and meta-strings support for pyside-lupdate
- Closed
- resulted from
-
PYSIDE-26 pyside-lupdate location filename ignores path
- Closed
-
PYSIDE-130 pyside-lupdate destroys user data in TS files
- Closed
-
PYSIDE-594 setup.py should install into {install_dir}/bin
- Closed
-
PYSIDE-1139 pyside2-lupdate produces wrong language code
- Closed
-
PYSIDE-131 pyside tr() does not support inheritance
- Closed
-
PYSIDE-244 pyside-lupdate should have a -source-language and -target-language
- Withdrawn
For Gerrit Dashboard: PYSIDE-1252 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
358448,3 | Re-add linguist profiles | dev | qt/qttools | Status: NEW | 0 | 0 |
358451,10 | lupdate: Support Python | dev | qt/qttools | Status: MERGED | +2 | 0 |
358553,8 | Add a linguist example | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
358596,2 | lupdate: Support Python | 6.2 | qt/qttools | Status: MERGED | +2 | 0 |
358625,3 | PySide6: Add entry points for the Qt Linguist tools | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
358676,9 | ApiExtractor: add classmethod attribute to add-function for tr() | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
358829,2 | Add missing resource file for the linguist example | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
359167,7 | WIP: Support classmethod in signatures and properties | dev | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
360186,3 | ApiExtractor: add classmethod attribute to add-function, fix | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
364083,5 | ApiExtractor: add classmethod attribute to add-function for tr() | 6.1 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
367579,2 | lupdate/Python: Add support for extra comments and ids | 6.2 | qt/qttools | Status: MERGED | +2 | 0 |
367632,3 | lupdate/Python: Add support for extra comments and ids | dev | qt/qttools | Status: MERGED | +2 | 0 |
397839,4 | Fix entry points for UI tools on macOS | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
398088,3 | Fix entry points for UI tools on macOS | 6.2 | pyside/pyside-setup | Status: MERGED | +2 | 0 |