Skip to content

Commit

Permalink
Add problem matcher for gettext --check messages
Browse files Browse the repository at this point in the history
  • Loading branch information
n-peugnet committed Jun 2, 2024
1 parent e10b0d4 commit 26a21d6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/gettext-problem-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "gettext",
"pattern": [
{
"regexp": "^(.+):(\\d+): (\\w+): (.+)$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4
}
]
}
]
}
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install gettext
- name: Add problem matcher
run: echo "::add-matcher::.github/gettext-problem-matcher.json"
- name: Check locale files with gettext
run: make locale-check
run: make locale-check 2>&1 | sed -E 's#^([^ ]+\.po)#sphinx/locale/\1#'

docs-lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 26a21d6

Please sign in to comment.