From 3aea8eb2e7ee8fa53e05298030eaeef98d234797 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 Nov 2019 09:45:14 +0100 Subject: Try new worflow with french --- scripts/i18n/pull-hook.sh | 9 --------- 1 file changed, 9 deletions(-) (limited to 'scripts/i18n/pull-hook.sh') diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index 8d1f7ee55..738469e38 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh @@ -2,14 +2,5 @@ set -eu -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, so we hack these special elements - # This regex translate the converted elements to initial Angular elements - perl -pi -e 's|<x id=(.+?)/>([^"])|\2|g' client/src/locale/target/*.xml -done - npm run i18n:xliff2json -- cgit v1.2.3 From 24b1c65abd6fa84b2e21bc2cb87c0b3006120787 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 Nov 2019 14:12:57 +0100 Subject: Remove html tags --- scripts/i18n/pull-hook.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/i18n/pull-hook.sh') diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index 738469e38..66f3b4588 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh @@ -2,5 +2,11 @@ set -eu +for i in $(seq 1 10); do + # Zanata does not support inner elements in , so we hack these special elements + # This regex translate the converted elements to initial Angular elements + perl -pi -e 's|<x id=(.+?)/>([^"])|\2|g' client/src/locale/target/*.xml +done + npm run i18n:xliff2json -- cgit v1.2.3 From cd1d6c23dae0fd08e69d49b21333742db86eeff7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Nov 2019 09:45:27 +0100 Subject: Remove unused files --- scripts/i18n/pull-hook.sh | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100755 scripts/i18n/pull-hook.sh (limited to 'scripts/i18n/pull-hook.sh') diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh deleted file mode 100755 index 66f3b4588..000000000 --- a/scripts/i18n/pull-hook.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -set -eu - -for i in $(seq 1 10); do - # Zanata does not support inner elements in , so we hack these special elements - # This regex translate the converted elements to initial Angular elements - perl -pi -e 's|<x id=(.+?)/>([^"])|\2|g' client/src/locale/target/*.xml -done - -npm run i18n:xliff2json - -- cgit v1.2.3