rpm-software-management / dnf5

Next-generation RPM package management system
Other
238 stars 79 forks source link

POT files are never updated causing dropping newly translated messages #1744

Closed ppisar closed 8 hours ago

ppisar commented 17 hours ago

As pointed in https://github.com/rpm-software-management/dnf5/issues/1736#issuecomment-2383660596 comment, installed DNF5 is missing newly added messages for a translation. The cause is that we never update POT files here in DNF5 repository. As a result msgmerge run later during a build will merge the updated po files against the out-dated pot files, resulting in removing the messages from the translation catalogs.

We either need to amend .github/actions/weblate-pull-translations/action.yml script to copy the POT files from dnf5-l10n repository, or stop calling msgmerge at built time.

The latter option would simplify the process. But because we deliver the POT in source archive and code repository, I'd adopt the former option.