forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to new Transifex CLI (CleverRaven#54892)
- Loading branch information
Showing
3 changed files
with
16 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,9 @@ jobs: | |
if: github.repository == 'CleverRaven/Cataclysm-DDA' | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: "Install dependencies" | ||
- name: "Install Transifex CLI" | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install gettext python3-pip | ||
sudo pip3 install transifex-client | ||
curl -s https://github.com/transifex/cli/releases/download/v1.0.0/tx-linux-amd64.tar.gz | sudo tar zxvf - -C /usr/bin tx | ||
- name: "Checkout" | ||
uses: actions/checkout@v2 | ||
- name: "Get current date" | ||
|
@@ -23,15 +21,8 @@ jobs: | |
format: 'DD MMMM YYYY' | ||
- name: "Pull translations" | ||
env: | ||
TOKEN: ${{ secrets.TX_TOKEN }} | ||
run: | | ||
export TX_TOKEN=$TOKEN | ||
rm lang/po/*.po | ||
until tx pull -a | ||
do | ||
echo "Retry in 10 seconds..." | ||
sleep 10 | ||
done | ||
TX_TOKEN: ${{ secrets.TX_TOKEN }} | ||
run: tx pull | ||
- name: Create Pull Request | ||
uses: peter-evans/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
[main] | ||
host = https://www.transifex.com | ||
|
||
[cataclysm-dda.master-cataclysm-dda] | ||
file_filter = lang/po/<lang>.po | ||
[o:cataclysm-dda-translators:p:cataclysm-dda:r:master-cataclysm-dda] | ||
file_filter = lang/po/<lang>.po | ||
source_file = lang/po/cataclysm-dda.pot | ||
source_lang = en | ||
type = PO | ||
minimum_perc = 0 | ||
source_file = lang/po/cataclysm-dda.pot | ||
source_lang = en | ||
type = PO | ||
|