aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/i18n/pull-hook.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-11-07 09:45:14 +0100
committerChocobozzz <me@florianbigard.com>2019-11-07 09:45:14 +0100
commit3aea8eb2e7ee8fa53e05298030eaeef98d234797 (patch)
tree9dfb03803b8a2b7d7eedad33eb2a0c6925469167 /scripts/i18n/pull-hook.sh
parentc2368b72411253d825a3a4169a85ec4570ba5854 (diff)
downloadPeerTube-3aea8eb2e7ee8fa53e05298030eaeef98d234797.tar.gz
PeerTube-3aea8eb2e7ee8fa53e05298030eaeef98d234797.tar.zst
PeerTube-3aea8eb2e7ee8fa53e05298030eaeef98d234797.zip
Try new worflow with french
Diffstat (limited to 'scripts/i18n/pull-hook.sh')
-rwxr-xr-xscripts/i18n/pull-hook.sh9
1 files changed, 0 insertions, 9 deletions
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 @@
2 2
3set -eu 3set -eu
4 4
5for i in $(seq 1 10); do
6 # Angular does not like when there is not target element, so we create it with the same content than the source element
7 perl -0pi -e 's#<source>([^<]+)</source>\s*<context-group #<source>\1</source><target>\1</target><context-group #g' client/src/locale/target/angular_*.xml
8
9 # Zanata does not support inner elements in <source>, so we hack these special elements
10 # This regex translate the converted elements to initial Angular elements
11 perl -pi -e 's|&lt;x id=(.+?)/&gt;([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml
12done
13
14npm run i18n:xliff2json 5npm run i18n:xliff2json
15 6