Skip to content

Add a workflow that checks for missing and invalid files in POTFILES - #2888

Merged
leolost2605 merged 2 commits into
mainfrom
leolost/potfiles-test
Aug 12, 2026
Merged

Add a workflow that checks for missing and invalid files in POTFILES#2888
leolost2605 merged 2 commits into
mainfrom
leolost/potfiles-test

Conversation

@leolost2605

@leolost2605 leolost2605 commented Aug 10, 2026

Copy link
Copy Markdown
Member

I always forget to update them.
This is taken from flatpak: https://github.com/flatpak/flatpak/blob/main/.github/workflows/check-potfiles.yml and the corresponding script but I simplified it a lot. I know very little bash so lmk if something looks off.

It looks for .vala, .desktop.in and .metainfo.xml.in files and if they contain _( it checks whether they are in the POTFILES

Then it looks through all POTFILES and checks if they exist

First commit adds the check and I confirmed that it fails. Second commit fixes the potfiles and now it passes.

@leolost2605
leolost2605 force-pushed the leolost/potfiles-test branch 4 times, most recently from 03a84ee to 67d9c44 Compare August 10, 2026 17:20
@danirabbit

Copy link
Copy Markdown
Member

Should we not just integrate this into our gettext action?

@leolost2605
leolost2605 force-pushed the leolost/potfiles-test branch from 67d9c44 to 9e33a2b Compare August 10, 2026 17:21
@leolost2605

Copy link
Copy Markdown
Member Author

Should we not just integrate this into our gettext action?

I'd like to get feedback about missing POTFILES/files that don't exist anymore already in the PR. That's why I added it here because I thought the gettext action isn't intended to run on pull requests. But maybe we could add a new action template that does this?

@leolost2605
leolost2605 requested a review from a team August 10, 2026 21:39
Comment thread .github/workflows/check-potfiles.sh Outdated
@leolost2605
leolost2605 force-pushed the leolost/potfiles-test branch from ce0f3ed to 35daac7 Compare August 12, 2026 10:49
@leolost2605
leolost2605 requested a review from lenemter August 12, 2026 10:49
@leolost2605
leolost2605 force-pushed the leolost/potfiles-test branch from 35daac7 to 588c267 Compare August 12, 2026 14:27

@lenemter lenemter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@leolost2605
leolost2605 merged commit 6f2dc20 into main Aug 12, 2026
7 checks passed
@leolost2605
leolost2605 deleted the leolost/potfiles-test branch August 12, 2026 14:48
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.

4 participants