mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-06 01:48:29 +08:00
Correct the text domain for translation files (#88)
Signed-off-by: John Blackbourn <john@johnblackbourn.com>
This commit is contained in:
parent
23d0f164fa
commit
e9262f4e44
4 changed files with 2 additions and 2 deletions
4
.github/workflows/generate-pot-pr.yml
vendored
4
.github/workflows/generate-pot-pr.yml
vendored
|
@ -48,7 +48,7 @@ jobs:
|
||||||
|
|
||||||
- name: Generate POT
|
- name: Generate POT
|
||||||
run: |
|
run: |
|
||||||
wp i18n make-pot . "./languages/${{ github.event.repository.name }}.pot" --headers='{"Report-Msgid-Bugs-To":"https://github.com/${{ github.event.repository.full_name }}/issues"}'
|
wp i18n make-pot . "./languages/fair.pot" --headers='{"Report-Msgid-Bugs-To":"https://github.com/${{ github.event.repository.full_name }}/issues"}'
|
||||||
|
|
||||||
- name: Check if there are changes
|
- name: Check if there are changes
|
||||||
run: echo "CHANGES_DETECTED=$([[ -z $(git status --porcelain) ]] && echo "0" || echo "1")" >> $GITHUB_ENV
|
run: echo "CHANGES_DETECTED=$([[ -z $(git status --porcelain) ]] && echo "0" || echo "1")" >> $GITHUB_ENV
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
if: env.CHANGES_DETECTED == 1
|
if: env.CHANGES_DETECTED == 1
|
||||||
run: |
|
run: |
|
||||||
git add "./languages/${{ github.event.repository.name }}.pot"
|
git add "./languages/fair.pot"
|
||||||
git commit -s -m "Generate POT - $(date +'%Y-%m-%d')"
|
git commit -s -m "Generate POT - $(date +'%Y-%m-%d')"
|
||||||
git push origin generate-pot
|
git push origin generate-pot
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue