diff --git a/translations-desktop-file/.tx/config b/translations-desktop-file/.tx/config deleted file mode 100644 index 4ad42734..00000000 --- a/translations-desktop-file/.tx/config +++ /dev/null @@ -1,8 +0,0 @@ -[main] -host = https://www.transifex.com - -[antix-development.mx-tweak-desktop] -file_filter = po/mx-tweak-desktop_.po -source_file = mx-tweak-desktop.pot -source_lang = en -type = po diff --git a/translations-desktop-file/get_translations b/translations-desktop-file/get_translations index fff38c03..41f84b90 100755 --- a/translations-desktop-file/get_translations +++ b/translations-desktop-file/get_translations @@ -24,8 +24,7 @@ fi #remove existing translations -rm po/* - +rm po/* # get all translations if command -v tx >/dev/null; then diff --git a/translations/.tx/config b/translations/.tx/config deleted file mode 100644 index aa2348d9..00000000 --- a/translations/.tx/config +++ /dev/null @@ -1,8 +0,0 @@ -[main] -host = https://www.transifex.com - -[antix-development.mx-tweak] -file_filter = ./mx-tweak_.ts -source_file = mx-tweak_en.ts -source_lang = en -type = ts diff --git a/translations/get_translations b/translations/get_translations index 6646d980..a30abcd2 100755 --- a/translations/get_translations +++ b/translations/get_translations @@ -1,6 +1,6 @@ #!/bin/bash -APPNAME="mx-tweak" +APPNAME="$(basename $(dirname $(pwd)))" echodo() { echo "${@}" @@ -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