From 02ba613049c0ebd082588f0845c541342dad8125 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 14 May 2019 08:39:42 +0200 Subject: Update translations --- scripts/i18n/pull-hook.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/i18n') diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index e616f715b..2d728fef5 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh @@ -3,12 +3,12 @@ set -eu for i in 1 2 3; 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 - - # 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