Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyQt 6 is missing qt_{lang}.qm #7682

Closed
JakobDev opened this issue Jun 5, 2023 · 0 comments · Fixed by #7683
Closed

PyQt 6 is missing qt_{lang}.qm #7682

JakobDev opened this issue Jun 5, 2023 · 0 comments · Fixed by #7683
Labels

Comments

@JakobDev
Copy link

JakobDev commented Jun 5, 2023

PyQt 6 has in it's package the directory Qt6/translations. In this Directory there are the translations. The main ones are qt_{lang}.qm and qtbase_{lang}.qm. This files should be shipped with every PyQt6 Applications. There are other files for specific modules e.g. qtlocation_{lang}.qm, but they don't matter here.

Now let's pack test.py with pyinstaller test.py:

from PyQt6.QtWidgets import QApplication, QWidget
import sys


def main() -> None:
    app = QApplication(sys.argv)

    w = QWidget()
    w.show()

    sys.exit(app.exec())


if __name__ == "__main__":
    main()

If you take a look at dist/test/PyQt6/Qt6/translations, you will only find the qtbase_{lang}.qm, but not the qt_{lang}.qm files.

@JakobDev JakobDev added the triage Please triage and relabel this issue label Jun 5, 2023
@JakobDev JakobDev changed the title PyQt 6 is missing qt_{lang}.qm PyQt 6 is missing qt_{lang}.qm Jun 5, 2023
@rokm rokm added bug and removed triage Please triage and relabel this issue labels Jun 5, 2023
@rokm rokm closed this as completed in #7683 Jun 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants