From 12ce504421f095ccd274ddb4c8e5e4bdf900e4bd Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Thu, 21 Oct 2021 09:42:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20=E2=80=94=20Remove=20Zanata=20st?= =?UTF-8?q?uff=20(we=20use=20weblate=20now)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 14 -------------- po/.gitignore | 2 -- push-trad-to-zanata.sh | 11 ----------- zanata.xml | 9 --------- 4 files changed, 36 deletions(-) delete mode 100644 po/.gitignore delete mode 100755 push-trad-to-zanata.sh delete mode 100644 zanata.xml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 019a407..d5e2d02 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,20 +16,6 @@ test: paths: - vendor/ -check-trad: - stage: test - allow_failure: true - script: - - if [ -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then echo "*** Unable to check if translations need to be pulled, exiting ***"; exit 1; fi - - export ORIG=$(git diff-files --shortstat) - - if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then mkdir -p ${HOME}/.config; echo -e "${ZANATA_CONFIG_FRAMABOT}" > ${HOME}/.config/zanata.ini; fi - - if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then make push-locales; fi - - git status > /dev/null 2>&1 - - export CHANGES=$(git diff-files --shortstat) - - if [[ $CHANGES != $ORIG ]]; then echo "*** There is changes in locales ***"; echo "*** You need to do `make pull-locales` in your repo ***"; exit 1; fi - only: - - develop - # Create artifacts on master pages: stage: deploy diff --git a/po/.gitignore b/po/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/po/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/push-trad-to-zanata.sh b/push-trad-to-zanata.sh deleted file mode 100755 index b452050..0000000 --- a/push-trad-to-zanata.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -FILE=$1 -if [[ ! -e locale/$FILE.json ]] -then - echo "locale/$FILE.json does not exist. Exiting." - exit 1 -else - LOCALE=$(echo $FILE | sed -e "s@_@-@g") - json2po -i locale/$FILE.json -t locale/en.json -o po/$FILE.po - zanata-cli -q -B push --push-type trans -l $LOCALE -fi diff --git a/zanata.xml b/zanata.xml deleted file mode 100644 index 7bea509..0000000 --- a/zanata.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - https://trad.framasoft.org/zanata/ - framadate - master - gettext - po - po -