Skip to content

Commit

Permalink
Update translation script
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianTM committed Feb 19, 2023
1 parent b688aa0 commit daa4750
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
8 changes: 0 additions & 8 deletions translations-desktop-file/.tx/config

This file was deleted.

3 changes: 1 addition & 2 deletions translations-desktop-file/get_translations
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ fi


#remove existing translations
rm po/*

rm po/*

# get all translations
if command -v tx >/dev/null; then
Expand Down
8 changes: 0 additions & 8 deletions translations/.tx/config

This file was deleted.

12 changes: 4 additions & 8 deletions translations/get_translations
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

APPNAME="mx-tweak"
APPNAME="$(basename $(dirname $(pwd)))"

echodo() {
echo "${@}"
Expand All @@ -22,16 +22,12 @@ type = ts
EOF
fi

#remove existing translations
backdir="ts_$(date '+%Y-%m-%d_%H%M%S')"
mkdir "$backdir"
mv *.ts "$backdir/"
mv "$backdir/${APPNAME}_en.ts" ./
rm -R "$backdir"

# remove existing translations
find . -type f -name '*.ts' -not -name '*.en.ts' -delete

# get all translations
if command -v tx >/dev/null; then
echodo tx pull -r antix-development.$APPNAME --all
fi

lupdate ../*.pro

0 comments on commit daa4750

Please sign in to comment.