-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Action for checking PO files
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Check translations | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'locales/*.po' | ||
pull_request: | ||
paths: | ||
- 'locales/*.po' | ||
|
||
jobs: | ||
check-po-validity: | ||
name: Check translations | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install GNU gettext | ||
run: sudo apt-get install gettext | ||
|
||
- name: Check PO files with msgfmt -v -c | ||
run: | | ||
for i in translations/*.po ; do | ||
echo "checking $i..." | ||
msgfmt -v -c -o /dev/null $i | ||
done |