diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-07 14:12:57 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-07 14:12:57 +0100 |
commit | 24b1c65abd6fa84b2e21bc2cb87c0b3006120787 (patch) | |
tree | 2250c3d0098af38871b5020fb663275a00dc7ed0 /scripts/i18n/pull-hook.sh | |
parent | ad912c3de64939cc2cd128ec45a4b32cb548f8d1 (diff) | |
download | PeerTube-24b1c65abd6fa84b2e21bc2cb87c0b3006120787.tar.gz PeerTube-24b1c65abd6fa84b2e21bc2cb87c0b3006120787.tar.zst PeerTube-24b1c65abd6fa84b2e21bc2cb87c0b3006120787.zip |
Remove html tags
Diffstat (limited to 'scripts/i18n/pull-hook.sh')
-rwxr-xr-x | scripts/i18n/pull-hook.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | for i in $(seq 1 10); do | ||
6 | # Zanata does not support inner elements in <source>, so we hack these special elements | ||
7 | # This regex translate the converted elements to initial Angular elements | ||
8 | perl -pi -e 's|<x id=(.+?)/>([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml | ||
9 | done | ||
10 | |||
5 | npm run i18n:xliff2json | 11 | npm run i18n:xliff2json |
6 | 12 | ||