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