Use transifex to translations

This commit is contained in:
Matias De lellis
2019-11-02 21:09:44 -03:00
parent 6fb1f20c6d
commit 8b0388f8a5
5 changed files with 57 additions and 18 deletions

View File

@@ -29,6 +29,31 @@ cert_dir=$(HOME)/.nextcloud/certificates
all: build
build: deps
# L10N Rules
l10n-update-pot:
php translationtool.phar create-pot-files
l10n-transifex-pull:
tx pull -s -a
l10n-transifex-push:
tx push -s -t
l10n-transifex-apply:
php translationtool.phar convert-po-files
l10n-clean:
rm -rf translationfiles
rm -f translationtool.phar
l10n-deps:
@echo "Checking transifex client."
tx --version
@echo "Downloading translationtool.phar"
wget https://github.com/nextcloud/docker-ci/raw/master/translations/translationtool/translationtool.phar -O translationtool.phar
# general
deps:
mkdir -p vendor