Remove .pot Files from the Repository and Always Generate Them #1764
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The dnf5 project synchronizes
.pot
and.po
files between the dnf5 repository, the dnf5-l10n repository, and Weblate. The.pot
files are generated using thexgettext
command.While the Source of Truth for
.po
files is Weblate, which syncs them to the dnf5-l10n and dnf5 repositories, the status of the.pot
files is less clear. The build process merges.pot
and.po
files to generate.gmo
files, but there is an issue where the.pot
files in the dnf5 repository are not automatically updated.PR #1745 attempts to resolve this by copying
.pot
files from the dnf5-l10n repository, but this process only occurs during the release phase. This is suboptimal, as.pot
files can be generated directly from the source code.This PR proposes removing
.pot
files from the dnf5 repository and generating them on-the-fly using thexgettext
command. The.pot
files will be generated in the build directory, and the build process will reference them accordingly. Additionally, this PR updates several GitHub Actions workflows to reflect these changes (e.g., removing the step that copies.pot
files from dnf5-l10n and adjusting the path to.pot
files in the Weblate sync workflow).Related: #1744