Skip to content

Commit

Permalink
ci: Upgrade smarty-gettext
Browse files Browse the repository at this point in the history
  • Loading branch information
kumy committed Apr 9, 2024
1 parent 6ddd3d3 commit ae00651
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ on:
type: boolean
description: 'Push to crowdin?'
required: true
default: 'true'
default: true

jobs:
crowdin:
if: "!contains(github.event.head_commit.message, 'skip translate')"
if: "${{ !contains(github.event.head_commit.message, 'skip translate') }}"
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -49,11 +49,17 @@ jobs:
- name: Extract strings from smarty templates
run: |
./vendor/bin/tsmarty2c.php -o ${{ steps.vars.outputs.tmp_dir }}/smarty.pot ./website/app-templates ./website/app-templates/smarty/js/*.js
./vendor/smarty-gettext/smarty-gettext/tsmarty2c.php \
-o ${{ steps.vars.outputs.tmp_dir }}/smarty.pot \
./website/app-templates \
./website/app-templates/smarty/js/*.js
- name: Concatenate po files
run: |
msgcat -o website/app/languages/messages.po.txt ${{ steps.vars.outputs.tmp_dir }}/messages.pot ${{ steps.vars.outputs.tmp_dir }}/smarty.pot
msgcat \
-o website/app/languages/messages.po.txt \
${{ steps.vars.outputs.tmp_dir }}/messages.pot \
${{ steps.vars.outputs.tmp_dir }}/smarty.pot
- name: crowdin action
uses: crowdin/github-action@v1
Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"robmorgan/phinx": "^0.14",
"sentry/sentry": "^4.6",
"symfony/http-client": "^5.4",
"smarty-gettext/smarty-gettext": "^1.6",
"smarty-gettext/smarty-gettext": "^1.7",
"smarty/smarty": "^4.1",
"tecnickcom/tcpdf": "^6.3",
"torann/json-ld": "0.0.19",
Expand Down Expand Up @@ -80,5 +80,10 @@
"fakerphp/faker": "^1.23"
},
"name": "geokrety/v2",
"description": "GKv2"
"description": "GKv2",
"config": {
"allow-plugins": {
"php-http/discovery": false
}
}
}
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ae00651

Please sign in to comment.