X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fi18n%2Fgenerate.sh;h=f93d6cc03d2cdf25fbf86e43f71cc31b8770a8fd;hb=cd080b1a6b17727633cb42bd18d39eb3f7a9e030;hp=0a5b6dee160b8aca04580e9dc3abf9eb40e51f22;hpb=e945b184a0f29b47c33bbd05578f3493ca9c8e6c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/i18n/generate.sh b/scripts/i18n/generate.sh index 0a5b6dee1..f93d6cc03 100755 --- a/scripts/i18n/generate.sh +++ b/scripts/i18n/generate.sh @@ -3,13 +3,12 @@ set -eu cd client -npm run ng -- xi18n --i18n-locale "en-US" --output-path locale/source --out-file messages_en_US.xml -npm run ngx-extractor -- --locale "en-US" -i 'src/**/*.ts' -f xlf -o src/locale/source/messages_en_US.xml +npm run ng -- xi18n --i18n-locale "en-US" --output-path locale/source --out-file angular_en_US.xml +npm run ngx-extractor -- --locale "en-US" -i 'src/**/*.ts' -f xlf -o src/locale/source/angular_en_US.xml # Zanata does not support inner elements in , so we hack these special elements # This regex translate the Angular elements to special entities (that we will reconvert on pull) -#sed -i 's//\<x id=\1\/\>/g' src/locale/source/messages_en_US.xml -perl -pi -e 's||<x id=\1/>|g' src/locale/source/messages_en_US.xml +perl -pi -e 's||<x id=\1/>|g' src/locale/source/angular_en_US.xml # Add our strings too cd ../