Skip to content

Commit

Permalink
[GitHub Actions] Tweak crowdin_download_translations
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 8, 2024
1 parent 9519915 commit b51fab3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/crowdin_download_translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,24 @@ jobs:
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

- name: Temporary debug output
if: success() && (github.repository == 'Warzone2100/warzone2100')
run: |
cd po
ls -al
- name: Cleanup .po files
if: success() && (github.repository == 'Warzone2100/warzone2100')
run: |
# 1.) Use msgmerge (with identical settings to WZ's po/CMakeLists.txt) to fix up some potential .po formatting differences
# For warzone2100.pot:
find po -name '*.po' -type f -maxdepth 1 \
-exec \
msgmerge '--no-wrap' '--width=1' '--output-file={}' '{}' 'po/warzone2100.pot' ';'
msgmerge '--no-wrap' '--width=1' '--update' '{}' 'po/warzone2100.pot' ';'
# For warzone2100_guide.pot:
find po/guide -name '*.po' -type f -maxdepth 1 \
-exec \
msgmerge '--no-wrap' '--width=1' '--output-file={}' '{}' 'po/guide/warzone2100_guide.pot' ';'
msgmerge '--no-wrap' '--width=1' '--update' '{}' 'po/guide/warzone2100_guide.pot' ';'
# 2.) Cleanup untranslated .po files
# For warzone2100.pot:
Expand Down

0 comments on commit b51fab3

Please sign in to comment.