diff --git a/scripts/transifex-extract-keys.sh b/scripts/transifex-extract-keys.sh deleted file mode 100755 index 7f035e59..00000000 --- a/scripts/transifex-extract-keys.sh +++ /dev/null @@ -1,44 +0,0 @@ -#! /bin/sh -x - -extract_django() { - DIR=$1 - - if [ -d ${DIR} ] - then - pushd ${DIR} - TEMPLANG=foobar - django-admin.py makemessages --no-wrap -l ${TEMPLANG} -e html,txt,js - # Remove the creation date to avoid spurious commits - grep -v "POT-Creation-Date:" locale/${TEMPLANG}/LC_MESSAGES/django.po > locale/django.pot - rm -rf locale/${TEMPLANG} - popd - fi -} - -# Try to extract keys no matter where we are -[ -d www ] && extract_django www -[ -d ../www ] && extract_django ../www - -# Push keys to transifex -tx push --no-interactive --source - -# Commit any changes -git diff - -git config user.email "hakan@gurkensalat.com" -git config user.name "Hakan Tandogan" - -git add scripts/transifex-extract-keys.sh -git commit -m "Updated message key extraction script" scripts/transifex-extract-keys.sh - -git config user.email "transifex-daemon@gurkensalat.com" -git config user.name "Transifex Daemon" - -POTFILE=$(find . -name \*.pot | head -n 1) -git add ${POTFILE} -git commit -m "Extracted message keys" ${POTFILE} - -# Keep Jenkins happy so it won't mark the build as failed for no reason :-( -true - -# Done, git push to be done manually or from jenkins diff --git a/scripts/transifex-fetch-translations.sh b/scripts/transifex-fetch-translations.sh deleted file mode 100755 index 6567c883..00000000 --- a/scripts/transifex-fetch-translations.sh +++ /dev/null @@ -1,30 +0,0 @@ -#! /bin/sh -x - -# Pull translations from transifex -# Forcibly pull all translations becase git clone in a fresh repo causes the local files to -# be more recent then translations on transifex, therefore the translastion is skipped -tx pull --force --all - -# Commit any changes -# git diff - -git config user.email "hakan@gurkensalat.com" -git config user.name "Hakan Tandogan" - -# git add scripts/transifex-fetch-translations.sh -# git commit -m "Updated message translation fetching script" scripts/transifex-fetch-translations.sh - -# Loop over all translations -for translation in $(find $(dirname $0)/../www/locale -name \*.po) -do - $(dirname $0)/../ci-scripts/transifex-commit-translations.pl ${translation} -done - -# Reset my own git config after shell run -git config user.email "hakan@gurkensalat.com" -git config user.name "Hakan Tandogan" - -# Keep Jenkins happy so it won't mark the build as failed for no reason :-( -true - -# Done, git push to be done manually or from jenkins