X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fi18n%2Fpull-hook.sh;h=b0668436d9b66524b31abb2dbc7efadb62c70a6f;hb=73471b1a52f242e86364ffb077ea6cadb3b07ae2;hp=bbe4a813eb992902e0f5244777805cb17379ee48;hpb=510fefb194aba4b365b96b150f89a9f36306560c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index bbe4a813e..b0668436d 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh @@ -4,8 +4,11 @@ set -eu # Zanata does not support inner elements in , so we hack these special elements # This regex translate the converted elements to initial Angular elements -#sed -i 's/\<x id=\(.\+\?\)\/\>//g' client/src/locale/target/* for i in 1 2 3; do - perl -pi -e 's|<x id=(.+?)/>([^"])|\2|g' client/src/locale/target/* -done \ No newline at end of file + perl -pi -e 's|<x id=(.+?)/>([^"])|\2|g' client/src/locale/target/*.xml + perl -0pi -e 's|(.+?)\s*\1\1