mirror of
https://github.com/cemu-project/Cemu-Language.git
synced 2025-04-29 14:19:27 -04:00
Merge branch 'cemu-project:master' into master
This commit is contained in:
commit
460e40dde3
3 changed files with 5189 additions and 928 deletions
46
.github/workflows/sync.yml
vendored
Normal file
46
.github/workflows/sync.yml
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
name: Commit to Cemu repo
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
convert:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Cemu-Language repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: ${{ github.repository_owner }}/Cemu-Language
|
||||
path: Cemu-Language
|
||||
|
||||
- name: Install gettext
|
||||
run: sudo apt-get install -y gettext
|
||||
|
||||
- name: Convert .po to .mo
|
||||
run: |
|
||||
for po_file in $(find Cemu-Language -name "*.po"); do
|
||||
mo_file="${po_file%.po}.mo"
|
||||
msgfmt $po_file -o $mo_file
|
||||
done
|
||||
|
||||
- name: Checkout Cemu repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: ${{ github.repository_owner }}/Cemu
|
||||
path: Cemu
|
||||
token: ${{ secrets.CI_CEMU_PUSH_TOKEN }}
|
||||
|
||||
- name: Copy .mo files
|
||||
run: |
|
||||
mkdir -p Cemu/bin/resources
|
||||
cp -r Cemu-Language/resources/* Cemu/bin/resources/
|
||||
|
||||
- name: Commit and push .mo files
|
||||
run: |
|
||||
cd Cemu
|
||||
git config user.name "Cemu-Language CI"
|
||||
git config user.email "github-actions@github.com"
|
||||
git add bin/resources/**/*.mo
|
||||
git commit -m "Update translation files" || exit 0 # Don't fail if no changes
|
||||
git push
|
4122
resources/ja/cemu.po
4122
resources/ja/cemu.po
File diff suppressed because it is too large
Load diff
1949
resources/uk/cemu.po
Normal file
1949
resources/uk/cemu.po
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue