From 1cd4fe501de78e67cfdd19ea44989393a29ec2e6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 22 Oct 2019 10:30:09 +0200 Subject: Fix i18n generation script --- scripts/i18n/generate.sh | 4 ++-- scripts/i18n/pull-hook.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/i18n') diff --git a/scripts/i18n/generate.sh b/scripts/i18n/generate.sh index f93d6cc03..3f3e3d8e5 100755 --- a/scripts/i18n/generate.sh +++ b/scripts/i18n/generate.sh @@ -3,7 +3,7 @@ set -eu cd client -npm run ng -- xi18n --i18n-locale "en-US" --output-path locale/source --out-file angular_en_US.xml +npm run ng -- xi18n --i18n-locale "en-US" --output-path src/locale/source --out-file angular_en_US.xml npm run ngx-extractor -- --locale "en-US" -i 'src/**/*.ts' -f xlf -o src/locale/source/angular_en_US.xml # Zanata does not support inner elements in , so we hack these special elements @@ -12,4 +12,4 @@ perl -pi -e 's||<x id=\1/>|g' src/locale/source/angular_en_US # Add our strings too cd ../ -npm run i18n:create-custom-files \ No newline at end of file +npm run i18n:create-custom-files diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index 55a43fba4..8d1f7ee55 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh @@ -2,7 +2,7 @@ set -eu -for i in $(seq 1 200); do +for i in $(seq 1 10); do # Angular does not like when there is not target element, so we create it with the same content than the source element perl -0pi -e 's#([^<]+)\s*\1\1