Skip to content

Support packaging of project translation files#129

Merged
suricactus merged 5 commits intomasterfrom
project_translation_files
Mar 3, 2026
Merged

Support packaging of project translation files#129
suricactus merged 5 commits intomasterfrom
project_translation_files

Conversation

@nirvn
Copy link
Member

@nirvn nirvn commented Sep 14, 2025

This unlocks translated projects on QFieldCloud by insuring that {project name}_{2-letter language code}.qm files are copied into the packaged project directory.

The PR also insures that sidecar translations and project plugin files properly adopt the exported project name (i.e. myproject.qgs -> myproject_cloud.qgs means the project plugin file will become myproject_cloud.qml and translation files would be myproject_de.qm, myproject_fr.qm, etc.).

Test coverage included.

Copy link
Collaborator

@suricactus suricactus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice functionality, +1 for the tests.

Code looks good. A few tiny comments on readability. Feel free to merge.

Do you consider this "QFieldCloud sensitive files", such as the plugins? Shall we add them here:
https://github.com/opengisch/QFieldCloud/blob/master/docker-app/qfieldcloud/filestorage/utils.py#L69

@nirvn
Copy link
Member Author

nirvn commented Sep 17, 2025

@suricactus , review addressed thanks.

Regarding "sensitive files", I wouldn't flag the translations as being sensitive. If you have a strong feeling about it, we can add it into the above-mentioned function.

@suricactus suricactus force-pushed the project_translation_files branch from 2fad9c6 to b2048aa Compare December 14, 2025 23:39
@suricactus suricactus force-pushed the project_translation_files branch from b2048aa to 891b4fc Compare March 3, 2026 16:57
@suricactus suricactus force-pushed the project_translation_files branch from 891b4fc to 17e5272 Compare March 3, 2026 18:09
@suricactus suricactus merged commit 9d18c2b into master Mar 3, 2026
7 checks passed
@suricactus suricactus deleted the project_translation_files branch March 3, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants